Skip to main content
Glama

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

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
targetNo
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the burden of behavioral disclosure. It provides the return envelope structure, explains the 'truncated' flag, and notes that data_free represents reclaimable space for OPTIMIZE TABLE. The [READ] prefix signals read-only intent, but permissions are not addressed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with a summary line, Args section, and Returns section. It front-loads the core purpose and includes important behavioral notes about the envelope and truncation behavior. It is longer than two sentences, but each part contributes necessary information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the absence of an output schema, the description thoroughly explains the return envelope and the meaning of 'truncated'. It covers parameters and the operation's goal. A minor gap is the exact structure of entries within 'tables', but overall it is sufficient for a diagnostic tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate. It defines 'limit' as 'Number of tables to inspect (default 50)' and 'target' as 'Target name from config; omit for the default,' adding meaningful semantics beyond the bare schema types. The description of 'target' could be slightly more detailed, but it is functional.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

[READ] data_free per table (space OPTIMIZE TABLE could reclaim), worst first.' clearly identifies the tool's resource and metric. It is specific and informative, but it doesn't explicitly distinguish from sibling 'fragmentation_analysis', which might serve a similar diagnostic purpose.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description lacks explicit guidance on when to choose this tool over alternatives. While it includes a useful note about the 'truncated' field and re-running with a higher limit, that is about result interpretation rather than tool selection.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AIops-tools/MySQL-AIops'

If you have feedback or need assistance with the MCP directory API, please join our Discord server