Record a completed session
complete_activityRecord what the athlete did against a planned activity. Creates a completed activity paired with the plan and leaves the plan as it was, so planned and done can be compared. Use this whenever the athlete reports a session they did against a plan, even when it differs from the plan: "I did 3x8 at 62.5", "log today's session, bench 3x8 at 60", "I did the workout but only 2 sets of squats". Never update_activity for that: it overwrites the plan. A session named without a day ("the workout", "my session") is the one planned for today, not a later one that fits the words better. Send what was done: exercises with every set as performed (weightKg in KILOGRAMS), or for a run or ride its duration in SECONDS and distance in METERS. Anything left out is taken from the plan, as done as planned (a plan dated after today is recorded today); when part of the session changed, send the whole session with the change. exercises items: {type 'exercise', exercise, sets: one entry per set with reps and weightKg, or durationSec alone for a yoga move} and {type 'cardio', sport ('run', 'bike', 'skierg' or 'row'), distanceM or durationSec}. Refused when the planned activity is already paired or is not a plan. To change what is planned, use update_activity.
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": {
"plannedActivityId": "<plannedActivityId>"
},
"name": "complete_activity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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. | |
| title | No | ||
| 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. | |
| exercises | No | What was done, every set as the athlete did it, in the same item shape as a plan's exercises. Omit when it went as planned: the plan's exercises are recorded. When only part changed (one exercise had fewer sets), send the whole session with that change. | |
| 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. | |
| description | No | ||
| elevationGain | No | Total elevation gain in METERS. | |
| plannedActivityId | Yes | The planned activity the session was done against: today's plan when the athlete names no day. It is kept as it was, and paired with the new completed activity. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Present when a watch had already recorded this session: `activity` is then that recording, now carrying the session's title, plan and sets, and the session counts once. | |
| activity | Yes | The new completed activity, paired with the plan. | |
| plannedActivityId | Yes | The plan, unchanged but for its pairing. |