get_plan
Fetch a training plan by ID to review its schedule, status, metadata, and session progress, plus whether it is ready to wrap up.
Instructions
Get a training plan by ID, including its metadata.
Args: plan_id: UUID of the plan.
Returns: Plan object with name, activity_type, status, dates, description, metadata, plus two computed fields: - progress: session counts (total/completed/skipped/remaining) — queued Apple Watch runs, plus scheduled strength sessions for plans with a recurring schedule. A strength session counts as completed when a synced Hevy workout landed on its date, skipped when the date passed with no match, remaining otherwise. (The runs_* field names predate strength support; they count sessions of either kind.) - finishable: true when an active plan looks done (window passed, or every session retired with ≥1 completed and no end date still ahead — a plan queued a week at a time is not done each time its queue runs empty). Nothing auto-completes; if true, offer the athlete a wrap-up (complete_plan on the dashboard or update_plan status="completed").
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": "get_plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan_id | Yes |