Skip to main content
Glama
db-conn-mcp

db-conn-mcp

list_databases

Read-onlyIdempotent

List configured databases with their mode and yolo flag to get the name every other tool needs as its database argument. Reads local connections.json only and opens no connection.

Instructions

List configured databases with their allowed mode and yolo flag (no DSN).

Call this first: every other tool takes one of these names as its database argument. It reads only the local connections.json and opens no connection — to test whether a database actually answers, use check_database.

Returns meta and databases, one item per configured database with name, mode and yolo. Entries with fallback_ports configured also show them, plus active_port when a fallback port is currently in use.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_databases"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
metaYes
databasesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv0.8.0
    • addedOutput schema / $defs
      Added value: +{
      +  "Meta": {
      +    "description": "The first key of every tool's answer: what came back, and how long it took.\n\nnull means the field does not apply to the tool, or the tool cannot know it.",
      +    "properties": {
      +      "database": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "title": "Database"
      +      },
      +      "elapsed_ms": {
      +        "title": "Elapsed Ms",
      +        "type": "integer"
      +      },
      +      "row_count": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "title": "Row Count"
      +      },
      +      "tool": {
      +        "title": "Tool",
      +        "type": "string"
      +      },
      +      "truncated": {
      +        "anyOf": [
      +          {
      +            "type": "boolean"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "title": "Truncated"
      +      }
      +    },
      +    "required": [
      +      "tool",
      +      "database",
      +      "row_count",
      +      "truncated",
      +      "elapsed_ms"
      +    ],
      +    "title": "Meta",
      +    "type": "object"
      +  }
      +}
    • addedOutput schema / properties / databases
      Added value: +{
      +  "items": {
      +    "additionalProperties": true,
      +    "type": "object"
      +  },
      +  "title": "Databases",
      +  "type": "array"
      +}
    • addedOutput schema / properties / meta
      Added value: +{
      +  "$ref": "#/$defs/Meta"
      +}
    • removedOutput schema / properties / result
      Removed value: -{
      -  "items": {
      -    "additionalProperties": true,
      -    "type": "object"
      -  },
      -  "title": "Result",
      -  "type": "array"
      -}
    • changedOutput schema / required
      Previous value: -[
      -  "result"
      -]New value: +[
      +  "meta",
      +  "databases"
      +]
    • changedOutput schema / title
      Previous value: -"list_databasesOutput"New value: +"ListDatabasesResult"
  2. First observed

TDQS

A4.5/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so safety is covered. The description adds real behavioral context beyond them: it reads only local connections.json and opens no connection, which explains why it cannot fail on network/auth grounds. It does not discuss caching or whether the file is re-read each call, but the key operational trait is disclosed.

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?

Three short paragraphs, each with a distinct job: what it is, when to call it and what to use instead, and what comes back. No redundant restatement of the name, and the most important instruction (call it first) is front-loaded.

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 zero-parameter discovery tool with an output schema, this definition covers everything an agent needs: freshness (reads local config), no side effects, bootstrapping order, and a pointer to the connectivity-check sibling. No gaps that would cause a wrong call.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Zero parameters, so the baseline of 4 applies; there is nothing for the description to disambiguate. It does add meaning about the output shape (name, mode, yolo, optional fallback_ports and active_port), which helps the agent consume the result even though that belongs to output semantics.

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?

States a specific verb and resource ("List configured databases") plus the key attributes returned (mode, yolo flag) and an explicit exclusion ("no DSN"). The reader immediately knows this is the configuration inventory, not a connectivity probe.

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

Usage Guidelines5/5

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

Gives a strong ordering directive ("Call this first") with the reason: every other tool consumes one of these names as its `database` argument. It also names the alternative, check_database, and the condition that selects it — testing whether a database actually answers.

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