Skip to main content
Glama

Get one course

ourpr_get_course
Read-onlyIdempotent

Read one published course: its place, distance, climb, how it was measured, and which streets carry it.

DELIBERATELY WITHOUT the elevation profile, the amenities and the centerline. Those are three more tools, because one course payload is about 83 KB and 91% of it is the profile.

Args:

  • slug (string): From ourpr_list_courses. Example: 'boston-marathon'.

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

Returns: { "slug": string, "name": string, // the event's own name, title sponsor included "place": string | null, "alternate_names": string[], // curated geographic aliases "kind": string, "course_type": string, "distance_mi": number, // the stated race distance "measured_mi": number | null, // the centerline ourpr. measured "next_race_date": string | null, "days_out": number | null, "climb_ft": number | null, "descent_ft": number | null, "min_ft": number | null, "max_ft": number | null, "steepest_pct": number | null, "provenance": string | null, // one sentence on how it was built "sources": [{ "label": string, "value": string }], "recorded_on": string | null, // the watch that recorded the seed run "main_ways": [{ "name": string, "mi": number, "share_pct": number }], "through": string[], // named places the line passes through "photo_count": number, "counts": { "named_climbs_and_descents": number, "amenities": number, "mile_markers": number, "profile_points": number }, "page_url": string }

distance_mi is what the race calls itself; measured_mi is what the centerline measures. They differ by a few hundredths and both are reported rather than reconciled.

Examples:

  • "Tell me about the Boston Marathon course" -> slug="boston-marathon"

  • "How much does San Diego climb?" -> slug="san-diego-marathon", read climb_ft

  • Do not use when: you want the hill-by-hill shape. Use ourpr_get_course_terrain.

Error handling:

  • Returns the slug list suggestion when the slug is unknown.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "slug": "<slug>"
    },
    "name": "ourpr_get_course"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYesThe course's slug, exactly as ourpr_list_courses returns it. Example: 'boston-marathon'.
response_formatNoOutput format. 'markdown' reads well in a chat answer. 'json' carries every field for further computation.markdown

Output Schema

NameRequiredDescriptionDefault
kindYes
nameYes
slugYes
placeYes
countsYes
max_ftYes
min_ftYes
sourcesYes
throughYes
climb_ftYes
days_outYes
page_urlYes
main_waysYes
descent_ftYes
one_way_miYes
provenanceYes
course_typeYes
distance_miYes
measured_miYes
photo_countYes
recorded_onYes
steepest_pctYes
next_race_dateYes
alternate_namesYes

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. Changed2 schema fields changed
    • removedOutput schema / properties / gpx_url
      Removed value: -{
      -  "type": "string"
      -}
    • changedOutput schema / required
      Previous value: -[
      -  "slug",
      -  "name",
      -  "place",
      -  "alternate_names",
      -  "kind",
      -  "course_type",
      -  "distance_mi",
      -  "one_way_mi",
      -  "next_race_date",
      -  "days_out",
      -  "climb_ft",
      -  "descent_ft",
      -  "min_ft",
      -  "max_ft",
      -  "steepest_pct",
      -  "measured_mi",
      -  "provenance",
      -  "sources",
      -  "recorded_on",
      -  "main_ways",
      -  "through",
      -  "photo_count",
      -  "counts",
      -  "page_url",
      -  "gpx_url"
      -]New value: +[
      +  "slug",
      +  "name",
      +  "place",
      +  "alternate_names",
      +  "kind",
      +  "course_type",
      +  "distance_mi",
      +  "one_way_mi",
      +  "next_race_date",
      +  "days_out",
      +  "climb_ft",
      +  "descent_ft",
      +  "min_ft",
      +  "max_ft",
      +  "steepest_pct",
      +  "measured_mi",
      +  "provenance",
      +  "sources",
      +  "recorded_on",
      +  "main_ways",
      +  "through",
      +  "photo_count",
      +  "counts",
      +  "page_url"
      +]
  3. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world, so the safety profile is covered; the description goes further by explaining the payload-size rationale for the split (~83 KB, 91% profile) and by documenting error behavior — an unknown slug returns a slug-list suggestion. Minor gap: no statement on whether missing fields are null vs omitted at the response level, though the type signatures imply it.

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?

Front-loaded with the one-sentence purpose and the exclusions, then a clearly labeled Args/Returns/Examples/Error layout. The full return-object dump is long, but its inline comments carry semantic value (distance_mi vs measured_mi are 'reported rather than reconciled'). Slightly verbose against a formal output schema that already exists.

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 read-only single-record fetch with full annotations and an output schema, nothing an agent needs is missing: exclusions are routed to named siblings, the unit-of-measure ambiguity is resolved, examples anchor intent, and the unknown-slug failure mode is described. The 83 KB rationale also justifies why the agent should not expect a monolithic payload.

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%, and both parameter descriptions there already state the slug's provenance ('exactly as ourpr_list_courses returns it') and the markdown-vs-json tradeoff. The description's Args block largely restates this, adding only a second example slug. Baseline 3 is the right call when the schema does the work.

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?

Opens with a specific verb+resource ('Read one published course') and immediately enumerates what is returned (place, distance, climb, measurement provenance, streets). It also names what is deliberately excluded, which separates it cleanly from the terrain, amenities, and route siblings without requiring the agent to open another schema.

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 both ways: two concrete example utterances mapped to slug and field, plus a 'Do not use when: you want the hill-by-hill shape. Use ourpr_get_course_terrain.' The exclusions paragraph routes the elevation profile, amenities, and centerline to three other tools, so the agent knows when this tool is the wrong pick.

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