run_migration
Run DDL migration scripts inside a transaction to apply schema changes atomically, preventing partial updates.
Instructions
Run a database migration (DDL statements) in a transaction.
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": "run_migration"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | Migration SQL containing one or more DDL statements separated by semicolons |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||