analyze_migration
Analyze PostgreSQL migration SQL for safety issues, returning violations, risk level, and lock analysis to prevent unsafe database changes.
Instructions
Analyze a PostgreSQL migration SQL for safety issues. Returns violations, risk level, and lock analysis.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | The SQL migration to analyze | |
| pg_version | No | Target PostgreSQL version (default: 17) |