analyze_workload_indexes
Identify slow queries from database workload using pg_stat_statements and suggest indexes to minimize execution time.
Instructions
Analyze database workload and recommend indexes. Uses pg_stat_statements to find slow queries and suggests indexes to improve them.
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": "analyze_workload_indexes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topQueriesCount | No | Number of top queries to analyze (1-50) | |
| includeHypothetical | No | Test recommendations with hypothetical indexes (requires hypopg) |