Suggest indexes
suggest_indexesAnalyze a SELECT query's execution plan to identify sequential scans and recommend indexes, including reasoning and the CREATE INDEX statement. Suggestions only; no indexes are created.
Instructions
Analyse a SELECT query's plan and suggest indexes for sequential scans, with reasoning and the CREATE INDEX statement. Suggestions only — this tool never creates an index.
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": {
"query": "<query>"
},
"name": "suggest_indexes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The SELECT query to analyse. |