Explain a PostgreSQL lock mode
explain_lockExplain PostgreSQL lock modes. Provide what each lock blocks and which operations acquire it, helping prevent dangerous SQL migrations.
Instructions
Given a lock mode name (e.g. 'ACCESS EXCLUSIVE') or a fragment of an operation, explain what it blocks and which operations acquire it.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "explain_lock"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | A lock mode name or operation fragment, e.g. 'ACCESS EXCLUSIVE' or 'create index'. |