Skip to main content
Glama
DataPilot MCP

DataPilot MCP

Disconnect database

disconnect_database
Destructive

Close an open database connection by alias, discard its cached schema, and remove generated table tools while preserving the database and other connections.

Instructions

Close the connection identified by alias, discard its cached schema, and remove the generated tools for that alias. Keeps the database and the other connections. Returns the closed alias. Use list_connections to select an open connection.

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": {
      "alias": "<alias>"
    },
    "name": "disconnect_database"
  }
}

Input Schema

NameRequiredDescriptionDefault
aliasYesOpen connection alias from list_connections.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.2.0
    • addedInput schema / properties / alias / description
      Added value: +"Open connection alias from list_connections."
  2. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only say destructive/generating nothing specific; the description goes further and enumerates exactly what is destroyed (cached schema, generated tools) and what survives (the database, other connections), plus the return value ('the closed alias'). For a destructive mutation this is precisely the collateral-damage disclosure an agent needs.

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 sentences, front-loaded with the action and its effects, ending with the prerequisite pointer. No redundant phrasing; each clause adds distinct information.

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 single-parameter destructive tool with an output schema, everything needed is present: what is closed, what is discarded, what is preserved, what is returned, and how to get a valid alias. Error behavior for an invalid alias is the only minor omission.

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 single parameter already documents 'Open connection alias from list_connections.' The description restates the same constraint rather than adding format or validation detail, so the baseline of 3 applies.

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 ('Close the connection') plus the exact resource ('identified by alias') and enumerates the concrete side effects: discarding cached schema, removing generated tools, keeping the database and other connections. This clearly separates it from connect_database and the read-only siblings.

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?

Points the agent to list_connections to obtain an open alias, which establishes the precondition. It does not explicitly say when not to use it (e.g., for a connection already closed, or to reset instead of disconnect), but the scope statement 'Keeps the database and the other connections' implicitly rules out broader teardown.

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