Skip to main content
Glama
MongoDB MCP somente leitura

MongoDB MCP somente leitura

find

Read-only

Query MongoDB documents with filters, sorting, projections, and pagination; indicates when more results exist or output is truncated.

Instructions

Consulta documentos paginados; informa quando há mais resultados ou truncamento.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "database": "<database>",
      "collection": "<collection>",
      "filter": "<filter>"
    },
    "name": "find"
  }
}

Input Schema

NameRequiredDescriptionDefault
skipNo
sortNo
limitNo
filterYesFiltro obrigatório. Use campos, $eq, $ne, $gt, $gte, $lt, $lte, $in, $and e $or.
databaseYes
collectionYes
projectionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare this a safe read operation (readOnlyHint=true, destructiveHint=false), so the safety bar is met externally. The description adds genuine behavioral value by disclosing that results are paginated and that the response signals whether more results exist or output was truncated — important given there is no output schema. It stops short of explaining limits or ordering behavior.

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 compact sentence with no filler, and the pagination/truncation signal — the most useful information — is placed prominently. It is efficient, though its brevity is partly the cause of the coverage gaps elsewhere.

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

Completeness2/5

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

This is a 7-parameter tool with a mandatory filter, nested/object parameters, and no output schema, yet the description never mentions the required filter, the 20-default/100-max limit, skip bounds, or what truncation means in practice. Given the complexity and low schema coverage, it is under-specified for correct invocation.

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 only 14% (solely the 'filter' property), and the description supplies no parameter meaning whatsoever for skip, limit, sort, projection, database, or collection. With 7 parameters and three required, the description does not compensate for the schema gap; only types, defaults, and bounds partially fill it.

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 and resource ('Consulta documentos') plus a scope qualifier ('paginados'), which makes the multi-document, paginated nature of the operation clear. It does not explicitly contrast with the sibling findOne, but the plural/paginated phrasing gives an agent enough to infer the difference.

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

Usage Guidelines2/5

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

There is no when-to-use guidance at all: nothing says when to prefer this over findOne, countDocuments, or distinct, and no prerequisites (such as the mandatory filter) are mentioned. Usage is only weakly implied by the verb 'consulta'.

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