documentdb-document-crud

documentdb-document-crud is a skill for Claude Code, Codex from Knuckles-Team/documentdb-mcp. It costs 126 tokens per session (1,272 once invoked), scanned A, original, MIT.

A set of operations for creating, reading, updating, replacing, counting, and deleting individual documents in a DocumentDB collection. A collection is a database container similar to a table, but it stores document-shaped records.

In plain words
What is it for?
It is for inserting documents, finding and sorting records, changing one or many records, deleting records, counting them, and performing atomic read-and-change operations.
Why use it?
It provides the operations needed to work with specific records without using separate database administration or analytics procedures.

Skill for Claude CodeCodex

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/knuckles-team/documentdb-mcp/documentdb-document-crud
Any agent
npx skills add Knuckles-Team/documentdb-mcp --skill documentdb-document-crud
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-document-crud

README.md
[![agentmods](https://agentmods.dev/badge/skills/knuckles-team/documentdb-mcp/documentdb-document-crud.svg)](https://agentmods.dev/skills/knuckles-team/documentdb-mcp/documentdb-document-crud)
Your own site
<a href="https://agentmods.dev/skills/knuckles-team/documentdb-mcp/documentdb-document-crud"><img src="https://agentmods.dev/badge/skills/knuckles-team/documentdb-mcp/documentdb-document-crud.svg" alt="Measured on agentmods" height="20"></a>
Per session 126 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,272 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.00126 $0.01272
Opus 5 $0.00063 $0.00636
Sonnet 5 $0.00025 $0.00254
Haiku 4.5 $0.00013 $0.00127

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

Security

Grade A, and why

documentdb-document-crud 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.

documentdb_mcp/skills/documentdb-document-crud/SKILL.md · 103 lines

How it starts

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

DocumentDB Document CRUD

Row-level document operations against a specific database_name + collection_name using MongoDB filter/update semantics.

When to use

  • Insert one or many documents.
  • Query: find_one / find with a filter, plus sort, skip, limit.
  • Mutate: update_one / update_many (with update operators), replace_one.
  • Remove: delete_one / delete_many; count_documents for cardinality.
  • Atomic read-modify-write: find_one_and_update / find_one_and_replace / find_one_and_delete.

When NOT to use

  • Creating/dropping/renaming the collection or database, or user management → documentdb-collection-admin.
  • distinct values or $group/$match aggregation pipelines → documentdb-aggregation-analytics.
  • Bulk-loading a collection into the knowledge graph → the native documentdb_ingest_documents tool (see Related).

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_crud insert_one, insert_many, find_one, find, replace_one, update_one, update_many, delete_one, delete_many, count_documents, find_one_and_update, find_one_and_replace, find_one_and_delete

Key parameters

  • database_name / collection_name — required for every action.
  • document / documents — the payload(s) for inserts.
  • filter — a MongoDB query document (e.g. {"status":"active"}).
  • update — a MongoDB update document with operators (e.g. {"$set":{"seen":true}}).
  • replacement — full replacement document (no operators) for replace/find-and-replace.
  • limit / skip / sortfind paging/ordering (sort is a list of [field, dir]).
  • return_document"before" (default) or "after" for find-and-modify.

Read the full file on GitHub · 103 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. 4d ago First seen · 103 lines · 126 tokens per session scan A f4009e2d6ea3

Subscribe to this mod's changes

documentdb-document-crud is a skill published in the GitHub repository Knuckles-Team/documentdb-mcp (2 stars, last pushed 6d ago), licensed MIT. It adds 126 tokens to every session and 1,272 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

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