create_index
Add an index to a MySQL table to improve query performance by specifying columns, index name, and optional uniqueness constraints.
Instructions
Create an index on a table
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>",
"indexName": "<indexName>",
"columns": "<columns>"
},
"name": "create_index"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | Table name | |
| indexName | Yes | Index name | |
| columns | Yes | Column names to index | |
| unique | No | Whether this is a unique index | |
| database | No | Database name (optional) |