detect_table_locks
Map lock levels (AccessExclusiveLock, ShareLock) acquired per SQL statement in a migration to identify table locks before execution.
Instructions
Map out lock levels (AccessExclusiveLock, ShareLock) acquired per statement in migration.
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": {
"sql": "<sql>"
},
"name": "detect_table_locks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | Raw SQL migration text to inspect. | |
| dialect | No | Target SQL dialect (default: 'postgres'). |