sql_migration_lock_analyzer
Detect PostgreSQL/MySQL DDL migration lock hazards, flagging ACCESS EXCLUSIVE rewrites, non-CONCURRENTLY indexes, and unvalidated FKs to prevent downtime.
Instructions
[x402 $0.04 USDC on Base/Solana] Detects PostgreSQL/MySQL ACCESS EXCLUSIVE DDL table-rewrite and lock hazards (non-CONCURRENTLY indexes, unvalidated FKs, ALTER TYPE) with zero-downtime rewrites.
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": "sql_migration_lock_analyzer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | SQL DDL migration script | |
| dialect | No | postgres or mysql (default postgres) | |
| pgVersion | No | PostgreSQL major version (default 15) | |
| _paymentSignature | No | Optional base64-encoded x402 v2 payment-signature header (overrides X402_PAYMENT_SIGNATURE env var). |