long_running_queries
Identify active PostgreSQL queries running at least a minimum number of seconds, oldest first, to diagnose slow-query performance and blocking issues.
Instructions
[READ] Active queries running at least min_seconds, oldest first.
Args:
min_seconds: Minimum age in seconds (default 60).
target: Target name from config; omit for the default.
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": "long_running_queries"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | ||
| min_seconds | No |