Skip to main content
Glama

Search races

search_races
Read-onlyIdempotent

Find 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

NameRequiredDescriptionDefault
zipNoFive-digit US ZIP code to search around.
cityNoCity name, e.g. "Austin". Include state when known.
nameNoWords in the race name, e.g. "turkey trot".
pageNonext_page from an earlier search with the same filters.
sortNo
typeNoOnly trail races, or only races with a virtual option.
whenNoRace 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".
stateNoTwo-letter US state code, e.g. "TX".
distanceNoStandard distance. "ultra" is anything over 27 miles.
max_distanceNoLongest distance, for ranges the presets don't cover.
min_distanceNoShortest distance, for ranges the presets don't cover.
radius_milesNoSearch radius around the city or ZIP. Defaults to the city's own size, or 25 miles when few races are that close.
distance_unitNoUnit for min_distance and max_distance. Defaults to mi.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world behavior, so the description doesn't need to repeat safety. It adds real behavioral context the annotations don't carry: 20 results per page, soonest-first default ordering, and race-card rendering where supported.

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

Conciseness5/5

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

Three tight sentences, front-loaded with the purpose and filters before pagination details. Every clause carries usable information and nothing is redundant.

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

Completeness4/5

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

For a 13-parameter, zero-required search tool with no output schema, the description covers result count, ordering, and presentation, which is what an agent needs to call and interpret it. It stops short of describing the fields in a race result, but the schema's thorough parameter docs carry most of the remaining load.

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

Parameters3/5

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

Schema coverage is 92% with rich per-parameter descriptions, so the baseline is 3. The description adds a little meaning by grouping the filter axes and by disclosing the default sort order (the sort parameter itself has no description), but it introduces no new syntax or constraints beyond the schema.

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?

States a specific verb and resource: "Find upcoming US running races... by place, distance, date window, race type or name," and enumerates race categories (5Ks, half marathons, marathons, ultras, trail). This clearly separates a discovery/search operation from single-record siblings like get_race.

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

Usage Guidelines4/5

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

Explicitly says "Use it when someone is looking for a race to run," which gives clear when-to-use context. It does not state when NOT to use it (e.g., that fetching details of an already-identified race belongs to get_race, or that finish-time estimates belong to predict_race_time), leaving some routing inference to the agent.

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