set_activity_exercise_sets
Replace all exercise sets on a strength or rep-counting activity with Garmin-compatible per-set data, or keep watch-recorded timing while correcting exercises, reps, and weights.
Instructions
Replace the exercise sets on a strength (or other rep-counting) activity.
Writes Garmin's structured per-set data, the same grid the Garmin Connect
"Edit sets" screen saves, so the sets feed Garmin's exercise history,
volume and muscle-map charts. This OVERWRITES every existing set,
including watch-detected sets and their recorded timing; to keep some,
read them with get_activity_exercise_sets and include them in the list.
When the watch already recorded the right sets but misidentified the
exercises, pass keep_timing=True: the existing sets keep their start
times, durations and rest periods, and only the exercise, reps and
weight are replaced, in order. The number of sets must match the
activity's recorded active sets, and duration_seconds/rest_seconds are
ignored.
Exercises must use Garmin's own keys. category is an exercise category
(e.g. DEADLIFT, BENCH_PRESS, PULL_UP, SQUAT) and exercise_name an
exercise within it (e.g. BARBELL_DEADLIFT, ROMANIAN_DEADLIFT). Garmin
rejects anything else with "Invalid Category" or "Invalid Sub-Category",
and rejects the whole request, so a typo leaves the activity unchanged.
Valid keys, grouped by category, are in
https://connect.garmin.com/web-data/exercises/Exercises.json
Args:
activity_id: ID of the activity to update
sets: Active sets in the order performed. Each is a dict with:
category (required): Garmin exercise category key
exercise_name: Garmin exercise key within the category; omit to
record just the category
reps: Repetition count; omit for timed exercises
weight_kg or weight_lb: Load lifted; omit for bodyweight
duration_seconds: Time under work for the set
rest_seconds: Rest after this set, recorded as a REST set
keep_timing: Keep the recorded set timing and rest periods,
replacing only exercise, reps and weight (default False)
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": {
"activity_id": "<activity_id>",
"sets": "<sets>"
},
"name": "set_activity_exercise_sets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sets | Yes | ||
| activity_id | Yes | ||
| keep_timing | No |