Skip to main content
Glama
linzi007

mongodb36-mcp-server

by linzi007

find_one

Retrieve a single document from a MongoDB collection using a query filter. Returns the first document that matches the specified condition.

Instructions

Find a single document in a collection

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filterNoQuery filter (MongoDB query syntax)
collectionYesCollection name

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure, and it does not disclose key edge-case behavior: what happens when no document matches (null vs error), which document is returned when multiple match (e.g., natural order), or whether invalid Mongo query syntax errors out. These are important traits for an agent invoking this tool on unknown data.

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

Conciseness4/5

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

A single, front-loaded sentence with zero filler words; the verb comes first and the resource is immediately clear. It is concise without being bloated, though a short second sentence on return behavior would have improved it without harming brevity.

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 two-parameter tool with 100% schema coverage, the description is minimally adequate. However, with no output schema and no annotations, the description should have disclosed the return value shape (document vs null) and multi-match behavior to be complete; these gaps are the main deficit.

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% — 'filter' documents MongoDB query syntax and 'collection' is described as the collection name — so the schema already carries the parameter meaning. The description adds no parameter-level detail beyond this, so the baseline 3 applies.

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 ('Find') and resource ('a single document in a collection'). The qualifier 'single' usefully differentiates it from the sibling 'find', which presumably returns multiple documents, and 'count'/'aggregate'. However, it does not name the sibling explicitly and is close to a light restatement of the tool name.

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?

Usage context is only implied through the word 'single', suggesting the tool is for retrieving exactly one matching document. There is no explicit when-to-use guidance, no mention of alternatives like 'find' for multiple results or 'count' for counting matches, and no exclusion criteria.

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

Deploy Server

Other Tools