get_active_queries
Identify currently running PostgreSQL queries and their durations to detect long-running or blocked sessions, helping troubleshoot performance issues.
Instructions
List currently running queries and their duration.
Args:
database_url: Database URL (optional, uses DATABASE_URL from .env if omitted).
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_active_queries"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database_url | No |