Skip to main content
Glama
MongoDB MCP somente leitura

MongoDB MCP somente leitura

listCollections

Read-only

Lists only authorized collections in a specified MongoDB database, enabling read-only schema discovery while preventing access to restricted collections.

Instructions

Lista apenas coleções autorizadas no banco informado.

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>"
    },
    "name": "listCollections"
  }
}

Input Schema

NameRequiredDescriptionDefault
databaseYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.2/5.0
Behavior3/5

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

The annotations already declare this as a safe read (readOnlyHint=true, destructiveHint=false), so the bar is lower. The description adds one genuinely useful behavioral fact beyond them: results are limited to authorized collections, so a partial listing is expected rather than an error. It says nothing about ordering, pagination, or behavior when the database does not exist.

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?

One short sentence with zero filler, and the scope and permission qualifier are front-loaded. Its brevity borders on under-specification rather than verbosity, so it is efficient but not maximally informative.

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 one-parameter read tool whose annotations carry the safety profile and which has no output schema, the description is roughly adequate but leaves gaps: return shape, empty-result handling, and what 'autorizadas' implies for completeness of results are unstated.

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 0%, so only the schema's type/constraints (string, 1–63 chars) document the single parameter. The phrase 'no banco informado' confirms which parameter the listing is scoped to, but adds no format detail such as whether a name or id is expected or how an unknown database is reported.

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?

States a specific verb+resource pair ('Lista ... coleções') scoped to a named database, and the qualifier 'apenas autorizadas' signals results are permission-filtered. It does not explicitly contrast with siblings like listDatabases or countDocuments, but the resource differs enough that an agent can distinguish them.

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, no mention of alternatives, and no prerequisites (e.g., what to do if the database is unknown or unauthorized). The agent must infer that this is the enumeration entry point before find/findOne.

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