Goal Race
v1.1.0Find trail, obstacle and HYROX-style races with no account.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_calendar Calendar
The 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 (YYY…
| Parameter | Type | Description |
|---|---|---|
days | number | Days from start_date, 1 to 400. Default 7. Ignored when end_date is given. |
end_date | string | Last day, YYYY-MM-DD (inclusive). Leave out to use days. |
races | number | Races to list, soonest first. Default 5, 0 for none, 25 at most. |
start_date | string | First day, YYYY-MM-DD. Defaults to today in the user's zone. |
get_training_log Training log
What the user planned and what they actually did over a range: sessions, minutes, distance and vertical gain, planned and completed, the same split per session type, and the sessions themselves. Defaults to the current week (Monday to Sunday) in the user's zone; week_of picks another week, start_date / end_date or days any other range. Distances and vertical gain are in metres (10 km = 10000). Completed totals use what was actually logged and fall back to the plan. A session with no distance adds 0: when sessions_without_distance is there, the distance totals are a floor, not the whole truth.…
| Parameter | Type | Description |
|---|---|---|
days | number | Days from start_date, when end_date is easier left out. |
end_date | string | Last day of the range, YYYY-MM-DD (inclusive). |
include_sessions | boolean | False returns the totals only. Default true. |
start_date | string | First day of the range, YYYY-MM-DD. |
tag | string | Only sessions with this tag, e.g. 'hills'. Optional. |
week_of | string | Any date (YYYY-MM-DD) inside the week you want. |
get_session Session details
One training session in full by its session_id: the plan (type, title, time, duration, distance, vertical gain, notes, tags) and, under actual, what was really done, how it felt and the rpe. Requires signing in.
| Parameter | Type | Description |
|---|---|---|
session_id * | string | id of the training session, from get_calendar, get_training_log or add_sessions. |
add_sessions Add training sessions
Put one or more training sessions on the user's calendar in a single call: a list of up to 30, each with at least a date. dry_run: true returns what would be written, with the weekday of each day and the sessions already there, and writes nothing. Pick the closest type from the list and put the workout itself in notes. A whole training block is add_training_plan, not this. Where the user has Google Calendar connected, each session is written there too. All dates are the user's local calendar dates (YYYY-MM-DD) in their own time zone. Requires signing in.
| Parameter | Type | Description |
|---|---|---|
sessions * | array | The sessions to add, in any order. |
dry_run | boolean | True shows what would be written and writes nothing. |
update_session Change a session
Change the plan for one session, including the day it is on: pass date to reschedule it ('move Sunday's run to Saturday'), time, title, type, duration_min, distance_m, elevation_m, notes or tags. Only the fields you send change. Recording a finished workout is log_session, not this. Where the user has Google Calendar connected, the event changes or moves there too. All dates are the user's local calendar dates (YYYY-MM-DD) in their own time zone. Requires signing in.
| Parameter | Type | Description |
|---|---|---|
session_id * | string | id of the training session, from get_calendar, get_training_log or add_sessions. |
date | string | New local date, YYYY-MM-DD. This is how a session is rescheduled. |
distance_m | number | New planned distance in metres. |
duration_min | number | New planned duration in minutes. |
elevation_m | number | New planned vertical gain in metres. |
notes | string | New plan notes; replaces the old ones. |
tags | array | New tags; replaces the old ones, [] clears them. |
time | string | New start time HH:mm, or empty string to clear it. |
title | string | New title. |
type | string | New session type. |
log_session Log a session as done
Mark one session done and record how it went: the minutes, distance and vertical gain actually covered, feeling 1 to 5 (1 terrible, 2 hard, 3 ok, 4 good, 5 great), rpe 1 to 10 (how hard it was), tags and a note in the user's own words. The note is where what they learned from the session goes; a lesson to look up again later can also be a diary note linked to the session (add_note with session_id). Fill in only what the user said. done: false un-completes it. Requires signing in.
| Parameter | Type | Description |
|---|---|---|
session_id * | string | id of the training session, from get_calendar, get_training_log or add_sessions. |
actual_distance_m | number | Distance actually covered, in metres. |
actual_duration_min | number | Minutes it actually took. |
actual_elevation_m | number | Vertical gain actually climbed, in metres. |
done | boolean | Default true. False un-completes the session. |
feeling | number | 1 terrible, 2 hard, 3 ok, 4 good, 5 great. |
notes | string | How it went, in the user's words. |
rpe | number | Rate of perceived exertion, a whole number 1 to 10: 1 very easy, 3 easy, 5 hard, 7 very hard, 10 all-out. |
tags | array | Tags for the session; replaces the old ones. |
remove_sessions Delete sessions
Delete training sessions from the calendar for good: one or several by session_ids, or every planned session between start_date and end_date. One session is deleted at once. Several ids or a date range are a preview first: dry_run defaults to true and the result lists what would go; the same call with dry_run: false deletes them, 100 at most. A date range leaves completed sessions alone unless include_done is true. Where the user has Google Calendar connected, the events go too. Races on the user's list are not touched; remove_race does those. All dates are the user's local calendar dates (YYY…
| Parameter | Type | Description |
|---|---|---|
dry_run | boolean | True lists what would be deleted and deletes nothing. Default true for several ids or a date range, false for one id. |
end_date | string | Last day of the range, YYYY-MM-DD (inclusive). Leave out for start_date alone. |
include_done | boolean | With a date range: true also deletes completed sessions. Default false. |
session_ids | array | ids of the sessions to delete, from get_calendar, get_training_log or add_sessions. |
start_date | string | First day of a range to clear, YYYY-MM-DD. Instead of session_ids. |
search_races Search races
Find upcoming races of every kind in the Goal Race calendar: obstacle course races (Spartan, Tough Mudder, Strong Viking and more), gym and hybrid fitness races (HYROX, DEKA and more) and trail and ultra running races, each linked to its page on the site that covers it. Searchable by place, country, series, month, distance, climb or terrain, e.g. 'a 50k trail race in Spain in May', 'Hyrox in London', 'Spartan Beast near Munich this autumn'. All filters are optional and combine with AND; several values in one filter combine with OR. list_race_filters has the exact names a filter accepts. Months…
| Parameter | Type | Description |
|---|---|---|
climb | array | Vertical gain bands: flat (under 300 m), rolling (to 1,000 m), hilly (to 2,500 m), mountain (to 5,000 m), alpine (more). Only races that publish a climb match. |
country | array | Country names, e.g. 'Italy', 'USA', 'United Arab Emirates', or 'Europe' for the whole region. |
distance | array | Distance bands: 5k, 10k, half-marathon, marathon or ultra. |
from_month | string | First month, YYYY-MM. |
limit | number | Races to return, soonest or best match first (default 10, max 25). |
near | array | Airports (name or IATA code like 'AMS') or cities the race should be close to, within about 150 km. |
qualifies_for | array | Only trail races with a distance that qualifies for this race's lottery: 'western-states' (Western States 100, WSER) or 'hardrock' (Hardrock 100, finish within the race's own cutoff). Each race lists… |
query | string | Free text matched against race name, town and series, e.g. 'Morzine' or 'Beast'. Leave out for filter-only searches. |
series | array | Race series, e.g. 'Spartan', 'Tough Mudder', 'Strong Viking'. |
source | array | Kind of race: 'ocr' (obstacle course), 'gym' (HYROX-style hybrid fitness), 'trail' (trail and ultra running). Omit to search every kind. |
tags | array | Race types or terrain, e.g. championship, kids, team, mountain, trail, stadium, mud, forest, beach. |
to_month | string | Last month, YYYY-MM (inclusive). |
list_race_filters Race filter values
The exact race kinds (sources), countries, series, distance bands, climb bands, tags, nearby airports and cities, and months that search_races accepts, with how many upcoming races each has. Also answers 'which countries have races in March?' on its own. No input needed.
get_race Race details
Everything the race page says about one race, by race_slug or url from search_races: every date and wave with start times, each event's distance, vertical gain and obstacle count, venue, nearest airport and how to get there, course map and route numbers (distance, climb, high point, steepest km), course videos, past results and other editions. sections narrows it to the parts you need (summary, events, venue, course, results, editions); left out, the whole race comes back. Past editions answer too, with status 'past'. site_url is the race's page, register_url the organiser's.
| Parameter | Type | Description |
|---|---|---|
race_slug | string | brand/year/slug from search_races, e.g. 'spartan/2027/gubbio'. |
sections | array | Parts of the race to return: summary, events, venue, course, results, editions. Omit for all of them. |
source | string | Only when the same slug exists for two kinds of race. Usually omit. |
url | string | The race url from search_races, instead of race_slug. |
save_race Save races to the list
Put races from search_races on the user's Goal Race list, the same list the hearts on the site write to, with status 'wishlist'. Pass each race's url exactly as search_races returned it; up to 20 at once. A race already on the list (same name and day) comes back in already_on_list, not duplicated. A race search_races does not list goes in with add_custom_race. To change a race already on the list (the user signed up, the date moved, another wave), use update_race. Requires signing in.
| Parameter | Type | Description |
|---|---|---|
race_urls * | array | Race page urls from search_races. |
format | string | Wave or distance the user picked, e.g. 'Sprint 5K'. Omit when they did not say. |
add_custom_race Add a race we do not list
Put a race search_races does not list (a trail race, a road marathon, a local event, anything) on the user's Goal Race list, the same list save_race writes to. Search first; use this only when the race is not in the results. A race the site does list still goes in as that race (linked to its page, with the status and format you pass), and the result says so in listed_race: tell the user. A date is required: a race without one has no place on a calendar. When the organiser has not announced it, ask the user for their best guess and pass date_confirmed: false — the race then goes in with statu…
| Parameter | Type | Description |
|---|---|---|
date * | string | Race day, YYYY-MM-DD. Required. |
title * | string | Race name as the user says it, year included if they said it. Max 200 chars. No 'TBC'. |
date_confirmed | boolean | False when the date is the user's guess rather than the organiser's announcement. Default true. |
format | string | Wave or distance the user picked, e.g. '42K'. Omit when they did not say. |
location | string | Town and country, e.g. 'Chamonix, France'. Omit when unknown. |
not_listed | boolean | Only after this tool answered with a listed race the user says is a different one: true adds the race as typed. Leave out otherwise. |
status | string | 'wishlist': On the list, not signed up. The default. 'registered': Signed up and paid. 'monitoring': Watching it: the date or the registration is not settled yet. 'booking': Booking travel and beds fo… |
url | string | The organiser's page, absolute http(s) url. Omit when unknown. |
remove_race Remove a race from the list
Take one race off the user's list, the same list save_race and add_custom_race write to. Pass race_id or race_slug from get_calendar, or the url from search_races, or the title (+ date when the same race is listed twice). Several matches come back as ambiguous and nothing is removed. Training sessions are never touched; remove_sessions does those. Only when the user wants the race gone: to change it (signed up, a new date, another wave), use update_race, which keeps its notes, plans and links. Where the user has Google Calendar connected, the race's event goes too. All dates are the user's loc…
| Parameter | Type | Description |
|---|---|---|
date | string | YYYY-MM-DD, narrows title when the same race is listed twice. |
race_id | string | id of the race on the user's list, from get_calendar. |
race_slug | string | brand/year/slug from get_calendar, search_races or save_race. |
title | string | The race name as the list shows it, when there is no id or slug. |
url | string | The race url from search_races, instead of race_slug. |
update_race Change a race on the list
Change one race already on the user's list, in place: the status ("I signed up" → registered), the race day ("it moved to 12 June"), the wave or distance, the town, the organiser's url. Pass race_id from get_calendar and only the fields that change. The race stays the same race on the list: its notes, saved plans, links, hotels, flights and sessions are kept, so never remove_race and add it again to change it. A new date moves the end date with it; sessions stay where they are (offer update_session if the plan counted back from race day). Where the user has Google Calendar connected, the rac…
| Parameter | Type | Description |
|---|---|---|
date | string | New race day, YYYY-MM-DD. |
date_confirmed | boolean | False when the new date is the user's guess: a race on the list as 'wishlist' becomes 'monitoring'; any other status stays. |
end_date | string | New last day, YYYY-MM-DD, for a race over several days. Omit to keep the race's length. |
format | string | Wave or distance, e.g. 'Sprint 5K'. Replaces the one in the name; '' takes it off. |
location | string | Town and country, e.g. 'Chamonix, France'. |
race_id | string | id of the race on the user's list, from get_calendar. |
race_slug | string | brand/year/slug from get_calendar, when there is no race_id. |
status | string | 'wishlist': On the list, not signed up. The default. 'registered': Signed up and paid. 'monitoring': Watching it: the date or the registration is not settled yet. 'booking': Booking travel and beds fo… |
url | string | The organiser's page, absolute http(s) url. '' clears it. |
get_trip One race on the user's list
One race the user has saved, in as much depth as asked for: the race itself, the training sessions between today and race day, and the diary notes linked to it. sections picks the parts (race, training, notes, plans, travel, weather); left out, it returns race, training and notes. Ask for the others by name: plans (what was saved with save_trip_plan; without it, saved_plans names the sections that exist), travel (nearest airports, drive, train) and weather (race day in the last five years, plus the forecast within 16 days). Anything they do not know is in unknown. For any race on the site rath…
| Parameter | Type | Description |
|---|---|---|
race_id | string | id of the race on the user's list, from get_calendar. |
race_slug | string | brand/year/slug, instead of race_id. |
sections | array | Parts to return: race, training, notes, plans, travel, weather. Omit for race, training and notes. |
title | string | The race name as the list shows it, when there is no id or slug. |
save_trip_plan Save a plan for a race
Keep what was planned for one race on the user's list, one section at a time: race_plan, fuelling, gear_checklist, travel_notes, stay_booked. race_plan is how to run it (wave, pacing, target time), fuelling what to eat and drink, gear_checklist what to wear and pack, travel_notes how they get there, stay_booked where they sleep once it is booked. Saving a section again replaces it; empty content removes it. Plain text or markdown, 8000 characters at most. get_trip reads the sections back under plans. A dated entry about something that happened is a diary note (add_note), not a plan. Requires s…
| Parameter | Type | Description |
|---|---|---|
content * | string | The plan itself, plain text or markdown. An empty string removes the section. |
section * | string | Which part of the plan: race_plan, fuelling, gear_checklist, travel_notes, stay_booked. |
race_id | string | id of the race on the user's list, from get_calendar. |
race_slug | string | brand/year/slug, instead of race_id. |
title | string | The race name as the list shows it, when there is no id or slug. |
add_training_plan Put a training plan on the calendar
A whole plan from the OCR Races training-plan library on the user's calendar in one call, every session dated, instead of adding them one by one. mode 'list' (the default, no other input) returns the plans with goal, weeks and sessions a week. mode 'install' takes plan_slug and either race_date (the plan's last week is race week; sessions after race day are dropped) or start_monday (a Monday, this week or later). Installing the same plan again replaces its untouched sessions; completed ones stay. Returns the first week and how many sessions were written. All dates are the user's local calendar…
| Parameter | Type | Description |
|---|---|---|
mode | string | 'list' to see the plans (default), 'install' to put one on the calendar. |
plan_slug | string | plan_slug from mode 'list'. Required for 'install'. |
race_date | string | Race day, YYYY-MM-DD. The plan ends on that week. Use this when the user has a goal race. |
start_monday | string | First Monday of the plan, YYYY-MM-DD. Use this when there is no race date, or to start earlier than race_date would. |
add_note Add a diary note
Save a diary note on a date: a race recce, gear that worked or did not, the weather on the day, what to change next time, a pacing idea, anything the user wants to remember that is not a training session. A workout belongs in add_sessions or log_session instead. Store the user's words as close to verbatim as possible, lightly cleaned up (filler words out, sentences kept); do not summarise or add advice of your own. Date defaults to today in the user's zone. A short title and 1 to 3 lowercase tags (e.g. 'recce', 'gear', 'pacing') are what get_notes searches on later. All dates are the user's lo…
| Parameter | Type | Description |
|---|---|---|
body * | string | The note, in the user's words. Markdown allowed. |
date | string | Local date the note is about, YYYY-MM-DD. Defaults to today. |
race_id | string | Link to a race on the user's list (race_id from get_calendar). Optional. |
session_id | string | Link to a training session (session_id from get_calendar). Optional. |
tags | array | Lowercase topic tags, e.g. ['recce', 'gear']. Optional. |
title | string | Short title, e.g. 'Recce: the first climb'. Optional. |
update_note Change a diary note
Change a diary note: add to it (body with body_mode 'append'), rewrite it (body_mode 'replace'), fix the date or title, set or add tags, link a race or session. note_id comes from get_notes or add_note. Only the fields you send change. Training sessions are update_session, not this. All dates are the user's local calendar dates (YYYY-MM-DD) in their own time zone. Requires signing in.
| Parameter | Type | Description |
|---|---|---|
note_id * | string | ID of the note, from get_notes or add_note. |
add_tags | array | Add these tags, keeping the existing ones. |
body | string | Text to append or the new body, see body_mode. |
body_mode | string | 'append' adds the text as a new paragraph; 'replace' swaps the whole body. Default 'replace'. |
date | string | New local date, YYYY-MM-DD. |
race_id | string | Link to a race (race_id from get_calendar); empty string unlinks. |
session_id | string | Link to a session (session_id from get_calendar); empty string unlinks. |
tags | array | Replace the tags with this list. |
title | string | New title; empty string clears it. |
delete_note Delete a diary note
Delete one diary note for good. Training sessions are not touched; remove_sessions does those. Requires signing in.
| Parameter | Type | Description |
|---|---|---|
note_id * | string | ID of the note, from get_notes. |
get_notes Read the diary
The user's diary notes, three ways: note_id returns that one note in full; query searches title, body and tags and returns dated snippets; neither returns the newest notes, optionally inside a date range. These are diary entries, not training sessions (get_calendar and get_training_log have those). Searching is stemmed with a plain-text fallback, so 'pace' finds 'pacing'. Without note_id, long bodies are cut at 600 characters and marked body_truncated. Every note carries its date and date_spoken, so an answer can name the day it was written. All dates are the user's local calendar dates (YYYY-…
| Parameter | Type | Description |
|---|---|---|
end_date | string | Only notes on or before this local date, YYYY-MM-DD. Optional. |
limit | number | Max notes, default 20, max 100. |
note_id | string | One note in full, by id. Ignores the other fields. |
query | string | Topic words to look for, e.g. 'climb recce'. |
start_date | string | Only notes on or after this local date, YYYY-MM-DD. Optional. |
add_block Start a training block
Put a training block on the calendar: a named stretch of weeks with one goal — 'Weight loss, 9 Nov to 28 Feb', 'Calf strength', 'Speed & power, 6 weeks'. Use it when the user says what they are working on for a run of weeks, or builds to a race. The sessions themselves are still add_sessions: a block never owns them, it says what the weeks are for. Send weeks (how many it runs) or end_date. Any weekday may start it. Blocks may run alongside each other, but a day has one main block: with main true this refuses if another main block covers the same days, and names it. Set main false for the on…
| Parameter | Type | Description |
|---|---|---|
name * | string | What the user calls it, e.g. 'Weight loss', 'Speed & power'. Max 80 characters. |
colour | string | The band's tick colour, from the calendar's session palette. Default 'run'. |
end_date | string | Last day, YYYY-MM-DD. Send this or weeks. |
goal | string | One line, e.g. '5 x 1 km at 4:30/km by week 6'. Max 200 characters. Optional. |
main | boolean | True (default) for the block these weeks belong to; false for one running alongside it. |
notes | string | The progression, the weekly rules, what is held at maintenance. Markdown allowed. Optional. |
race_id | string | The race this block builds to (race_id from get_calendar). Optional. |
start_date | string | First day, YYYY-MM-DD. Defaults to today. |
weeks | number | How many weeks it runs from start_date. Send this or end_date. |
update_block Change a training block
Change a training block: rename it, move or extend its dates ('extend the speed block by two weeks' is weeks, counted from its start), rewrite the goal or notes, switch main on or off, change the colour, link a race. block_id comes from get_blocks or add_block. Only the fields you send change. Sessions in those weeks are never touched. Turning main on, or moving a main block's dates, refuses if another main block covers the same days. All dates are the user's local calendar dates (YYYY-MM-DD) in their own time zone. Requires signing in.
| Parameter | Type | Description |
|---|---|---|
block_id * | string | ID of the block, from get_blocks or add_block. |
colour | string | New tick colour. |
end_date | string | New last day, YYYY-MM-DD. |
goal | string | New one-line goal; empty string clears it. |
main | boolean | Make it the day's main block, or set it to run alongside. |
name | string | New name. |
notes | string | New notes; empty string clears them. |
race_id | string | Link to a race (race_id from get_calendar); empty string unlinks. |
start_date | string | New first day, YYYY-MM-DD. |
weeks | number | Re-end the block this many weeks after its start date. |
remove_block Remove a training block
Take a training block off the calendar for good. Every session in those weeks stays exactly where it is — a block never owned them. Only the block, its goal and its notes go. Requires signing in.
| Parameter | Type | Description |
|---|---|---|
block_id * | string | ID of the block, from get_blocks. |
get_blocks Read the training blocks
The user's training blocks with their dates, goals and how many weeks each runs. The ones covering today also carry week_of_total ('3/16'), so an answer can say which week of the block they are in. Use when the user asks what they are working on, before adding a block (to see what is already there), or to review a block against its goal with get_training_log. All dates are the user's local calendar dates (YYYY-MM-DD) in their own time zone. Requires signing in.
| Parameter | Type | Description |
|---|---|---|
limit | number | Max blocks, default 50, max 100. |
when | string | Which blocks: covering today, starting later, already finished, or all. Default 'all'. |
get_profile Athlete profile
The athlete behind the calendar: home_city (where they live), timezone, units (metric or imperial), race_types (the kinds of race they look for: ocr, gym, trail) and max_travel_km (how far they will travel to a race). Anything they have not set is in unknown. No input. Requires signing in.
update_profile Change the athlete profile
Change the athlete's home city, time zone, units, the kinds of race they look for or how far they will travel. Only the fields you send change. An empty home_city, an empty race_types list or max_travel_km 0 clears that field. The time zone decides what 'today' is for every other tool. Requires signing in.
| Parameter | Type | Description |
|---|---|---|
home_city | string | City and country as the user says it, e.g. 'Utrecht, Netherlands'. |
max_travel_km | number | How far they will travel to a race, in kilometres from home. |
race_types | array | Kinds of race they look for: ocr (obstacle course), gym (HYROX-style hybrid fitness), trail (trail and ultra running). |
timezone | string | IANA time zone name of where the user is, e.g. 'Europe/Amsterdam'. |
units | string | 'metric' (km, m) or 'imperial' (miles, feet). |