Skip to main content
Glama

Get water and toilets on a course

ourpr_get_course_amenities
Read-onlyIdempotent

Public drinking water and toilets on the line of one course, each placed at the mile it sits at.

READ THIS LIMIT BEFORE YOU ANSWER. These come from OpenStreetMap: public taps and toilets somebody mapped near the route. It is a FREQUENCY difference, not a category one — a race day sets up many more stops than an ordinary day has. A mapped tap can also be seasonal, shut off or gone. Never present this as an aid-station plan, and never imply the count is guaranteed.

It answers the training question instead: if I run this course on an ordinary day, where can I drink?

Args:

  • slug (string): From ourpr_list_courses.

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

Returns: { "slug": string, "name": string, "distance_mi": number, "source": string, "is_race_aid_station_list": false, "water_count": number, "toilet_count": number, "longest_gap_without_water_mi": number | null, "longest_gap_from_mi": number | null, "longest_gap_to_mi": number | null, "amenities": [{ "kind": string, "mi": number, "lat": number, "lng": number }], "page_url": string }

The longest gap counts the start and the finish as ends, so a course with one water stop at mile 3 of 6 reports a 3 mile gap, not 0.

Examples:

  • "Where can I refill on the Cowtown ultra?" -> slug="cowtown-ultra-marathon"

  • "How far do I go without water on Boston?" -> read longest_gap_without_water_mi

  • Do not use when: you want race-day aid stations. ourpr. does not hold those.

Error handling:

  • A course with no mapped amenity returns empty arrays and zero counts. That means none is mapped, not that none exists.

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_amenities"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYesThe course's slug.
response_formatNoOutput format. 'markdown' reads well in a chat answer. 'json' carries every field for further computation.markdown

Output Schema

NameRequiredDescriptionDefault
nameYes
slugYes
sourceYes
page_urlYes
amenitiesYes
distance_miYes
water_countYes
toilet_countYes
longest_gap_to_miYes
longest_gap_from_miYes
is_race_aid_station_listYesAlways false. These are public amenities, not race aid stations.
longest_gap_without_water_miYes

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. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already cover read-only/idempotent/non-destructive, but the description adds the traits that actually matter here: OSM-derived crowd-mapped data, possible seasonal closures, a frequency-not-category difference from race day, and the meaning of zero counts and empty arrays. That is well beyond what the annotations supply.

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 critical caveat and cleanly sectioned into Args, Returns, Examples and Error handling, with a worked example for the gap field. It is long, and the aid-station prohibition is stated twice (limit block and "Do not use when"), which is minor redundancy rather than wasted space.

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?

Even though an output schema exists, the description adds semantics the schema cannot convey, notably that the longest gap counts the start and finish as ends and returns 3 rather than 0 for a single mile-3 stop on a 6-mile course. Error handling for unmapped courses is also covered, which is everything an agent needs for a read-only, single-slug tool.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3. The description adds one genuinely new fact by tying slug to ourpr_list_courses, but response_format is only restated from the schema with no added meaning, so it does not earn a 5.

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 opening sentence names the exact resource (public drinking water and toilets) and the exact scope (one course, each placed at its mile). It immediately distinguishes the tool from an aid-station listing, so an agent can tell what it does and what it is not without opening the 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?

Gives an explicit positive trigger ("if I run this course on an ordinary day, where can I drink?") and an explicit exclusion ("Do not use when: you want race-day aid stations"), plus the provenance chain for the slug (from ourpr_list_courses). Nothing about when to select this tool is left to inference.

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