Skip to main content
Glama
chzkyy

mcp-mongodb

by chzkyy

insert_one

Insert a single JSON document into a MongoDB collection and retrieve the generated _id.

Instructions

Sisipkan SATU dokumen baru ke dalam koleksi. Mengembalikan _id dokumen yang dibuat.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
databaseNoNama database tujuan. Opsional jika MONGODB_DB sudah diatur.
documentNoSatu dokumen JSON untuk disimpan. Contoh: {"nama": "Budi", "umur": 30, "tags": ["vip"]}.
collectionYesNama koleksi.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden. It does disclose a key behavioral detail: the operation returns the _id of the created document. It does not mention side effects, failure modes, or id-generation specifics, but for a straightforward insert operation the core behavior is reasonably covered.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is one front-loaded, concise sentence with no filler. It emphasizes the singleton nature of the operation and states the return value, earning its place without redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple single-insert tool, the description plus schema covers the main operation and return value. However, with no annotations and no output schema, it leaves out potential edge cases like non-optional document semantics and fails to route the agent toward insert_many for multiple documents. It is adequate but not rich.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, and the schema already explains database, document, and collection parameters, including an example document. The description itself adds no parameter-specific information, so the baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb ('Sisipkan'), a resource ('SATU dokumen baru ke dalam koleksi'), and the cardinality 'SATU', which clearly distinguishes it from the sibling insert_many. An agent can immediately tell what this tool does and how it differs from batch insertion.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The word 'SATU' implies usage for a single document, giving some contextual guidance. However, the description does not explicitly say when to use this tool versus insert_many, nor does it state any exclusions or batch-handling alternatives. The usage guidance is only implied, not explicit.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.