documentdb-aggregation-analytics

documentdb-aggregation-analytics is a skill for Claude Code, Codex from Knuckles-Team/documentdb-mcp. It costs 73 tokens per session (1,315 once invoked), scanned A, original, MIT.

Read-only analytics for a DocumentDB collection, using pipelines to filter, group, sort, project, and limit records. It can also list the distinct values of a field.

In plain words
What is it for?
It is for counts, grouped metrics, top-value lists, category profiles, minimums and maximums, filtered summaries, and distinct-value lookups.
Why use it?
It summarizes data on the database server, so the agent can profile or compare records without retrieving every document or changing the collection.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It is for counts, grouped metrics, top-value lists, category profiles, minimums and maximums, filtered summaries, and distinct-value lookups.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/knuckles-team/documentdb-mcp/documentdb-aggregation-analytics
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.

Any agent
npx skills add Knuckles-Team/documentdb-mcp --skill documentdb-aggregation-analytics
Clone the repo
git clone --depth 1 https://github.com/Knuckles-Team/documentdb-mcp

Made for: Claude Code, Codex.

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-aggregation-analytics

README.md
[![agentmods](https://agentmods.dev/badge/skills/knuckles-team/documentdb-mcp/documentdb-aggregation-analytics/github.svg)](https://agentmods.dev/skills/knuckles-team/documentdb-mcp/documentdb-aggregation-analytics)
Your own site
<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.

agentmods 80×15 button for documentdb-aggregation-analytics

Your own site · 80×15
<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>
Per session 73 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,315 The whole file, excluding the scripts and references it only reads on demand.
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.00073 $0.01315
Opus 5.5 $0.00029 $0.00526
Sonnet 5.5 $0.00015 $0.00263
Haiku 4.5 $0.00007 $0.00131

Measured 5d ago against content hash 0b8a09c53a7e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

documentdb_mcp/skills/documentdb-aggregation-analytics/SKILL.md · 102 lines

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

  1. Confirm the target with documentdb_list_databases and documentdb_list_collections (database_name). Verify the collection is listed.
  2. For distinct values, call documentdb_distinct (database_name, collection_name, key, filter). Verify the result is a list and not an error string.
  3. For summaries, build the pipeline as a list of stage documents with an early $match, and call documentdb_aggregate. Verify the first element is not an error document.
  4. Avoid write stages such as $out and $merge without operator approval. Verify the pipeline contains none before calling.
  5. 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

Read the full file on GitHub · 102 lines

Files

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.

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. 5d ago Changed · +18 lines · -29 tokens per session 0b8a09c53a7e
  2. 25d ago Changed · -3 lines 91aedcc3360f
  3. 1mo ago Changed 7f0f7cfa0ca8
  4. 3mo ago First seen · 87 lines · 102 tokens per session scan A f0dbbf60905f

Subscribe to this mod's changes

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.

Related

documentdb-aggregation-analytics compared with skills from other repositories

documentdb-aggregation-analytics next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
documentdb-aggregation-analyticsKnuckles-Team/documentdb-mcpSkill2todayMITA73Claude Code, Codex
nextcloud-ingestKnuckles-Team/nextcloud-agentSkill16d agoMITA82Claude Code, Codex
jellyfin-library-catalogKnuckles-Team/jellyfin-mcpSkill5todayMITA91Claude Code, Codex
jellyfin-media-playbackKnuckles-Team/jellyfin-mcpSkill5todayMITA92Claude Code, Codex
jellyfin-kg-ingestionKnuckles-Team/jellyfin-mcpSkill5todayMITA90Claude Code, Codex
jellyfin-mcp-developmentKnuckles-Team/jellyfin-mcpSkill5todayMITA60Claude Code, Codex
jellyfin-server-administrationKnuckles-Team/jellyfin-mcpSkill5todayMITA95Claude Code, Codex