Search races
search_racesFind upcoming US running races, such as 5Ks, half marathons, marathons, ultras and trail races, by place, distance, date window, race type or name. Use it when someone is looking for a race to run. Returns 20 races per page, soonest first unless sorted otherwise, shown as race cards where the app supports them.
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 |
|---|---|---|---|
| zip | No | Five-digit US ZIP code to search around. | |
| city | No | City name, e.g. "Austin". Include state when known. | |
| name | No | Words in the race name, e.g. "turkey trot". | |
| page | No | next_page from an earlier search with the same filters. | |
| sort | No | ||
| type | No | Only trail races, or only races with a virtual option. | |
| when | No | Race date window: "4w" (next 4 weeks), "1-3m" (1–3 months out), "3-6m" (3–6 months out), "6m+" (6+ months out), or a month as "YYYY-MM". | |
| state | No | Two-letter US state code, e.g. "TX". | |
| distance | No | Standard distance. "ultra" is anything over 27 miles. | |
| max_distance | No | Longest distance, for ranges the presets don't cover. | |
| min_distance | No | Shortest distance, for ranges the presets don't cover. | |
| radius_miles | No | Search radius around the city or ZIP. Defaults to the city's own size, or 25 miles when few races are that close. | |
| distance_unit | No | Unit for min_distance and max_distance. Defaults to mi. |