analyze_db_health
Runs selected or all PostgreSQL health checks across indexes, connections, vacuum, sequences, replication, buffers, and constraints to surface database issues.
Instructions
Analyzes database health. Here are the available health checks:
index - checks for invalid, duplicate, bloated and rarely used indexes
connection - checks the number of connections and their utilization
vacuum - checks transaction id wraparound and dead rows
sequence - checks sequences at risk of exceeding their maximum value
replication - checks replication health including lag and slots
buffer - checks for buffer cache hit rates for indexes and tables
constraint - checks for invalid constraints
all - runs all checks You can optionally specify a single health check or a comma-separated list of health checks. The default is 'all' checks.
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": "analyze_db_health"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| health_type | No | Optional. Valid values are: all, buffer, connection, constraint, index, replication, sequence, vacuum. | all |