estimate_ddl_blast_radius
Estimates DDL lock duration, connection-pool exhaustion risk, and blocked read/write query counts from migration SQL, table row count, and production QPS.
Instructions
Estimates lock duration in seconds, connection-pool exhaustion risk, and blocked read/write query counts given SQL DDL statements, target table row count, and production QPS.
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>",
"tableRows": "<tableRows>",
"qps": "<qps>"
},
"name": "estimate_ddl_blast_radius"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| qps | Yes | Peak production queries per second hitting the target table. | |
| sql | Yes | SQL DDL migration statements to model under production load. | |
| dialect | No | SQL dialect override (defaults to auto). | |
| readRatio | No | Fraction of QPS consisting of SELECT reads vs writes (defaults to 0.78). | |
| tableRows | Yes | Target table row count in production (e.g. 15000000 for 15M rows). | |
| avgLongQuerySec | No | Tail duration in seconds of active in-flight queries ahead of the DDL lock queue (defaults to 3.5). |