get_slow_queries
Identify slow PostgreSQL queries from pg_stat_statements, filter by duration or call count, and sort by total time, mean time, calls, or rows.
Instructions
Analyze slow queries via pg_stat_statements with filtering and sorting
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_slow_queries"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| sort_by | No | ||
| min_calls | No | ||
| min_duration_ms | No | ||
| include_query_text | No |