migrate.run
Plan, lint, and optionally apply migrations. POST .../environments/{env}/migrations. migrations is a JSON array of {version,name,up,down?}. Without apply it only plans and lints; with apply true it applies and so requires confirm.
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": {
"organization_id": "<organization_id>",
"project_id": "<project_id>",
"environment_id": "<environment_id>",
"migrations": "<migrations>",
"confirm": "<confirm>"
},
"name": "migrate.run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apply | No | Apply after the lint passes (default false) | |
| confirm | Yes | Must be true to apply this mutation; otherwise the tool returns the request it would send for approval. | |
| migrations | Yes | migrations (required) | |
| project_id | Yes | project_id (required) | |
| environment_id | Yes | environment_id (required) | |
| organization_id | Yes | organization_id (required) |