Health snapshot
database_healthGet PostgreSQL database health: cache hit ratio, connections, long-running queries, vacuum backlog, invalid indexes, sequence exhaustion, replication lag. Unreadable values are marked unavailable.
Instructions
One snapshot of the things an operator would otherwise assemble by hand: cache hit ratio, connections, long-running statements and abandoned transactions, vacuum backlog, invalid indexes, sequences near their ceiling, replication lag. Scoped to the current database; anything the connected role cannot read is reported as unavailable rather than left out.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "database_health"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database | No | which configured database to use; omit when only one is configured |