table_fragmentation
Identify tables with reclaimable fragmented space using data_free, worst first, to prioritize OPTIMIZE TABLE.
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 |