update_setback
Close, reopen, or correct a recorded setback to keep an athlete's illness or injury timeline accurate; only the fields you pass change.
Instructions
Change a setback: close it, reopen it, or correct what was recorded. Only what you pass changes.
CLOSING. Set end_date when the athlete says they are recovered. Their
word decides it, not the numbers: if the metrics look normal but they
still feel off, it stays open, and if they say they are fine while resting
heart rate is still raised, close it and say what you see. After closing,
the plan still needs a gradual build back (coaching playbook, return to
running).
Args: setback_id: The setback's id, from get_plan_context or get_setbacks. end_date: Last day affected, YYYY-MM-DD. Closes the setback. reopen: True to clear the end date, when it came back. severity: "mild", "moderate" or "severe". start_date: Corrected first day, YYYY-MM-DD. kind: "illness" or "injury". body_part: Injuries only. note: Replaces the note. Include what was there if it still holds.
Returns: The setback after the change.
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": {
"setback_id": "<setback_id>"
},
"name": "update_setback"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | ||
| note | No | ||
| reopen | No | ||
| end_date | No | ||
| severity | No | ||
| body_part | No | ||
| setback_id | Yes | ||
| start_date | No |