Skip to main content
Glama

MySQL-Performance-Tuner-Mcp

get_index_stats

Analyze MySQL table index statistics to identify low cardinality, oversized, and infrequently used indexes for performance optimization.

Instructions

Get detailed index statistics for MySQL user tables.

Returns:

  • Index cardinality and selectivity

  • Index size and memory usage

  • Read/write operation counts

  • Index efficiency metrics

Helps identify:

  • Low cardinality indexes

  • Oversized indexes

  • Infrequently used indexes

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

Input Schema

NameRequiredDescriptionDefault
schema_nameNoSchema/database to analyze
table_nameNoSpecific table to analyze (optional)
order_byNoOrder results bysize

Input Schema (JSON Schema)

{ "properties": { "order_by": { "default": "size", "description": "Order results by", "enum": [ "size", "reads", "cardinality", "name" ], "type": "string" }, "schema_name": { "description": "Schema/database to analyze", "type": "string" }, "table_name": { "description": "Specific table to analyze (optional)", "type": "string" } }, "required": [], "type": "object" }

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