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 skills add Knuckles-Team/documentdb-mcp --skill documentdb-aggregation-analyticsgit clone --depth 1 https://github.com/Knuckles-Team/documentdb-mcpWrote 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/knuckles-team/documentdb-mcp/documentdb-aggregation-analytics)<a href="https://agentmods.dev/skills/knuckles-team/documentdb-mcp/documentdb-aggregation-analytics"><img src="https://agentmods.dev/badge/skills/knuckles-team/documentdb-mcp/documentdb-aggregation-analytics/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.
<a href="https://agentmods.dev/skills/knuckles-team/documentdb-mcp/documentdb-aggregation-analytics"><img src="https://agentmods.dev/badge/skills/knuckles-team/documentdb-mcp/documentdb-aggregation-analytics.svg" alt="Reviewed on agentmods" width="80" 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.1 | $0.00073 | $0.01315 |
| Opus 5.5 | $0.00029 | $0.00526 |
| Sonnet 5.5 | $0.00015 | $0.00263 |
| Haiku 4.5 | $0.00007 | $0.00131 |
Grade A, and why
documentdb-aggregation-analytics 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 5d 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 — 102 lines — stays where its author put it; the contents beside it link to each section on GitHub.
DocumentDB Aggregation & Analytics
Scope: Read-only analytics on a DocumentDB (MongoDB-compatible, PostgreSQL-backed) collection via the documentdb-mcp MCP server — run aggregation pipelines ($match/$group/$sort/…) and fetch distinct field values. Use when the agent must summarize, group, or profile documents rather than fetch individual rows. Do NOT use for plain document reads/writes (use documentdb-document-crud) or for creating/dropping collections and users (use documentdb-collection-admin).
Server-side summarization over a collection: MongoDB aggregation pipelines and distinct value enumeration. These stay read-only and push the computation to the server.
Steps
- Confirm the target with
documentdb_list_databasesanddocumentdb_list_collections(database_name). Verify the collection is listed. - For distinct values, call
documentdb_distinct(database_name,collection_name,key,filter). Verify the result is a list and not an error string. - For summaries, build the
pipelineas a list of stage documents with an early$match, and calldocumentdb_aggregate. Verify the first element is not anerrordocument. - Avoid write stages such as
$outand$mergewithout operator approval. Verify the pipeline contains none before calling. - Report the result with the pipeline used.
Verify the numbers by a sample check with
documentdb_count_documents(database_name,collection_name,filter).
Failure recovery
| Failure | Cause | Recovery |
|---|---|---|
| Connection error or server-selection timeout | MONGODB_URI, or MONGODB_HOST and MONGODB_PORT, unset or unreachable |
Set MONGODB_URI for the documentdb-mcp server and call documentdb_list_databases to confirm; ask the operator for the correct endpoint |
Result is [{"error": ...}] |
Malformed pipeline, a single stage not wrapped in a list, or an unknown field | Fix the pipeline to a list of stage documents, test it with a leading $limit stage, and call documentdb_aggregate again |
| Aggregation is slow | Large unindexed $group or $sort stage |
Add an early $match on an indexed field and a $limit to the pipeline |
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 5d ago Changed · +18 lines · -29 tokens per session 0b8a09c53a7e
- 25d ago Changed · -3 lines 91aedcc3360f
- 1mo ago Changed 7f0f7cfa0ca8
- 3mo ago First seen · 87 lines · 102 tokens per session scan A f0dbbf60905f
documentdb-aggregation-analytics is a skill published in the GitHub repository Knuckles-Team/documentdb-mcp (2 stars, last pushed today), licensed MIT. It adds 73 tokens to every session and 1,315 once invoked, about $0.0003 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.
documentdb-aggregation-analytics compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| documentdb-aggregation-analyticsKnuckles-Team/documentdb-mcp | Skill | 2 | today | MIT | A | 73 | Claude Code, Codex |
| nextcloud-ingestKnuckles-Team/nextcloud-agent | Skill | 1 | 6d ago | MIT | A | 82 | Claude Code, Codex |
| jellyfin-library-catalogKnuckles-Team/jellyfin-mcp | Skill | 5 | today | MIT | A | 91 | Claude Code, Codex |
| jellyfin-media-playbackKnuckles-Team/jellyfin-mcp | Skill | 5 | today | MIT | A | 92 | Claude Code, Codex |
| jellyfin-kg-ingestionKnuckles-Team/jellyfin-mcp | Skill | 5 | today | MIT | A | 90 | Claude Code, Codex |
| jellyfin-mcp-developmentKnuckles-Team/jellyfin-mcp | Skill | 5 | today | MIT | A | 60 | Claude Code, Codex |
| jellyfin-server-administrationKnuckles-Team/jellyfin-mcp | Skill | 5 | today | MIT | A | 95 | Claude Code, Codex |