Skip to main content
Glama

ping

Verify a PostgreSQL connection is reachable by running a SELECT 1 health check, so you can confirm database availability before running queries.

Instructions

Check that a connection is reachable (SELECT 1).

Input Schema

NameRequiredDescriptionDefault
connection_idYesConnection id. See list_connections.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It does disclose that a trivial SELECT 1 is executed, which signals a cheap, non-mutating read, but it says nothing about whether a failure throws an error or returns a false result, nor about cost/timeout behavior.

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?

One front-loaded sentence with the action first and the implementation detail in parentheses; nothing is wasted and nothing important is buried.

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?

An output schema exists, so return values need no explanation, and for a one-parameter probe this is nearly sufficient. The remaining gap is failure semantics — whether an unreachable connection raises or returns a negative result.

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 description coverage is 100% and the single connection_id parameter is documented there with a pointer to list_connections, so the description adds nothing beyond it. Baseline 3 applies since the schema does all the parameter work.

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?

States a specific verb and resource ('Check that a connection is reachable') and even names the mechanism (SELECT 1), so an agent can tell it apart from query or analyze_db_health. It stops short of explicitly naming the sibling it replaces, but the intent is unambiguous.

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: the check is a precondition-style probe, but the description never says when to prefer it over analyze_db_health or get_server_info, nor when not to bother. An agent can infer the case but must do the work itself.

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