Skip to main content
Glama

Insert non-production MongoDB document

mongo_insert_one

Insert one document into a non-production MongoDB collection for allowlisted writes; production connections stay read-only.

Instructions

Insert one document into a non-production MongoDB collection. Production connections are always read-only.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
documentYes
collectionYes
connection_idYes
response_formatNomarkdown

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0-alpha.1

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and idempotentHint=false, so the write/non-destructive profile is covered. The description adds a genuine operational constraint beyond the annotations: inserts only succeed on non-production connections, and production is read-only. It omits error semantics such as duplicate-_id behavior, which keeps it from a 5.

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?

Two short sentences with zero filler, and the critical scoping constraint (non-production only) is stated up front rather than buried. Nothing in the text is redundant with the title or restates the name.

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 mutating tool with no output schema, 0% parameter description coverage, and nested document input, the description covers only the environment restriction. It says nothing about return content, duplicate-key/error behavior, or the meaning of response_format, leaving real gaps an agent would need before calling it confidently.

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

Parameters2/5

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

Schema description coverage is 0% across four parameters, so the description carries the full burden and largely fails it. 'Document' and 'collection' are mentioned only incidentally in prose, and nothing explains connection_id or the response_format enum. The agent gets no format, constraint, or default guidance beyond what it must infer from the schema names.

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

Purpose4/5

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

The description states a specific verb+resource combination ('Insert one document into a ... MongoDB collection') and scopes it to non-production collections, which separates it from read tools like mongo_find and bulk mutators like mongo_update_many/mongo_delete_many. It stops short of explicitly naming the sibling tools it is distinct from, but the operation is unambiguous.

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 statement that production connections are always read-only effectively tells the agent when this tool will not work, which is useful implied guidance. However, no alternatives are offered (e.g., what to use to modify existing documents), and there is no explicit when-to-use framing beyond the environment restriction.

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