documentdb-natural-language-querying

documentdb-natural-language-querying is a skill for Claude Code, Codex from Azure/documentdb-agent-kit. It costs 119 tokens per session (3,925 once invoked), scanned A, original, MIT.

A natural-language helper for writing read-only queries and aggregation pipelines for Azure DocumentDB, a MongoDB-compatible database service. It uses collection schemas and sample documents to understand fields without copying sensitive values.

In plain words
What is it for?
Use it to find, filter, or summarize data in DocumentDB collections, or to create an aggregation pipeline from a description of the result you need.
Why use it?
It turns plain-English requests into database queries while reducing the risk of exposing secrets or personal data from sample records.

Skill for Claude CodeCodex

Part of the documentdb plugin — 17 skills, 1 agent shipped together

About the project

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.

Azure/documentdb-agent-kit · 5 stars · on GitHub

Install

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.

agentmods
npx agentmods add skills/azure/documentdb-agent-kit/natural-language-querying
Any agent
npx skills add Azure/documentdb-agent-kit --skill natural-language-querying
Clone the repo
git clone --depth 1 https://github.com/Azure/documentdb-agent-kit

Made for: Claude Code, Codex.

Or install documentdb, the plugin that ships this one along with the rest of its 17 skills, 1 agent.

Wrote 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.

agentmods badge for documentdb-natural-language-querying

README.md
[![agentmods](https://agentmods.dev/badge/skills/azure/documentdb-agent-kit/natural-language-querying.svg)](https://agentmods.dev/skills/azure/documentdb-agent-kit/natural-language-querying)
Your own site
<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>
Per session 119 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,925 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 4d ago against content hash 4fd1a5bcf175, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

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.

skills/natural-language-querying/SKILL.md · 354 lines

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:

  1. 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>).
  2. 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.
  3. 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_zip and 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.
  4. 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.
  5. 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."
  6. Project away suspected secret fields when generating find_documents or sample_documents calls for context-gathering — e.g. add { password: 0, token: 0, apiKey: 0, secret: 0 } to the projection.
  7. Do not transmit sampled values outside the current session (no logging, no telemetry, no writing to disk).

Read the full file on GitHub · 354 lines

Changes

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.

  1. 4d ago First seen · 354 lines · 119 tokens per session scan A 4fd1a5bcf175

Subscribe to this mod's changes

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.

Related

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.

t8y2/dbx · 61 tokens

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.

microsoft/skills · 64 tokens

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"…

nitrocloudofficial/nitrostack · 95 tokens

mongodb

MongoDB operations expert for queries, aggregation pipelines, indexes, and schema design.

RightNow-AI/openfang · 17 tokens

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…

fcakyon/claude-codex-settings · 82 tokens

dynamic

Fullstack development with bkend.ai BaaS — authentication, database, API integration. Triggers: fullstack, BaaS, login, signup, database, web app.

ww-w-ai/bkit-claude-code · 38 tokens