Top queries
get_top_queriesRetrieve high-cost PostgreSQL statements from pg_stat_statements, ranked by total time, mean time, or calls, with inline secrets masked.
Instructions
Most expensive statements from pg_stat_statements (requires the extension), with inline secrets masked.
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_top_queries"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | How many (default 20) | |
| orderBy | No | Rank by (default total_time) |