Change a program day for every week
set_program_dayChanges one day of the athlete's program for EVERY future week (for one date only, use set_today_session). dayId must be an existing day (see schedule in get_athlete_context) unless you pass create: true to add a new day. weekdays is optional: omitted, an existing day keeps its weekdays and a new day starts unscheduled; given, it is the day's full placement and weekdays it leaves become rest. Blocks use exercise ids from list_exercises; an exercise with a ladder leaves its prescription out. A day is at most 90 minutes. If the athlete is on a preset (Strong Back, Strong Knees), this first saves their own custom copy (default name " (custom)", or programName) and moves them onto it; their schedule and history stay. A rejected call changes nothing. Returns the program and a preview of the next date that plays the day. A coach session already written for a date still wins on that date. To make a day repeat as a split, send parts (2–3 labels, e.g. Morning, Afternoon) and a part (1-based) on every block, in part order; the whole day stays within 90 minutes and each exercise once. Omitting parts while blocks carry part is refused (send parts to keep a split, or drop part from every block to merge it). On the empty "Build with your coach" program the other program tools are refused until a day is scheduled with this tool (create: true and weekdays). For a superset or circuit, put its exercises in their own block with rounds: true: the app plays set 1 of each in order, then set 2 of each. Rest after a set is that item's restSeconds, so give every item but the last 0 (or a short walk-over) and the last the rest between rounds. Set counts may differ; an item with fewer sets drops out of the later rounds. In a round where the last item has dropped out, the rest after the round is the rest of the last item still playing. A rounds block needs 2 or more exercises; with one it is played as straight sets.
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": {
"dayId": "<dayId>",
"name": "<name>",
"blocks": "<blocks>"
},
"name": "set_program_day"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| dayId | Yes | ||
| parts | No | ||
| blocks | Yes | ||
| create | No | ||
| weekdays | No | ||
| programName | No |