Skip to main content
Glama

overview

Get a one-shot PostgreSQL cluster health snapshot: version, uptime, connections, idle-in-transactions, longest query, dead-tuple table, replay lag. A failing probe won't hide the rest.

Instructions

[READ] One-shot cluster health snapshot.

Version + uptime, connections by state, idle-in-transaction count, the
longest-running query, the worst dead-tuple table, and standby replay lag —
each section captured defensively so one failing probe does not sink the rest.

Args:
    target: Target name from config; omit for the default.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
targetNo
Behavior4/5

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

No annotations present, so description carries full burden. It explicitly marks the tool as '[READ]' and notes defensive capture behavior ('each section captured defensively so one failing probe does not sink the rest'), adding useful context beyond a simple read hint.

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?

Headline clearly states purpose, bullet points list captured metrics efficiently, and parameter description is direct. No extraneous words; each sentence adds value.

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?

Lacks output schema but provides a comprehensive list of captured metrics, giving the agent a solid understanding of what to expect. Could benefit from a note on response format or error handling, but adequate for a health snapshot tool.

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?

Single parameter 'target' has schema coverage 0%, but the description adds meaningful context: 'Target name from config; omit for the default.' This clarifies its purpose and default behavior.

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?

Clearly states it's a '[READ] One-shot cluster health snapshot' and lists specific metrics (version, uptime, connections by state, etc.). This differentiates it from sibling tools like list_activity or long_running_queries which focus on specific aspects.

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?

Implies use for quick health check via the bullet points, but does not explicitly describe when to use vs. sibling tools or when not to use it. Provides basic guidance on the 'target' parameter but lacks broader context.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AIops-tools/Postgres-AIops'

If you have feedback or need assistance with the MCP directory API, please join our Discord server