drop_index
Safely remove a MySQL/MariaDB index by capturing its definition first for rollback; preview changes with dry_run before execution.
Instructions
[WRITE][risk=high] Drop an index. Reversible: captures its definition first.
Before dropping, the exact index definition is rebuilt from SHOW CREATE TABLE so the harness records an undo that recreates it. Pass dry_run=True to preview.
Args: table: Table the index belongs to (optionally schema-qualified). name: Index name to drop. dry_run: If True, preview without dropping. target: Target name from config; omit for the default.
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>",
"name": "<name>"
},
"name": "drop_index"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| table | Yes | ||
| target | No | ||
| dry_run | No |