analyze-missing-indexes
analyze-missing-indexesSuggests indexes for simple single-table SELECT predicates and ORDER BY terms after checking existing catalog indexes. Offers heuristic advice only; never runs queries or applies DDL.
Instructions
Suggests indexes for simple single-table SELECT predicates/order terms after checking existing catalog indexes, including primary keys. Heuristic advice only; never executes the query or applies index DDL.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sql": "<sql>"
},
"name": "analyze-missing-indexes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | SQL query to analyze for missing indexes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Failure information; present when success is false | |
| result | No | The legacy JSON payload; present for completed operations and partial batches | |
| success | Yes | False for tool failures, including partially failed batches |