Skip to main content
Glama

List published running courses

ourpr_list_courses
Read-onlyIdempotent

List every running course published on ourpr., with its place, distance, climb and next race date.

Each course is a MEASURED centerline built from recorded runs, with elevation from a public terrain model: USGS 3DEP 10 m in the US, and the city's own 1 m model in Berlin. It is not a course map traced by hand.

START HERE. Every other course tool takes a slug, and this is where slugs come from.

Args:

  • query (string, optional): Match the name and the place. Partial, case-insensitive.

  • kind ('race' | 'trail' | 'route', optional): Keep one kind.

  • course_type ('loop' | 'out-and-back' | 'point-to-point', optional): Keep one shape.

  • min_distance_mi / max_distance_mi (number, optional): Bound the distance in miles.

  • upcoming_only (boolean): Keep only courses whose race date has not passed. Default false.

  • limit (number): 1 to 50. Default 20.

  • offset (number): Skip this many. Default 0.

  • response_format ('markdown' | 'json'): Default 'markdown'.

Returns: { "total": number, // matched the filters "count": number, // in this answer "offset": number, "has_more": boolean, "next_offset": number, // present when has_more "published_total": number, // every published course "courses": [{ "slug": string, // "boston-marathon" "name": string, // the event's own name, title sponsor included "place": string | null, // "Hopkinton → Boston, MA" "kind": string, "course_type": string, "distance_mi": number, "climb_ft": number | null, "steepest_pct": number | null, "next_race_date": string | null, // YYYY-MM-DD "days_out": number | null, // null once the date has passed "page_url": string }] }

The order is the race calendar: the soonest race first, then undated courses by distance.

Examples:

  • "What marathons does ourpr. have?" -> min_distance_mi=26

  • "Which race is next?" -> upcoming_only=true, limit=1

  • "Anything in Fort Worth?" -> query="fort worth"

  • Do not use when: you want the hills on one course. Use ourpr_get_course_terrain.

Error handling:

  • Returns "No course matched" with the filters echoed when nothing matches.

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": "ourpr_list_courses"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNoKeep only this kind. 'race' is a published event course, 'trail' is a trail segment, 'route' is an everyday loop.
limitNoThe most courses to return.
queryNoMatch against the course name and its place. Case-insensitive, partial. Example: 'boston', 'fort worth', 'half'.
offsetNoHow many courses to skip. Use it with `next_offset`.
course_typeNoKeep only this shape of course.
upcoming_onlyNoKeep only courses whose next race date is today or later. A course with no date is dropped by this filter.
max_distance_miNoKeep only courses no longer than this, in miles.
min_distance_miNoKeep only courses at least this long, in miles.
response_formatNoOutput format. 'markdown' reads well in a chat answer. 'json' carries every field for further computation.markdown

Output Schema

NameRequiredDescriptionDefault
countYesCourses in this answer.
totalYesCourses that matched the filters.
offsetYes
coursesYes
has_moreYes
next_offsetNo
published_totalYesEvery published course, before any filter.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Changed1 schema field changed
    • addedInput schema / properties / offset / maximum
      Added value: +9007199254740991
  3. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare read-only, idempotent, open-world, non-destructive, so the safety bar is low; the description nonetheless adds substantive behavior: result ordering (race calendar, soonest first, then undated by distance), pagination semantics via has_more/next_offset, and a concrete no-match error message echoing the filters. It also discloses data provenance — a measured centerline with USGS 3DEP 10 m / Berlin 1 m elevation rather than a hand-traced map — which meaningfully frames result quality.

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

Conciseness3/5

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

The purpose and routing guidance are front-loaded and well structured, but the full 'Returns' object dump duplicates the output schema line for line and occupies roughly half the description. Some field comments add semantics (days_out null after the date passes), yet much of the block is redundant padding that dilutes the high-value opening.

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?

For a nine-parameter list tool with an output schema, this definition covers everything an agent needs: purpose, starting-point role, filtering arguments, ordering, pagination, provenance, examples and the no-match error. Nothing required to call it correctly is left to inference.

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 description coverage is 100%, so every one of the nine parameters is already documented in structured data with enums, defaults and bounds. The 'Args' block largely restates that (query partial/case-insensitive, limit 1–50 default 20, upcoming_only default false) rather than adding new meaning or edge-case behavior. Baseline 3 applies when the schema carries the weight.

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

Purpose4/5

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

States a specific verb and resource — every running course published on ourpr — plus what each record carries (place, distance, climb, next race date). The 'START HERE... every other course tool takes a slug' line cleanly separates it from the get_course_* family. It does not, however, distinguish itself from sibling list tools such as ourpr_list_races and ourpr_list_routes, whose names suggest heavily overlapping result sets.

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?

Explicit when-to-use ('START HERE', source of slugs) and an explicit when-not with the named alternative (ourpr_get_course_terrain for per-course hills). Four worked natural-language-to-argument examples convert vague user questions into concrete calls, which is exactly what an agent needs to route correctly.

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