Search races
search_racesUse this when a runner wants to find or choose a race, or asks about a race by name, date or place. Finds marathons, half marathons and ultras worldwide by name, city, region, country, distance, date window, distance from a place or Boston-qualifier status ("a spring marathon in Ohio", "halves within 100 miles of Denver in October"). Returns up to 10 races per call (20 with an API key) with the next race date, registration status and Marathon Scout guide URL, plus total (every match) and next_offset (pass it as offset for the next page). With no text query, results are in date order; a near search with no dates comes back nearest first, each race with distance_miles. Pass looking_for to get registration, results or live tracking links in the same call instead of calling get_race for each race. For ultras, ultra_type narrows to 50K, 50 mile, 100K, 100 mile, 200 mile, timed or backyard races. Each race carries distance_label, how the race names its distance ("55K", "100 mile", "24 hour", "Backyard"): show runners that, never a converted number. race_distance_km, race_distance_miles and duration_hours are for comparing and sorting. Limits without a key: 20 calls an hour and 40 different races a day; a free key from https://marathonscout.com/developers allows 200 calls and 150 different races a day.
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": "search_races"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Latest next race date, YYYY-MM-DD. | |
| from | No | Earliest next race date, YYYY-MM-DD. | |
| near | No | A city to search around, with its state or country when you know it, e.g. "Austin, Texas" or "Lyon, France". The result says which place was used and lists other places with that name. | |
| limit | No | ||
| query | No | Race name or place, e.g. "chicago" or "big sur". | |
| offset | No | Skip this many matches: pass next_offset from the previous result to get the next page. | |
| region | No | State or region name as written locally, e.g. Ohio or Bavaria. | |
| country | No | ISO 3166-1 alpha-2 code or English name, e.g. US or Japan. | |
| distance | No | ||
| radius_km | No | How far from near, in kilometres. | |
| ultra_type | No | Optional. One kind of ultra: 50k, 50-mile, 100k, 100-mile, 200-mile, other (fixed distances outside those), timed or backyard. Each fixed type includes races close to the standard (a 55K is in 50k), and a race matches only once its distance is recorded, so leave it out to see every ultra. | |
| looking_for | No | Optional. What the runner needs next, so each race comes back with the right link: registration adds entry status, when it was checked and register_url; results adds the latest official results link; live_tracking adds the tracker link once one is confirmed. Leave it out when the runner is just exploring races. | |
| radius_miles | No | How far from near, in miles (default 100). Use radius_km instead for kilometres. | |
| boston_qualifier | No | true for Boston qualifying courses only. |