create_plan
Build a dated training plan with activity type, goals, guardrails, and phases, then return its plan_id so queued workouts link to one schedule.
Instructions
Create a new training plan.
Call this before batch_create_workouts to get a plan_id that links all queued workouts together.
Args: name: Plan name (e.g. "Slow Burn 8-Week Return"). activity_type: Primary activity (e.g. "running", "cycling"). start_date: Plan start date (YYYY-MM-DD). end_date: Plan end date (YYYY-MM-DD), or null if open-ended. description: High-level what and why. metadata: Flexible JSON object for goals, guardrails, phases, athlete context, etc. No required keys. Example: { "goals": [{"type": "weekly_volume", "target": 32, "unit": "km", "by_week": 8}], "guardrails": ["Miss a run: don't make it up"], "phases": [{"name": "Base", "weeks": [1, 2], "volume_target_km": 18}], "athlete_context": {"fitness_level": "Detrained"} } status: Defaults to "active" — the block being run right now. Pass "upcoming" for a plan built ahead of its start date: it stays out of "which plan am I on" answers, while its sessions still appear in the calendar and schedule checks so the new block can be validated before it starts. Only one plan per activity should be active at a time; if one is already running, the next block is "upcoming" until the athlete starts it.
Returns: The created plan with its id.
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": {
"name": "<name>",
"activity_type": "<activity_type>",
"start_date": "<start_date>"
},
"name": "create_plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| status | No | ||
| end_date | No | ||
| metadata | No | ||
| start_date | Yes | ||
| description | No | ||
| activity_type | Yes |