analyze_locks
Reports PostgreSQL lock waits in progress, showing blocked and blocking sessions, lock type, wait duration, and chain hops from a read-only snapshot without terminating anything.
Instructions
Reports the lock waits in progress: which sessions are blocked, which sessions block them, through how many hops, on which lock and for how long. Read-only diagnosis of a single snapshot: it never cancels or terminates anything.
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_locks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||