documentdb-agent-kit: Instructions file for Gemini CLI

GEMINI.md

documentdb-agent-kit GEMINI.md is an instructions file for Gemini CLI from Azure/documentdb-agent-kit. It costs 354 tokens per session, scanned A, original, MIT.

Configuration instructions for a Gemini CLI extension that manages and tunes Azure DocumentDB deployments. Gemini CLI is a command-line coding assistant, and the extension connects it to the database through configured profiles.

In plain words
What is it for?
Use it to configure local or hosted DocumentDB access for Gemini CLI, sign in through Azure identity, or enable additional tool capabilities beyond read-only access.
Why use it?
It explains how to provide database connection details, prefer Microsoft Entra or OIDC login, and control which tools can make changes.

Instructions file for Gemini CLI ✓ vendor

Written for Gemini CLI: the file is GEMINI.md. Also seen: mentions Gemini CLI.

This is Azure/documentdb-agent-kit's own configuration. It tells Gemini CLI how to work on documentdb-agent-kit itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything documentdb-agent-kit configures →

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 · 6 stars · on GitHub

Reuse

Borrowing it

Nothing to install: this file belongs to Azure/documentdb-agent-kit. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Azure/documentdb-agent-kit/main/GEMINI.md
Clone the repo
git clone --depth 1 https://github.com/Azure/documentdb-agent-kit

Made for: Gemini CLI.

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-agent-kit GEMINI.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/azure/documentdb-agent-kit/gemini-md/github.svg)](https://agentmods.dev/instructions/azure/documentdb-agent-kit/gemini-md)
Your own site
<a href="https://agentmods.dev/instructions/azure/documentdb-agent-kit/gemini-md"><img src="https://agentmods.dev/badge/instructions/azure/documentdb-agent-kit/gemini-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for documentdb-agent-kit GEMINI.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/azure/documentdb-agent-kit/gemini-md"><img src="https://agentmods.dev/badge/instructions/azure/documentdb-agent-kit/gemini-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 354 This file is loaded in full into every session.
When invoked 354 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00354 $0.00354
Opus 5.5 $0.00142 $0.00142
Sonnet 5.5 $0.00071 $0.00071
Haiku 4.5 $0.00035 $0.00035

Measured 2mo ago against content hash 3e50b68c11e3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

documentdb-agent-kit GEMINI.md 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 2mo 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.

GEMINI.md · 40 lines

What it actually says

Azure DocumentDB Gemini Extension

This extension provides tools for managing and optimizing Azure DocumentDB (MongoDB-compatible) deployments using the official documentdb-mcp-server.

Configuration

The extension requires a connection profile to be configured server-side. Set the DOCUMENTDB_CONNECTION_PROFILES environment variable before launching Gemini CLI.

Recommended: Microsoft Entra / OIDC backend authentication

export DOCUMENTDB_CONNECTION_PROFILES='{"sandbox":{"authMode":"entra","endpoint":"<cluster>.mongocluster.cosmos.azure.com","tokenScope":"https://ossrdbms-aad.database.windows.net/.default","allowedHosts":["*.mongocluster.cosmos.azure.com"]}}'

Sign in with Azure CLI for local development:

az login --tenant <tenant-id>

In Azure hosting, use managed identity or workload identity and grant that identity access to the backend database.

Local / sandbox: SCRAM connection string

export DOCUMENTDB_CONNECTION_PROFILES='{"local":{"uriEnv":"DOCUMENTDB_LOCAL_URI"}}'
export DOCUMENTDB_LOCAL_URI='mongodb://localhost:27017'

Tool capability gates

By default only read tools are enabled. To enable higher-impact tools, override in your shell before launching Gemini:

export ENABLE_WRITE_TOOLS=true        # insert / update / delete / find_and_modify
export ENABLE_MANAGEMENT_TOOLS=true   # drop_database, drop_collection, create_index, ...

If the user needs help configuring the MCP server, use the mcp-setup skill to guide them through the process. For the full list of options, see the DocumentDB MCP Server documentation.

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. 2mo ago First seen · 40 lines · 354 tokens per session scan A 3e50b68c11e3

Subscribe to this mod's changes

documentdb-agent-kit GEMINI.md is an instructions file published in the GitHub repository Azure/documentdb-agent-kit (6 stars, last pushed 2d ago), licensed MIT. It adds 354 tokens to every session, about $0.0014 per session on Opus 5.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

documentdb-agent-kit GEMINI.md compared with instructions from other repositories

documentdb-agent-kit GEMINI.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
documentdb-agent-kit GEMINI.mdAzure/documentdb-agent-kitInstructions file62d agoMITA354Gemini CLI
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode