get_activities
Retrieve a list of athlete activities from Intervals.icu for a specified date range, with optional filtering by limit and unnamed activities. Use this to fetch training history for analysis or display.
Instructions
Get a list of activities for an athlete from Intervals.icu
Args: athlete_id: The Intervals.icu athlete ID (optional, will use ATHLETE_ID from .env if not provided) api_key: The Intervals.icu API key (optional, will use API_KEY from .env if not provided) start_date: Start date in YYYY-MM-DD format (optional, defaults to 30 days ago) end_date: End date in YYYY-MM-DD format (optional, defaults to today) limit: Maximum number of activities to return (optional, defaults to 10) include_unnamed: Whether to include unnamed activities (optional, defaults to False)
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_activities"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| api_key | No | ||
| end_date | No | ||
| athlete_id | No | ||
| start_date | No | ||
| include_unnamed | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |