calculate_workout_program
Recalculate edited workout programs to update metrics like duration, distance, and training load, returning a program ready for scheduling updates.
Instructions
Recalculate a workout program after editing its exercises.
This calls Coros /training/program/calculate and returns the calculated metrics plus a copy of the supplied program with derived fields such as duration, estimated distance, training load, and exerciseBarChart applied. Feed the returned program into update_scheduled_workout when its exercises changed.
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": {
"program": "<program>"
},
"name": "calculate_workout_program"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| program | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||