Get activity details
get_activity_detailsFetch the recorded time-series for one completed activity: heart rate, pace/speed, cadence, power, elevation, GPS and timestamps, running dynamics and pedal balance when the device recorded them, plus lap splits, time in each training zone (Shape's model, and the device's own zones when it recorded them) and a pool swim's lengths. Use this for questions the summary can't answer — how the effort was paced, where the athlete faded, how hard each interval was. Channels are parallel arrays indexed against time (seconds since the activity start), units names the unit of each, and resolutionSeconds is the spacing between points — raise points (up to 2000) if it's too coarse. laps and zones are computed from the full recording before any reduction, so they stay exact whatever resolution you ask for. Only activities recorded by a connected device have this. When there is none, the 404 carries a reason code (not_completed, manual_entry, source_unsupported, imported_before_streams, no_samples_recorded) and a message written to be relayed to the user as-is — use it rather than guessing why the data is absent. Prefer the laps and zones summaries over reading the raw arrays when they answer the question. When a workout was imported from two connected sources, the richest recording is served and detailFrom names it — so source here may differ from the activity's own source. A strength workout's sets are not here: they are the activity's exercises, on get_activity and list_activities.
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": "get_activity_details"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| points | No | ||
| channels | No | ||
| includeLaps | No | ||
| includeZones | No | ||
| includeLengths | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | A link for the athlete to open, not for you to fetch: this activity's page in Shape, where they see the charts and map themselves, signed in. You already have the data here; add the link after your answer when they'd want to look at it themselves. | |
| date | No | ||
| laps | No | ||
| title | No | ||
| units | No | ||
| zones | No | Time in zone on Shape's own model: HR zones at 60/70/80/90% of the profile's max HR, or Coggan power zones from FTP on a ride. The same model for every source. | |
| points | Yes | ||
| source | No | ||
| lengths | No | A pool swim's lengths in order: startTime and duration (seconds), strokes, stroke (freestyle, backstroke...), swolf (seconds + strokes). Entries with rest: true are rests at the wall. | |
| channels | Yes | ||
| sportType | No | ||
| activityId | Yes | ||
| detailFrom | No | ||
| deviceZones | No | The HR and power zones set on the athlete's watch or head unit, with time in each, as its recording file reported them (Garmin and Wahoo; Apple Watch sends none). These are the zones the athlete configured and sees on their device, so quote these when they ask about their zones; zones above is Shape's model, the one to compare across workouts and sources. origin is "device"; model and thresholdHeartRate say how the device sets them. reference is the device's max HR or FTP when it reported one (Garmin), else the top zone bound (Wahoo), so don't read it as the athlete's max. Garmin's zone 0 ("Below zone 1") is time under the athlete's zone 1, and an "Above" bucket past the top bound can appear. | |
| powerSource | No | Where the power channel came from, when the recording file says for certain: "stryd" (a Stryd pod, through its Connect IQ data field or paired as the watch's power sensor) or "garmin_running_power" (Garmin's Running Power Connect IQ app). Absent otherwise, a watch's own power or a bike's power meter included. One power reading per workout: this labels it, it is not a second one. | |
| resolutionSeconds | No | ||
| recordedSampleCount | No |