table_fragmentation
Inspect MySQL tables by reclaimable data_free, worst first, to pinpoint where OPTIMIZE TABLE can recover fragmented space.
Instructions
[READ] data_free per table (space OPTIMIZE TABLE could reclaim), worst first.
Args: limit: Number of tables to inspect (default 50). target: Target name from config; omit for the default.
Returns an envelope: {"tables": [...], "returned": N, "limit": L, "truncated": bool}. When "truncated" is true there is more beyond what was returned — re-run with a higher limit rather than treating this as the complete picture.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "table_fragmentation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| target | No |