Update exercise prescription
update_exercise_setsAdapt the prescription of one exercise in a workout: set count, uniform targets (reps/weight/duration applied to every set), notes, or position. Only the provided fields change. Reducing set count removes trailing sets and their targets; uniform targets overwrite per-set values. For strength exercises, send reps and optionally weight_kg; omit duration_seconds. For cardio or stretching, send duration_seconds; omit reps and weight_kg. An open SimpleMuscle workspace refreshes automatically; do not open additional overview cards. Without an open workspace, call show_workout_overview once after all writes finish.
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": {
"workout_id": "<workout_id>"
},
"name": "update_exercise_sets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reps | No | Optional strength target. Set reps on every set; omit for cardio/stretching. | |
| sets | No | Optional. Resize the exercise prescription to this many sets. | |
| notes | No | Coaching note shown in the app; null clears | |
| plan_id | No | Plan entry id from get_workout; required when the exercise appears more than once | |
| position | No | Move the exercise to this 0-based position | |
| weight_kg | No | Optional strength target. Set weight in kilograms on every set; omit when unused. | |
| workout_id | Yes | Workout id from list_workouts | |
| exercise_id | No | Exercise id to target; must appear exactly once in the workout | |
| duration_seconds | No | Optional cardio/stretching target. Set duration in seconds on every set; omit for strength exercises. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| totals | Yes | ||
| archived | No | ||
| workouts | Yes | ||
| exercises | Yes | ||
| created_at | Yes | ||
| updated_at | Yes | ||
| workout_id | Yes | ||
| generated_at | Yes | ||
| scheduled_day | No | ||
| weight_unit_preference | Yes |