Assign a group training plan
assign_group_planAssign a saved Group Plan Template to a group, once the coach has confirmed the template, start date and member assignments. Side effects: creates a group plan, schedules its workouts on the calendar of every assigned member (by default every current member) and queues a Garmin workout sync for members with Garmin connected; members get no push notification. Needs a coach role and the group-training-plan feature. The result gives one enrollment outcome per member (accepted, refused with reason_code, unknown or not_attempted) and a create_command_id. Repeating the call with the same arguments or that create_command_id resumes the same group plan instead of creating a second one, so a retry after a timeout is safe.
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": {
"group_id": "<group_id>",
"training_plan_id": "<training_plan_id>",
"start_date": "<start_date>"
},
"name": "assign_group_plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| group_id | Yes | A group id from get_team_overview or find_athlete results. | |
| plan_name | No | Name for the group plan; defaults to the template's. | |
| start_date | Yes | A calendar date, YYYY-MM-DD. | |
| sub_groups | No | Pace sub-groups; omit to use the template's own. | |
| assignments | No | Member user_id -> sub-group name; required when there is more than one sub-group. | |
| training_plan_id | Yes | A Group Plan Template id: the training_plan_id from save_training_plan(group_id, save_mode='template_only'). | |
| create_command_id | No | create_command_id from an earlier call, to resume that assignment. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| error | No | ||
| status | No | ||
| created | No | ||
| message | No | ||
| privacy | No | Present when the athlete's settings withhold data. | |
| group_id | No | ||
| warnings | No | ||
| workouts | No | ||
| next_step | No | What can be done next, for example after a failure. | |
| athlete_id | No | ||
| next_steps | No | ||
| start_date | No | ||
| sub_groups | No | ||
| next_cursor | No | Reads the next page; null on the last page. | |
| reason_code | No | ||
| total_weeks | No | ||
| member_count | No | ||
| user_content | No | Fields in this result that people wrote. | |
| workout_count | No | ||
| start_date_iso | No | The epoch field beside it as a UTC instant; the local day can differ. | |
| weeks_returned | No | ||
| member_user_ids | No | ||
| training_plan_id | No | ||
| truncated_fields | No | Lists cut to fit one response: rows returned and total. | |
| create_command_id | No | ||
| duration_in_weeks | No | ||
| generated_content | No | Fields in this result that NexRex's AI wrote. | |
| member_scheduling | No | ||
| enrollment_results | 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. | |
| group_plan_instance_id | No |