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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| target | No |