Skip to main content
Glama

test_connection

Verifies a database connection end to end, including configured SSH tunnels, and reports server version plus connect and query latency so you can confirm it works.

Instructions

Verify a connection works end to end (including ssh tunnel if configured). Reports server version and connect+query latency.

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

Input Schema

NameRequiredDescriptionDefault
nameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose useful behavioral facts — the check traverses an ssh tunnel if configured and returns server version and connect+query latency — which signals this is a non-destructive probe, but it says nothing about failure behavior (exception vs. error payload) or cost of the round trip.

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?

Two tight sentences with zero filler; the core action is front-loaded and the parenthetical scope qualifier is appropriately brief.

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 read-only probe with no output schema, the description covers what happens and what comes back at a high level. It is still thin on how the single input is interpreted and on how results or failures are surfaced, which matters given the absent annotations.

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

Parameters2/5

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

There is one required parameter, name, with 0% schema description coverage, so the description must compensate — and it does not. It never states that name identifies an existing connection (as opposed to a host or DSN), leaving the agent to infer it from sibling context.

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?

The description gives a specific verb+resource ("verify a connection") and adds scope detail: end-to-end check including the ssh tunnel, plus version and latency reporting. That clearly separates it from siblings like list_connections or update_connection, though it never names an alternative explicitly.

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 the diagnostic/health-check tool to run before executing queries, but the description gives no explicit when-to-use condition, no prerequisites, and no exclusions versus siblings such as describe_table or execute_sql.

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