analyze_table
Refresh MySQL/MariaDB index statistics to support query optimization. Preview safely with dry_run and capture prior stats for audit.
Instructions
[WRITE][risk=medium] ANALYZE TABLE to refresh index statistics.
No undo; captures prior stats for audit. Takes a brief read lock while sampling. Pass dry_run=True to preview.
Args: table: Table name (optionally schema-qualified). dry_run: If True, preview without running. 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": "analyze_table"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | ||
| target | No | ||
| dry_run | No |