audit_migration_directory
Scans Prisma, Drizzle, Flyway, or raw .sql migration directories recursively for CRITICAL and HIGH lock-queue and full-table-rewrite hazards before deployment.
Instructions
Recursively scans Prisma, Drizzle, Flyway, or raw .sql migration directories for CRITICAL and HIGH deployment lock-queue and full-table-rewrite hazards.
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": {
"directoryPath": "<directoryPath>"
},
"name": "audit_migration_directory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| qps | No | Default peak production QPS used for blast-radius scoring (defaults to 800). | |
| strict | No | When true, marks status as BLOCKED on HIGH or MEDIUM findings in addition to CRITICAL findings. | |
| dialect | No | SQL dialect override applied across discovered .sql files (defaults to auto). | |
| tableRows | No | Default table row count used for blast-radius scoring (defaults to 10000000). | |
| directoryPath | Yes | Local directory path (such as prisma/migrations, drizzle, or sql) containing .sql migration files. | |
| onlyFlaggedFiles | No | When true, omits clean 0-hazard .sql files from the per-file breakdown array. |