Update activity
update_activityUpdate fields on an existing activity. Provide the id and any subset of fields to change. If you change duration or intensity on a planned workout, recompute load with (duration_seconds / 3600) × effort² × 100 and then call get_training_status to see the new projection. SWIM STEPS: the watch reads swimDrill, swimEquipment and swimStroke, never displayName. Set swimDrill on every drill ('drill'), kick ('kick') and pull ('pull') step, which keeps its normal stepType (usually 'interval'; 'drill' is never a stepType), swimEquipment to the one piece of kit that step uses, and swimStroke on every step whose stroke is named. When the athlete names their pool ("50m pool", "25 yard pool"), set poolLength. STRENGTH: write lifting, circuits and Hyrox as exercises, never as steps: items {type 'exercise', exercise, sets: one entry per set with reps and weightKg in kg, so 3x8 is three entries} and {type 'cardio', sport ('run', 'bike', 'skierg' or 'row'), distanceM or durationSec} for the runs and ergs between stations. Set sportType 'strength'. YOGA, pilates and mobility routines with named moves are exercises too, with sportType 'yoga': one exercise item per move, its sets time only (durationSec: cat-cow 2 min is one set of 120, 2x30s is two sets of 30, 1 min each side is two sets of 60), a move done on each side one set per side with 'each side' in notes, no reps or weight. Only exercises or moves the athlete named, never invented ones: "Strength 45 min" or "30 min yoga" is the duration with no exercises. Keep duration when there are exercises. An activity has exercises or steps, never both. On a planned activity exercises is the plan; on a completed one, what was done. When the athlete tells you what they did in a planned session ("I did 3x8 at 62.5", "log today's session"), call complete_activity with its plannedActivityId instead: updating the planned activity overwrites the plan.
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": {
"id": "<id>"
},
"name": "update_activity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| date | No | Calendar day as YYYY-MM-DD. A date, never a timestamp: no time, no 'Z', no UTC offset. Time of day goes in startTime. | |
| load | No | Training load (TSS). Set this on every planned workout — without it the session does not appear on the load chart or in get_training_status's projection. Estimate as (duration_seconds / 3600) × effort² × 100, where effort is 0.25 recovery, 0.5 easy, 0.75 tempo, 1.0 threshold, 1.25 VO2, 1.5 race. A 60-minute easy run is ~25; a 4-hour moderate ride (~0.65) is ~169. Omit only on completed activities that a device will score, or strength with no endurance load. | |
| power | No | Average power in watts. | |
| speed | No | Average speed in meters per second. | |
| steps | No | ||
| title | No | ||
| target | No | What the workout is built around: "distance" when only a distance is given, "time" when only a duration, "pace" when both, "steps" for structured intervals. Set the matching distance/duration fields too — target alone carries no values. | |
| distance | No | Total distance in METERS (8 km = 8000). Never kilometers or miles — convert first. | |
| duration | No | Total duration in SECONDS (45 min = 2700, 4 hours = 14400). Never minutes. | |
| completed | No | ||
| exercises | No | ||
| heartRate | No | Average heart rate in beats per minute. | |
| sportType | No | ||
| startTime | No | Local wall-clock start time as HH:mm on a 24-hour clock (07:00 = 7am, 17:30 = 5:30pm), in the athlete's own time. ONLY set this when the athlete actually states a time. If they do not mention one, omit the field entirely: never infer, default, or guess a time, because an invented value turns an all-day plan into a timed event in their calendar. Never attach a timezone or offset: 07:00 means 7am where they are, and a UTC instant cannot express that. | |
| orderOnDay | No | ||
| poolLength | No | Set this whenever the athlete names the pool size of a swim: "in a 25 yard pool" or short course yards = "25yd", "50m pool" or long course = "50m", "25m pool" or short course meters = "25m", "33m pool" = "33m", "20m pool" = "20m", "any" = no pool size. It is sent to their Garmin watch, which counts lengths with it. Omit only when no pool is mentioned: their saved pool from settings is used instead. | |
| description | No | ||
| elevationGain | No | Total elevation gain in METERS. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Present when the write may not be what was meant, saying what to call instead. Read it before answering. | |
| activity | Yes | Recorded fields (calories, elapsedTime, maxima, cadence, running dynamics, extras...) are left out when the source reported none: never estimated, never zero. |