Skip to main content
Glama
nikhilchintawar

DB MCP Server

db_test_connection

Test database connectivity and retrieve connection status, latency, and version to confirm whether a PostgreSQL or MySQL database is reachable.

Instructions

Test the database connection and return connection status, latency, and database version.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It does state what the tool returns (status, latency, version), but does not say whether the operation is read-only, how failures are reported, whether credentials are required, or whether a test query is actually executed. The word 'test' implies non-mutating behavior, but this is not made explicit.

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?

The description is a single, focused sentence with no superfluous words. The primary action ('Test the database connection') is front-loaded, followed directly by the exact outputs the agent should expect. Every part of the sentence contributes useful information.

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 zero-parameter utility tool, this description is nearly complete: it names the action and the three expected return values. The main gaps are the exact format of the status and latency fields and any error behavior, but these are minor for a simple connection test without input parameters or an output schema.

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?

The input schema has zero parameters, so no parameter descriptions are required. The description adds value by listing relevant output metrics, which compensates for the absence of an output schema. A no-parameter health-check tool does not need parameter-level detail.

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?

The description clearly identifies the tool's verb ('Test') and resource ('database connection'), and explicitly states the outputs: connection status, latency, and database version. This uniquely distinguishes it from siblings like db_execute_query and db_get_schema, which target data operations rather than connectivity.

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?

The intended use is implied by the name and description: use when you need to verify database connectivity. However, no explicit guidance is given about when to prefer this over related database tools, such as before executing queries or after setup, and no alternatives or exclusions are mentioned.

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