Skip to main content
Glama
isdaniel

MySQL-Performance-Tuner-Mcp

get_table_stats

Analyze MySQL table statistics to identify optimization needs like index improvements, table fragmentation, and partitioning opportunities by examining size, row counts, and index information.

Instructions

Get detailed statistics for MySQL user tables.

Returns information about:

  • Table size (data, indexes, total)

  • Row counts and average row length

  • Index information

  • Auto-increment values

  • Table fragmentation

  • Engine type and collation

Helps identify tables that may need:

  • Optimization (OPTIMIZE TABLE)

  • Index improvements

  • Partitioning consideration

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
schema_nameNoSchema/database to analyze (uses current database if not specified)
table_nameNoSpecific table to analyze (analyzes all tables if not provided)
include_indexesNoInclude index statistics
order_byNoOrder results by this metricsize

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