Skip to main content
Glama

diagnose

Read-onlyIdempotent

Run Postgres health checks for bloat, vacuum, locks, activity, waits, slow queries, missing indexes, cache, logs, replication, and constraints on a Multigres cluster node.

Instructions

Run health checks (bloat, vacuum, locks, activity, waits, slow queries, missing indexes, cache, log, index health, sequences, replication, constraints), after the statistics period of the node that answered.

Input Schema

NameRequiredDescriptionDefault
nodeNoRun the checks on this node over a direct connection (cell/name, name, or primary); default is through the gateway
checksNoChecks to run, in any order (default all): bloat, vacuum, locks, activity, waits, slow_queries, missing_indexes, cache, log, index_health, sequences, replication, constraints

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive, and closed-world behavior. The description adds useful operational context about running after the statistics period of the answering node, though it does not discuss duration, permissions, or result shape.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded and essentially one sentence. The long parenthetical check list duplicates schema content but remains readable and useful for scanning.

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 complex diagnostic tool with no output schema, the description lists the check categories but does not explain what results to expect or how the individual checks differ. It is sufficient to invoke, but not fully complete for interpreting a diagnostic run.

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%, so both the node and checks parameters are already documented in the schema. The description reinforces the available checks and default-all behavior but adds little semantic detail beyond the structured fields.

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 and resource: run health checks. The parenthetical list of check categories makes the tool's scope concrete and distinguishable from query-focused siblings, though it does not explicitly name alternatives.

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?

Provides a timing prerequisite: run after the statistics period of the node that answered. It does not state when to choose this tool over siblings such as get_top_queries or explain_query, so usage is implied rather than explicit.

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