push_plan
Validate a YAML/ZWO training plan, preview per-date calendar changes against intervals.icu, and write approved new or updated events using dry-run first.
Instructions
Push a whole training plan (plan.yaml + .zwo workouts) to the intervals.icu calendar.
Validates the plan and every workout first, then compares it with the calendar and returns a per-date diff: + new, ~ updated, = unchanged, ! stale. With dry_run=true (the default) nothing is written. Only call with dry_run=false after the user has seen the diff and agreed. Re-pushing is safe: events are matched by uid and updated in place.
Args: plan_yaml: Path to the plan.yaml file. start_date: Optional YYYY-MM-DD Monday for week 1, overriding the plan's start. dry_run: true = show the diff only; false = write new and updated events.
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_yaml": "<plan_yaml>"
},
"name": "push_plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | ||
| plan_yaml | Yes | ||
| start_date | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |