documentdb-aggregation-analytics

documentdb-aggregation-analytics is a skill for Claude Code, Codex from Knuckles-Team/documentdb-mcp. It costs 102 tokens per session (924 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 102 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 924 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.00102 $0.00924
Opus 5.5 $0.00041 $0.00370
Sonnet 5.5 $0.00020 $0.00185
Haiku 4.5 $0.00010 $0.00092

Measured 1mo ago against content hash f0dbbf60905f, 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 1mo 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 · 87 lines

How it starts

The opening of the file, as written. The whole thing — 87 lines — stays where its author put it; the contents beside it link to each section on GitHub.

DocumentDB Aggregation & Analytics

Server-side summarization over a collection: MongoDB aggregation pipelines and distinct value enumeration. These stay read-only and push the computation to the server.

When to use

  • Group/roll-up metrics with an aggregation pipeline ($match, $group, $sort, $project, $limit, …).
  • Enumerate the distinct values of a field (optionally filtered).
  • Profile a collection (counts per category, top-N, min/max) without pulling raw rows.

When NOT to use

  • Fetching or mutating individual documents → documentdb-document-crud.
  • Structural changes (create/drop/rename collection, users) → documentdb-collection-admin.
  • Write-stage pipelines ($out / $merge): the tool returns results, treat any materialization as an admin action and confirm intent first.

Prerequisites & environment

Connect via the mcp-client skill against the documentdb-mcp MCP server.

Variable Required Notes
MONGODB_URI one of Full connection URI (wins over host/port)
MONGODB_HOST one of Host when no URI (default localhost)
MONGODB_PORT optional Port when no URI (default 27017)

MCP_TOOL_MODE (condensed|verbose|both) selects the condensed action-routed surface vs. the one-to-one verbose tools.

Tools & actions

Condensed tool Actions
documentdb_analysis distinct, aggregate

Key parameters

  • database_name / collection_name — required.
  • key + filter — for distinct (field name + optional MongoDB filter).
  • pipeline — for aggregate: a list of pipeline stage documents.

Recipes

Distinct values of a field among active docs:

documentdb_analysis action=distinct database_name=app collection_name=users key=country filter={"active":true}

Count errors per service, top 5:

documentdb_analysis action=aggregate database_name=app collection_name=events pipeline=[{"$match":{"level":"error"}},{"$group":{"_id":"$service","n":{"$sum":1}}},{"$sort":{"n":-1}},{"$limit":5}]

Average order value by status:

documentdb_analysis action=aggregate database_name=shop collection_name=orders pipeline=[{"$group":{"_id":"$status","avg":{"$avg":"$total"}}}]

Read the full file on GitHub · 87 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. 1mo 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 102 tokens to every session and 924 once invoked, about $0.0004 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

Other skills, from other repositories

nextcloud-ingest

Natively ingest Nextcloud files into the epistemic-graph knowledge graph via the nextcloud-agent MCP server — fetch a file over WebDAV and store its raw bytes as a content-addressed :Blob/:AssetOccurrence plus its extracted text (pdf/office/txt or image OCR) as a linked :Document. Use when the agent must make a…

Knuckles-Team/nextcloud-agent · 122 tokens

jellyfin-kg-ingestion

Natively ingest a Jellyfin library into the epistemic-graph knowledge graph via the jellyfin-mcp MCP server — push library items as typed :MediaAsset/:Book nodes with :hasGenre/:performedBy/:authoredBy links and item overviews as searchable :Document nodes (jellyfiningestlibrary), and item posters as content-addressed…

Knuckles-Team/jellyfin-mcp · 158 tokens

jellyfin-library-catalog

Browse and search a Jellyfin media library via the jellyfin-mcp MCP server — list library items (movies, series, episodes, audio, books), fetch one item by id, walk collections and user views, and run search hints with the domain-typed jellyfinlibrary tool. Use when the agent must find or enumerate catalog items…

Knuckles-Team/jellyfin-mcp · 154 tokens

jellyfin-media-playback

Stream and control Jellyfin playback and browse music via the jellyfin-mcp MCP server — list artists, albums, and music genres, resolve audio/video streams, manage playlists, and drive playstate (play, mark played, report progress) with the domain-typed jellyfinmedia tool. Use when the agent must start or control…

Knuckles-Team/jellyfin-mcp · 142 tokens

nextcloud-files

Browse and manage Nextcloud files and folders over WebDAV via the nextcloud-agent MCP server — list a directory, read/download a file, upload, create/delete/move/copy, and read properties. Use when the agent must navigate a Nextcloud file tree, fetch a document's bytes, or reorganize storage. Do NOT use for sharing…

Knuckles-Team/nextcloud-agent · 98 tokens

nextcloud-shares

Manage Nextcloud sharing grants over the OCS Sharing API via the nextcloud-agent MCP server — list existing shares, create a public link / user / group share on a file or folder, and revoke a share. Use when the agent must expose a file, audit who has access, or tear a share down. Do NOT use for browsing or moving…

Knuckles-Team/nextcloud-agent · 95 tokens