Index health
index_healthReports unused and redundant PostgreSQL indexes across user schemas, including sizes and wasted bytes, and suggests candidates to review without dropping any index.
Instructions
Report the health of every index in user schemas: indexes never scanned (excluding primary-key and unique indexes, which enforce integrity) and indexes made redundant by a wider composite index on the same table, with sizes and wasted bytes. Suggestions only — this tool never drops an index.
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": "index_health"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schema | No | Only check indexes in this schema, e.g. "public". Defaults to all user schemas. |