analyze_migration_safety
Analyze SQL migration scripts to detect table locks, destructive drops, and breaking changes before execution, helping prevent database outages.
Instructions
Analyze a SQL migration script for table locks, destructive drops, and breaking changes.
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": "analyze_migration_safety"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | Raw SQL migration text to inspect. | |
| dialect | No | SQL dialect ('postgres', 'mysql', 'sqlite'). Default: 'postgres'. |