get_index_recommendations
Analyze MySQL query patterns to identify full table scans and inefficient index usage, then generate prioritized index recommendations for performance optimization.
Instructions
Get AI-powered index recommendations for MySQL user tables.
Analyzes query patterns from performance_schema to recommend indexes:
Identifies queries with full table scans
Finds queries not using indexes efficiently
Suggests composite indexes for multi-column filters
Prioritizes recommendations by potential impact
Note: This tool only analyzes user/custom tables and excludes MySQL system tables (mysql, information_schema, performance_schema, sys).
Based on MySQL performance_schema statistics and query patterns. Similar to MySQLTuner's index analysis but with more detailed recommendations.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_index_recommendations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schema_name | No | Schema/database to analyze | |
| max_recommendations | No | Maximum number of recommendations (default: 10) | |
| min_improvement_percent | No | Minimum expected improvement percentage (default: 10) | |
| include_query_analysis | No | Include analysis of specific queries |