Recent activities
get_activitiesGet an athlete's activities from the last days, newest first: completed activities with their measurements (distance, duration, pace, heart rate, effort) and scheduled or skipped plan workouts. Use it for what the athlete did; get_week_workouts gives one calendar week of the plan for compliance. Filters by type, subtype and status. Returns up to limit rows, fewer when the page reaches the response size bound; next_cursor reads the next page with the same filters. Route maps and media are omitted, and a coach sees only what the athlete shares. Strength rows carry session_kg_loads in kilograms.
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": {
"athlete_id": "<athlete_id>"
},
"name": "get_activities"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Trailing days to read, 1-365. | |
| limit | No | Activities per page, 1-100. | |
| cursor | No | next_cursor from the previous page of this tool called with the same arguments; omit for the first page. | |
| statuses | No | Keep only these statuses; omit for all. | |
| athlete_id | Yes | The athlete's user id: get_current_user's athlete_id for the connected account, or an id from get_coach_athletes or find_athlete. | |
| activity_type | No | Activity type, for example run, bike, swim, walk, hike or strength; omit for every type. | |
| activity_sub_types | No | Exact stored subtypes, for example easy_run, tempo_run, long_run or interval_run (planned workouts may store easy-run, tempo-run). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| status | No | ||
| filters | No | ||
| message | No | ||
| privacy | No | Present when the athlete's settings withhold data. | |
| warnings | No | ||
| next_step | No | What can be done next, for example after a failure. | |
| activities | No | ||
| athlete_id | No | ||
| pagination | No | ||
| next_cursor | No | Reads the next page; null on the last page. | |
| reason_code | No | ||
| total_weeks | No | ||
| user_content | No | Fields in this result that people wrote. | |
| weeks_returned | No | ||
| truncated_fields | No | Lists cut to fit one response: rows returned and total. | |
| generated_content | No | Fields in this result that NexRex's AI wrote. | |
| session_definitions | No | Sessions that several rows of this result share by session_ref. | |
| content_block_fields | No | Column names of every content_blocks row, nested blocks rows included. |