Skip to main content
Glama

Search races

search_races
Read-onlyIdempotent

Use 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

NameRequiredDescriptionDefault
toNoLatest next race date, YYYY-MM-DD.
fromNoEarliest next race date, YYYY-MM-DD.
nearNoA 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.
limitNo
queryNoRace name or place, e.g. "chicago" or "big sur".
offsetNoSkip this many matches: pass next_offset from the previous result to get the next page.
regionNoState or region name as written locally, e.g. Ohio or Bavaria.
countryNoISO 3166-1 alpha-2 code or English name, e.g. US or Japan.
distanceNo
radius_kmNoHow far from near, in kilometres.
ultra_typeNoOptional. 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_forNoOptional. 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_milesNoHow far from near, in miles (default 100). Use radius_km instead for kilometres.
boston_qualifierNotrue for Boston qualifying courses only.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / ultra_type
      Added value: +{
      +  "description": "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.",
      +  "enum": [
      +    "50k",
      +    "50-mile",
      +    "100k",
      +    "100-mile",
      +    "200-mile",
      +    "other",
      +    "timed",
      +    "backyard"
      +  ],
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / offset
      Added value: +{
      +  "description": "Skip this many matches: pass next_offset from the previous result to get the next page.",
      +  "maximum": 1000,
      +  "minimum": 0,
      +  "type": "integer"
      +}
  3. Changed3 schema fields changed
    • addedInput schema / properties / near
      Added value: +{
      +  "description": "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.",
      +  "type": "string"
      +}
    • addedInput schema / properties / radius_km
      Added value: +{
      +  "description": "How far from near, in kilometres.",
      +  "maximum": 800,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / radius_miles
      Added value: +{
      +  "description": "How far from near, in miles (default 100). Use radius_km instead for kilometres.",
      +  "maximum": 500,
      +  "minimum": 1,
      +  "type": "integer"
      +}
  4. Changed1 schema field changed
    • addedInput schema / properties / looking_for
      Added value: +{
      +  "description": "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.",
      +  "enum": [
      +    "registration",
      +    "results",
      +    "live_tracking"
      +  ],
      +  "type": "string"
      +}
  5. Changed1 schema field changed
    • changedInput schema / properties / limit / maximum
      Previous value: -25New value: +20
  6. First observed

TDQS

A4.9/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the annotations, the description discloses pagination via total and next_offset, result ordering rules, per-call limits with and without an API key, hourly and daily rate limits, and what extra fields appear for each looking_for value. It also explains important output semantics such as distance_label versus converted distance fields. The annotations already establish read-only and non-destructive behavior, and the description adds substantial operational context without contradicting them.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with the use case and is dense with useful information, with little wasted wording. However, it is a long single paragraph covering many parameter and output behaviors, and could be easier to scan if segmented; the length is largely justified by the 14-parameter search surface and rate-limit details.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description carries the burden of explaining return values, and it does so: result count, next_offset, next race date, registration status, guide URL, distance fields, and looking_for-specific links. It also covers ordering, pagination, rate limits and API-key differences, leaving an agent with enough context to call and interpret the tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Although schema coverage is high at 86%, the description adds meaning beyond the schema for key parameters: it explains how looking_for changes returned links, how ultra_type treats near-standard distances and missing distance data, how offset should be populated from next_offset, and how no-query versus near-only searches are ordered. It also clarifies that race_distance_km, race_distance_miles and duration_hours are for comparison and sorting, while distance_label is what should be shown to runners.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific use case and verb: find or choose a race, or look one up by name, date or place. It names the resource types (marathons, half marathons, ultras) and the search dimensions, and explicitly distinguishes itself from get_race by explaining when to use looking_for instead of per-race lookups.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states exactly when to use the tool, gives natural-language examples, and names the sibling alternative: pass looking_for instead of calling get_race for each race. It also explains behavior with no text query and with a near search that has no dates, which guides how to interpret alternative search modes.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources