Calendar
get_calendarThe user's local date, weekday and time, the training sessions in a window of days, and the races ahead with days to go. With no input: today and the next six days, plus the next 5 races. Pass start_date and end_date (or start_date and days) for any other window, races: 0 for the sessions alone. Each session carries its session_id, the handle the session tools take; each race carries race_slug when the site lists it and race_id either way. athlete.home_city is where the user lives, for travel and how far away a race is; update_profile sets it. All dates are the user's local calendar dates (YYYY-MM-DD) in their own time zone. Requires signing in.
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_calendar"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Days from start_date, 1 to 400. Default 7. Ignored when end_date is given. | |
| races | No | Races to list, soonest first. Default 5, 0 for none, 25 at most. | |
| end_date | No | Last day, YYYY-MM-DD (inclusive). Leave out to use days. | |
| start_date | No | First day, YYYY-MM-DD. Defaults to today in the user's zone. |