Skip to main content
Glama

list_databases

Lists databases on a specified connection with size in bytes, filtering out PostgreSQL template databases and MySQL system schemas.

Instructions

List databases on a connection with size in bytes. Hides postgres template databases and mysql system schemas.

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": {
      "connection": "<connection>"
    },
    "name": "list_databases"
  }
}

Input Schema

NameRequiredDescriptionDefault
connectionYesconnection name, see list_connections

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden. It does disclose genuinely useful non-obvious behavior — that postgres template databases and mysql system schemas are filtered out — which prevents an agent from expecting hidden entries. However, it says nothing about permissions/auth requirements, ordering, or pagination behavior for connections with many databases.

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?

Two sentences, zero filler. The core purpose and the returned metric are front-loaded, and the filtering caveat follows immediately.

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 one well-documented parameter and no output schema, the definition covers the essential facts: scope, return metric (size in bytes), and hidden entries. Return shape and ordering are left implicit, which is a minor gap rather than a blocking one.

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?

Only one parameter, and schema coverage is 100% with a description that routes the agent to list_connections. The tool description repeats 'on a connection' but adds no format or naming detail beyond the schema, so baseline 3 is appropriate when the schema does the work.

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 and resource ('List databases') scoped to a connection, and adds that each entry carries size in bytes. The resource noun 'databases' distinguishes it naturally from list_tables and list_connections without needing to name them.

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

Usage Guidelines3/5

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

Usage is only implied: an agent can infer this is the discovery step before describe_table or execute_sql, and the schema points to list_connections for obtaining the required argument. There is no explicit when-to-use/when-not statement or named alternative, which is acceptable but minimal for a discovery tool.

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