get_activities
Retrieve a list of athlete activities from Intervals.icu using optional filters like date range, limit, and unnamed activity inclusion. Supports athlete ID and API key input.
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)
Input Schema
Name | Required | Description | Default |
---|---|---|---|
api_key | No | ||
athlete_id | No | ||
end_date | No | ||
include_unnamed | No | ||
limit | No | ||
start_date | No |
Input Schema (JSON Schema)
{
"properties": {
"api_key": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Api Key"
},
"athlete_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Athlete Id"
},
"end_date": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "End Date"
},
"include_unnamed": {
"default": false,
"title": "Include Unnamed",
"type": "boolean"
},
"limit": {
"default": 10,
"title": "Limit",
"type": "integer"
},
"start_date": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Start Date"
}
},
"title": "get_activitiesArguments",
"type": "object"
}