assign_workout_to_groups
Give the same workout plan to every client in one or more groups (confirm-gated: without confirm it previews who would get it, writing nothing). Each client gets their own copy, so it can be edited per person afterwards. Members who already have a plan with this title over overlapping dates are skipped. Same exercises format as create_workout_plan (call get_training_split first and use search_exercises ids). Undo with undo_group_assignment.
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": {
"title": "<title>",
"startDate": "<startDate>",
"exercises": "<exercises>",
"groupIds": "<groupIds>"
},
"name": "assign_workout_to_groups"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | ||
| title | Yes | ||
| confirm | No | Must be true to actually execute. If false/omitted, returns a preview only. | |
| endDate | No | ||
| groupIds | Yes | Group ids from list_client_groups | |
| exercises | Yes | ||
| startDate | Yes | YYYY-MM-DD | |
| description | No | ||
| allowDuplicates | No | Also give it to a member who already has the same thing over the same dates (default: skip them) | |
| excludeClientIds | No | Members to leave out this time (client User _ids) |