Skip to main content
Glama
rajarshi-personal

Portable Database MCP

list_collections

Read-only

List collection names in a specified MongoDB database to discover available data sets and inspect schema before querying.

Instructions

List MongoDB collections.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
databaseYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered. The description adds nothing beyond that—no note on return ordering, count behavior, or what happens for an empty/nonexistent database—so it contributes no behavioral value.

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 short sentence with no filler and the operation front-loaded. It is efficient, though it errs toward under-specification rather than redundancy.

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?

An output schema exists so return values need not be described, but for a tool with a required, zero-coverage parameter the definition remains thin: no database semantics and no usage context. It is only marginally adequate given the tool's simplicity.

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% and the one required parameter (database) is undocumented in both schema and description. The description never explains what 'database' should contain or whether it accepts names versus connection strings, so it fails to compensate for the coverage gap.

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 (List) and resource (MongoDB collections), so an agent immediately knows the operation. It does not, however, distinguish itself from siblings like list_databases, list_tables, list_schemas, or describe_collection, leaving the agent to infer which listing scope applies.

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 guidance on when to use this versus list_databases, list_schemas, or describe_collection, and no mention of any prerequisite such as needing a valid database name. The single sentence offers no context or exclusions.

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