getActivitySets
Reads the strength training sets of one recorded activity, returning reps, weight, rest, muscles, and planned versus completed sets for per-exercise trends.
Instructions
Strength training sets of an activity, read from the original .FIT file. One entry per exercise, in the order first done, with its movement category, its primary and secondary muscles (from Garmin's exercise catalogue) and its active sets: reps, weight (kg, absent when none was recorded), set time in seconds and the rest after the set (restSec). Each exercise with weight also has top (the heaviest set of 1 to 12 reps, then the most reps; without one, the heaviest set) and e1rmKg (the best estimated 1RM, Epley, of its sets of 1 to 12 reps; null when it has none). Exercise names are stable across sessions, so they can be used for per-exercise trends. Edits made later in Garmin Connect (renamed exercises, corrected reps or weights) are not in the .FIT file. Use it for strength sessions; for runs, rides and swims use getActivityLaps. plan is the planned workout that the watch ran (null without one): its name and, per planned exercise and rep plan (a pyramid gives a row per rep plan) in plan order, plannedSets, plannedReps (low to high; high null is at least low), doneSets, reps, and verdict (hit or miss, why: sets or reps; extra and over count the done sets above the plan and above the high end); a warm-up or cool-down row (part) and a notInPlan row have verdict null. In a rest-pause group (a repeat of one exercise with a rest of 20 s or less inside it and a longer rest after it), only the first set of each pass is judged on reps. Such a row has restPause true. Each planned row also has plannedRestSec: the planned rests right after its sets, in seconds and plan order (null: an open rest, ended with the lap button; empty: no rest right after it, such as the first exercise of a superset).
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": {
"activityId": "<activityId>"
},
"name": "getActivitySets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| activityId | Yes | Garmin activity id |