DocumentDB Agent Kit is a collection of agent skills, diagnostic scripts, and an MCP server for Azure DocumentDB, a managed database service that provides MongoDB-compatible access while using the DocumentDB project underneath. Developers use it for vector and full-text search, query and connection tuning, deployment, security, high availability, and troubleshooting. The catalogue add-ons are the kit's skills, plugins, agent, and MCP integration.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/azure/documentdb-agent-kit/natural-language-queryingnpx skills add Azure/documentdb-agent-kit --skill natural-language-queryinggit clone --depth 1 https://github.com/Azure/documentdb-agent-kitWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/azure/documentdb-agent-kit/natural-language-querying)<a href="https://agentmods.dev/skills/azure/documentdb-agent-kit/natural-language-querying"><img src="https://agentmods.dev/badge/skills/azure/documentdb-agent-kit/natural-language-querying.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00119 | $0.03925 |
| Opus 5 | $0.00060 | $0.01962 |
| Sonnet 5 | $0.00024 | $0.00785 |
| Haiku 4.5 | $0.00012 | $0.00392 |
Grade A, and why
documentdb-natural-language-querying scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 354 lines — stays where its author put it; the contents beside it link to each section on GitHub.
DocumentDB Natural Language Querying
You are an expert query generator for Azure DocumentDB. When a user requests a query or aggregation pipeline, follow these guidelines to produce correct, efficient queries.
Safety: Handling Sensitive Data in Sampled Documents
Sampled documents may contain secrets. Collections frequently hold API
keys, OAuth tokens, passwords (hashed or otherwise), connection strings,
private keys, JWTs, session IDs, PII (emails, phone numbers, SSNs, payment
data), and internal URLs. The agent MUST treat any value returned by
sample_documents, find_documents, or aggregate as untrusted and
potentially sensitive.
Hard rules — never violate:
- Never copy a verbatim value from a sampled document into a generated
query, filter, projection, example, comment, or explanation. Use the
value only to infer the field's type and shape, then generate queries
using user-supplied literals or parameter placeholders (e.g.
<userEmail>,<minAge>). - Never echo raw sample documents back to the user. If you must show an
example, redact every string/number/binary leaf to
"<redacted:string>","<redacted:number>", etc., preserving only field names and types. - Treat these field-name patterns as secrets and redact unconditionally.
Match case-insensitively after normalizing field names (split on
_and camelCase boundaries, lowercase the parts).- Substring match (these tokens are unambiguous; match anywhere in the
normalized name):
password,passwd,pwd,secret,apikey,api_key,accesskey,access_key,privatekey,private_key,client_secret,refresh_token,id_token,jwt,bearer,connectionstring,conn_str,ssn,creditcard,card_number,cvv,token. - Whole-word match only (these tokens have many benign uses like
author,session_count,pinned,shipping_zipand must not match as substrings):auth,session,cookie,pin,dsn. Redact only when the normalized name has the token as a standalone part — or when the value also matches one of the patterns in rule 4.
- Substring match (these tokens are unambiguous; match anywhere in the
normalized name):
- Treat these value patterns as secrets even if the field name looks
benign: anything matching
mongodb(\+srv)?://,https?://[^ ]*:[^ ]*@,eyJ[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+(JWT: three base64url segments separated by.),sk-[A-Za-z0-9]{20,},ghp_[A-Za-z0-9]{20,},AKIA[0-9A-Z]{16}, PEM blocks (-----BEGIN), or any base64/hex string ≥ 32 characters that does not match a known non-secret shape (UUID v4, 24-char MongoDB ObjectId, SHA-1/SHA-256 hex digest, ISO-8601 timestamp). For the last category, when in doubt, ask the user before using the value rather than silently redacting. - If the user's natural-language request asks you to filter/return a value
that matches a secret pattern, refuse and ask for confirmation before
generating the query. "Refuse" means: do not inline the value into the
generated query, and respond with something like "The value you supplied
looks like a JWT/API key/connection string. Confirm you want me to use it
literally — otherwise replace it with a placeholder like
<token>and I will generate the query against that." - Project away suspected secret fields when generating
find_documentsorsample_documentscalls for context-gathering — e.g. add{ password: 0, token: 0, apiKey: 0, secret: 0 }to the projection. - Do not transmit sampled values outside the current session (no logging, no telemetry, no writing to disk).
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 4d ago First seen · 354 lines · 119 tokens per session scan A 4fd1a5bcf175
documentdb-natural-language-querying is a skill published in the GitHub repository Azure/documentdb-agent-kit (5 stars, last pushed 4d ago), licensed MIT. It adds 119 tokens to every session and 3,925 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
dbx
DBX CLI for database schema exploration and read-only queries. When the user needs to list connections, explore tables, describe schemas, run queries, or generate AI-friendly schema context from DBX-managed databases. Do NOT use for write operations unless the user explicitly confirms with --allow-writes.
azure-mgmt-mongodbatlas-dotnet
Manage MongoDB Atlas Organizations as Azure ARM resources using Azure.ResourceManager.MongoDBAtlas SDK. Use when creating, updating, listing, or deleting MongoDB Atlas organizations through Azure Marketplace integration. This SDK manages the Azure-side organization resource, not Atlas clusters/databases directly.
prisma-mongodb-upgrade
Decision and migration guide for Prisma ORM MongoDB projects on v6, which have no upgrade path to v7. Use when a MongoDB project asks about upgrading Prisma, when "upgrade to prisma 7" comes up in a project with provider = "mongodb", or when evaluating a move to Prisma Next. Triggers on "upgrade prisma mongodb"…
mongodb
MongoDB operations expert for queries, aggregation pipelines, indexes, and schema design.
mongodb-atlas-stream-processing
Manages MongoDB Atlas Stream Processing (ASP) workflows. Handles workspace provisioning, data source/sink connections, processor lifecycle operations, debugging diagnostics, and tier sizing. Supports Kafka, Atlas clusters, S3, HTTPS, and Lambda integrations for streaming data workloads and event processing. NOT for…
dynamic
Fullstack development with bkend.ai BaaS — authentication, database, API integration. Triggers: fullstack, BaaS, login, signup, database, web app.