suggest_fix
Fix unsafe PostgreSQL migration SQL by automatically producing corrected SQL and a list of changes.
Instructions
Auto-fix safe violations in a PostgreSQL migration SQL. Returns the fixed SQL and list of 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": "suggest_fix"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | The SQL migration to fix | |
| pg_version | No | Target PostgreSQL version (default: 17) |