get_activities_around
Retrieve activities before and after a reference activity to understand training progression and find related workouts.
Instructions
Get activities before and after a specific activity for context.
Retrieves activities chronologically surrounding a reference activity. Useful for understanding training context, progression, or finding related workouts.
Args: activity_id: The ID of the reference activity count: Number of activities to retrieve before and after (default 5)
Returns: JSON string with activities around the reference 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": {
"activity_id": "<activity_id>"
},
"name": "get_activities_around"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Number of activities before and after | |
| activity_id | Yes | Reference activity ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |