Set a rest day
set_rest_dayMakes one or more days rest days, e.g. for illness, poor sleep or a symptom flare. A rest day replaces the program day and any coach session written for it. Returns the stored rest event and the locked days.
Locked days: days that have already started or finished stay as they are and come back in
locked(a locked part 2 or 3 of a split day also haspartandpartLabel).set_today_session refuses a date that is a rest day until the rest event is cancelled.
Undo: cancel the returned event with upsert_events (same id, kind, title and dates, status "cancelled"). The app has no event list, so the athlete can't cancel it in the app.
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": {
"date": "<date>",
"reason": "<reason>"
},
"name": "set_rest_day"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | Last rest day, YYYY-MM-DD, inclusive. Defaults to `date`; at most 14 days in all. | |
| date | Yes | First rest day, YYYY-MM-DD: today or later in the athlete's time zone. | |
| reason | Yes | Shown to the athlete on the phone's Today screen under "Rest day", e.g. "Woke up with a fever; rest and check in tomorrow". |