Skip to main content
Glama

MySQL-Performance-Tuner-Mcp

get_fragmented_tables

Identify MySQL tables with significant fragmentation that waste disk space and slow query performance. Analyze user tables based on fragmentation percentage and wasted space thresholds to optimize database storage.

Instructions

Find user tables with significant fragmentation.

Fragmentation occurs when:

  • Data is deleted from tables

  • Tables are frequently updated

  • VARCHAR/TEXT columns are modified

Note: This tool only analyzes user/custom tables and excludes MySQL system tables (mysql, information_schema, performance_schema, sys) by default.

High fragmentation wastes disk space and can slow queries.

Input Schema

NameRequiredDescriptionDefault
min_fragmentation_pctNoMinimum fragmentation percentage threshold
min_data_free_mbNoMinimum wasted space in MB
schema_nameNoFilter by specific schema
limitNoMaximum tables to return

Input Schema (JSON Schema)

{ "properties": { "limit": { "default": 50, "description": "Maximum tables to return", "type": "integer" }, "min_data_free_mb": { "default": 10, "description": "Minimum wasted space in MB", "type": "number" }, "min_fragmentation_pct": { "default": 10, "description": "Minimum fragmentation percentage threshold", "type": "number" }, "schema_name": { "description": "Filter by specific schema", "type": "string" } }, "required": [], "type": "object" }

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/isdaniel/MySQL-Performance-Tuner-Mcp'

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