Skip to main content
Glama
MCP Database Server

MCP Database Server

by RifkyR3

db_discover_databases

Discovers all databases on a configured main connection host, so you can identify available PostgreSQL or MySQL databases before querying or exploring them.

Instructions

Query the database server to discover all databases existing on a main connection host

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": {
      "mainId": "<mainId>"
    },
    "name": "db_discover_databases"
  }
}

Input Schema

NameRequiredDescriptionDefault
mainIdYesID of the main connection (e.g. "postgres_main" or "mysql_main")

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden. 'Query... to discover' implies a read-only enumeration, but it says nothing about required permissions, whether system databases are included, what happens when the host is unreachable, or whether any state is changed. For a tool with zero annotation coverage, that is a meaningful gap.

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. The phrasing 'all databases existing on a main connection host' is slightly awkward but does not obscure meaning.

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 discovery tool with no output schema and no annotations, the definition covers what it enumerates but not the return shape, error behavior, or prerequisites. Adequate but with clear gaps an agent would want filled before relying on it.

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 schema already gives an example mainId value, so the baseline is 3. The description adds only the notion that mainId refers to a 'main connection host', which is marginal value beyond the schema's own example.

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 ('Query... to discover') and resource ('all databases existing') scoped to a main connection host. It is clearly distinguishable from siblings like db_list_tables or db_describe_table, though it does not explicitly contrast with db_sync_databases, which also deals with databases.

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 a discovery/enumeration step that should precede actions on a specific database. There is no explicit when-to-use, no exclusions, and no named alternative such as db_list_connections or db_sync_databases, leaving the choice between siblings to inference.

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