get_workout_context
Retrieves a recorded workout's linked queued session, training plan, and missed-workout feedback so you can compare what was planned with what actually happened.
Instructions
Get the server-held plan linkage for a recorded workout: the queued session it fulfilled, the training plan behind that session, and any missed-workout feedback filed against it.
Args: workout_id: UUID of the workout (same id as get_recent_runs / get_workout_detail return).
Returns: Object with workout_id, plan_workout_id, plan_link_manual, and three nullable keys: - queue_item: title, description, activity_type, live status (e.g. "completed", "skipped"), scheduled_date, plan_id, the workout_data composition that was planned, completed_at. - plan: id, name, activity_type, status, start_date, end_date. - feedback: reason, reason_note, action (move/adjust/skip), new_date, scheduled_date, dismissed, created_at. Survives queue-item deletion.
All three null (with plan_workout_id null) means an unplanned run —
that's normal, not an error.
plan_link_manual true means the athlete linked this workout to the
session by hand afterwards (or unlinked it). They are saying it counts
for that session, not that they followed it: it may be from another
day, another activity, or a different kind of run than prescribed.
The session is completed either way; read the workout itself for what
was actually done.Useful when reviewing a completed workout: compare what was planned (queue_item.workout_data) against what happened, and see what the athlete said about the session.
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": {
"workout_id": "<workout_id>"
},
"name": "get_workout_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workout_id | Yes |