Skip to main content
Glama

list_databases

List all databases available on a connection's PostgreSQL server, so you can discover which databases exist before choosing one to query with its own connection.

Instructions

List the databases on this connection's server. Querying one needs its own configured connection: PostgreSQL cannot read across databases in a session.

Input Schema

NameRequiredDescriptionDefault
connection_idYesConnection id. See list_connections.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

No annotations are provided, so the description must carry behavioral context, and it discloses the key PostgreSQL limitation that cross-database access requires separate connections. It does not cover read-only safety, permissions, or pagination, but it surfaces the most important non-obvious constraint.

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

Conciseness5/5

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

The description is two tightly written sentences with the purpose front-loaded and the caveat immediately following. Every sentence contributes useful information with no waste.

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

Completeness5/5

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

For a one-parameter list operation with full schema coverage and an output schema, the description supplies the only significant non-obvious caveat about PostgreSQL cross-database connections. Nothing else is needed for an agent to call it correctly.

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 coverage is 100% and the sole connection_id parameter is fully documented in the schema. The description adds no additional parameter semantics beyond what the schema already provides, so baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/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, "List the databases," and scopes it to "this connection's server." This clearly distinguishes it from sibling tools such as list_schemas and list_tables.

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

Usage Guidelines4/5

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

It gives clear operational context by explaining that querying a database requires its own configured connection, since PostgreSQL cannot read across databases in a session. It does not explicitly name alternatives or when-not to use this tool, so it falls short of full routing guidance.

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