Suggest a MySQL index
mysql_index_suggestionsGenerate ALTER TABLE ADD INDEX SQL for a MySQL table column, plus a composite variant and EXPLAIN guidance, to fix missing-index or full table scan findings.
Instructions
Generates the exact ALTER TABLE ADD INDEX SQL for a MySQL table column, including a composite variant and EXPLAIN guidance to verify the index is used. Call this when the analyzer flags a missing MySQL index or full table scan finding. Does not verify whether the index already exists.
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": {
"table": "<table>",
"column": "<column>"
},
"name": "mysql_index_suggestions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | MySQL table name | |
| column | Yes | Column name to index |