Get activity
get_activityFetch a single Shape activity by id. If this is a completed workout with plannedActivityId set, that id is the plan — fetch it for the planned description and steps; they are not copied onto the completed row. The recorded route is left out unless you ask for it, and get_activity_details is the better way to get it: it serves GPS as lat/lng channels at a resolution you pick, where map is an opaque encoded polyline only a map renderer can use.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| includeMap | No | Include `map`, the activity's route as an encoded polyline (Google's algorithm, up to 500 points). Off by default: it is unreadable without decoding and can outweigh every other field in the response. Turn it on only to draw the route on a map. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| activity | Yes | Recorded fields (calories, elapsedTime, maxima, cadence, running dynamics, extras...) are left out when the source reported none: never estimated, never zero. |