create_event
Create an event the athlete is preparing for (race, key ride, FTP test) on their Blocks calendar. Use when the athlete describes one in chat. Requires name + date (YYYY-MM-DD). A stage race or a race weekend is ONE event: date = its first day, endDate = its last — never one event per day. Optional: description, location, map/event-page URLs, logistics notes, prep (coach) notes, priority, target, whether they have a confirmed slot and local start time (picks the forecast hours). The GPX route is added by the athlete in the app. Event-day weather is fetched automatically when within ~16 days. Returns the new event id (pass it to set_event_notes to add detailed prep).
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": {
"name": "<name>",
"date": "<date>"
},
"name": "create_event"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | ||
| name | Yes | event name, e.g. 'Gravel Fondo 120' | |
| notes | No | athlete logistics (parking, number pickup…) | |
| sport | No | what the event is: the plan builds toward it and the Course tab reads only a bike event in watts; unset = guessed from the name | |
| mapUrl | No | ||
| result | No | what came of it, their words, e.g. '3rd AG, 83:40' | |
| target | No | their aim, e.g. 'sub-40' | |
| endDate | No | the LAST day of a multi-day event (stage race, race weekend), inclusive; omit for a one-day event | |
| purpose | No | why they race it: result (a win, a finish, a time — say which in target), training (it replaces a session, no taper), fun (purely for the joy); '' clears. Ask them once if unknown | |
| eventUrl | No | official race / registration page | |
| priority | No | A = season goal, B/C = on the way, '' clears | |
| startTime | No | local start time HH:MM | |
| coachNotes | No | prep notes (fueling, pacing, taper) | |
| registered | No | true when the athlete says they have a confirmed slot — not a lottery entry or a waitlist; omit when they have not said | |
| description | No | ||
| locationText | No | town / venue — also used to fetch weather |