create_index
Add an index to a database table on specified columns, optionally unique, to accelerate data retrieval.
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>",
"index_name": "<index_name>",
"columns": "<columns>"
},
"name": "create_index"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | ||
| unique | No | ||
| columns | Yes | ||
| database | No | Database/schema name; defaults to connection default_database | |
| connection | No | Named connection from config; defaults to default_connection | |
| index_name | Yes |