Put a training plan on the calendar
add_training_planA whole plan from the OCR Races training-plan library on the user's calendar in one call, every session dated, instead of adding them one by one. mode 'list' (the default, no other input) returns the plans with goal, weeks and sessions a week. mode 'install' takes plan_slug and either race_date (the plan's last week is race week; sessions after race day are dropped) or start_monday (a Monday, this week or later). Installing the same plan again replaces its untouched sessions; completed ones stay. Returns the first week and how many sessions were written. All dates are the user's local calendar dates (YYYY-MM-DD) in their own time zone. Requires signing in.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "add_training_plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | 'list' to see the plans (default), 'install' to put one on the calendar. | |
| plan_slug | No | plan_slug from mode 'list'. Required for 'install'. | |
| race_date | No | Race day, YYYY-MM-DD. The plan ends on that week. Use this when the user has a goal race. | |
| start_monday | No | First Monday of the plan, YYYY-MM-DD. Use this when there is no race date, or to start earlier than race_date would. |