Skip to main content
Glama

List MongoDB collections

mongo_list_collections
Read-onlyIdempotent

List MongoDB collections and metadata with bounded result size and optional case-insensitive name filter, for schema discovery before querying.

Instructions

List MongoDB collections and metadata with a bounded result size and optional case-insensitive name filter.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
connection_idYes
name_containsNo
response_formatNomarkdown

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0-alpha.1

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds useful context that results are bounded and the name filter is case-insensitive, but says nothing about pagination, ordering, or what happens at the limit boundary.

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 no filler. It packs the resource, the bounded-size behavior, and the filter into one efficient statement.

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

Completeness4/5

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

For a simple read-only list tool with annotations covering safety and no output schema, the description is largely sufficient. Minor gaps around return format and connection context are low risk given the self-explanatory schema.

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 the description must compensate. It partially does by describing the limit as a 'bounded result size' and name_contains as a 'case-insensitive name filter,' but leaves connection_id and response_format (an enum with default) unaddressed.

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 clear verb+resource ('List MongoDB collections and metadata') and adds scope via 'bounded result size' and 'optional case-insensitive name filter.' It is distinct from siblings like mongo_list_connections, though it never names that sibling to sharpen the distinction.

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 explicit guidance on when to use this tool versus alternatives such as mongo_list_connections or mongo_find. Usage is only implied by the verb 'List,' with no preconditions, exclusions, or named alternatives.

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