Weekly workouts
get_week_workoutsGet the planned workouts of one calendar week (Monday to Sunday) from an athlete's active plan, with completion status, to check plan compliance or answer what is on the schedule. Use get_activities for what the athlete actually recorded over a longer window. When the athlete has several active plans and none is named, the result has status needs_plan_choice with active_plans.
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": {
"athlete_id": "<athlete_id>"
},
"name": "get_week_workouts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| athlete_id | Yes | The athlete's user id: get_current_user's athlete_id for the connected account, or an id from get_coach_athletes or find_athlete. | |
| week_offset | No | 0 = this week, 1 = next week, -1 = last week. | |
| week_start_date | No | Any date in the wanted week, YYYY-MM-DD or ISO 8601; it replaces week_offset. Weeks start on Monday in the athlete's timezone. | |
| plan_instance_id | No | The plan to read when the athlete has several active plans (active_plans in a needs_plan_choice result). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | ||
| error | No | ||
| reason | No | ||
| status | No | ||
| message | No | ||
| privacy | No | Present when the athlete's settings withhold data. | |
| warnings | No | ||
| workouts | No | ||
| next_step | No | What can be done next, for example after a failure. | |
| plan_name | No | ||
| athlete_id | No | ||
| resolution | No | ||
| next_cursor | No | Reads the next page; null on the last page. | |
| reason_code | No | ||
| total_weeks | No | ||
| week_number | No | ||
| week_offset | No | ||
| active_plans | No | ||
| user_content | No | Fields in this result that people wrote. | |
| week_end_date | No | ||
| total_workouts | No | ||
| weeks_returned | No | ||
| week_start_date | No | ||
| plan_instance_id | No | ||
| truncated_fields | No | Lists cut to fit one response: rows returned and total. | |
| calendar_week_end | No | ||
| generated_content | No | Fields in this result that NexRex's AI wrote. | |
| calendar_week_start | No | ||
| session_definitions | No | Sessions that several rows of this result share by session_ref. | |
| content_block_fields | No | Column names of every content_blocks row, nested blocks rows included. |