apply_plan
Apply a previously-previewed SQLMesh plan to update real data in the warehouse. Requires explicit confirmation and a valid plan_id from the current session.
Instructions
Apply a previously-previewed plan. THIS CHANGES REAL DATA in the target warehouse.
Requires confirm=true. plan_id must come from a plan() call in this same session -- plans aren't kept across server restarts.
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": {
"plan_id": "<plan_id>"
},
"name": "apply_plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | ||
| plan_id | Yes |