Skip to main content
Glama
MCP Database Server

MCP Database Server

by RifkyR3

db_test_connection

Validates connectivity to a configured main connection or a specific database, helping confirm access before running queries.

Instructions

Test connectivity to a main connection or a specific database

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": "db_test_connection"
  }
}

Input Schema

NameRequiredDescriptionDefault
mainIdNoMain connection ID
databaseNoDatabase name
connectionIdNoSub-connection alias or composite ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

B3.3/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 behavioral burden. 'Test' implies a non-mutating probe, but the definition never states whether it writes anything, whether it authenticates, whether it blocks or times out, or what a success versus failure looks like. For a diagnostic tool with zero annotation coverage this is a substantial gap.

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?

A single front-loaded sentence with no filler; the two test targets are stated immediately. Nothing is repeated from the schema or padding the text.

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?

With no output schema, the description should explain what the test returns (latency, error text, boolean) and what all-optional parameters mean when omitted. It also does not say what happens if both mainId and a sub-connection are given. For a low-complexity tool this is adequate but leaves real gaps.

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%, so all three parameters are already documented in the schema. The description adds the useful framing that testing occurs at either the main-connection level or the per-database level, which maps to mainId versus database/connectionId, but supplies no format, precedence, or default guidance. Baseline 3 applies when the schema does the heavy lifting.

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?

Names a specific verb ('test') and resource ('connectivity'), and scopes it to either a main connection or a specific database. An agent can tell it verifies reachability rather than listing or querying. It stops short of naming how it differs from a sibling like db_list_connections, so no sibling differentiation.

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?

Use is only implied: verifying that a connection or database is reachable presumably before issuing db_execute_query. There is no explicit when-to-use, no prerequisites, and no statement about when a different tool (e.g. listing connections) is the better call.

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