Skip to main content
Glama
multi-postgres-mcp-server

multi-postgres-mcp-server

by VKirill

pg_health_check

Tests connectivity to a configured PostgreSQL database and returns its version and response latency, helping verify configuration and diagnose connection issues before running queries.

Instructions

Test database connectivity and return PostgreSQL version and response 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": {
      "database": "<database>"
    },
    "name": "pg_health_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
databaseYesDatabase label from config

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/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 discloses the return payload (version and latency) and implicitly a read-only probe, but says nothing about auth requirements, cost/safety of repeated polling, or what happens on connection failure (error vs. status result) — meaningful gaps for a health-check tool.

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 tight sentence with the action and the outputs front-loaded; there is no filler or restated naming.

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 one-parameter diagnostic tool with no output schema, the description covers purpose and return values adequately. The main omission is failure-mode behavior (what the agent sees when connectivity fails), which would matter for a health check.

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% for the single 'database' parameter, so the schema already documents it as a config label. The description adds no extra meaning about the parameter (e.g., that it must be a label listed by pg_list_databases), so the high-coverage baseline of 3 applies.

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+resource pair: 'Test database connectivity' and explicitly states what it returns (PostgreSQL version and response latency). It is clear what the tool does, though it never contrasts itself with sibling read tools like pg_list_databases or pg_query, so an agent must infer the distinction.

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: 'test connectivity' suggests it is the pre-flight/verification tool before running queries against a database, but the description never says when to prefer it over pg_list_databases or pg_query, nor any exclusion conditions.

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