Skip to main content
Glama

Get a course's line

ourpr_get_course_route
Read-onlyIdempotent

Where a course actually runs: its start, its finish, its bounding box, every mile marker, and the streets in the order you meet them.

For a watch, hand over page_url: a signed-in runner sends the course to Garmin Connect from the page. There is no GPX download.

Args:

  • slug (string): From ourpr_list_courses.

  • include_polyline (boolean): Add the encoded centerline, about 9,800 characters. Default false.

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

Returns: { "slug": string, "name": string, "course_type": string, "distance_mi": number, "start": { "lat": number, "lng": number } | null, "finish": { "lat": number, "lng": number } | null, "bbox": { "min_lat": number, "min_lng": number, "max_lat": number, "max_lng": number } | null, "mile_markers": [{ "mile": number, "lat": number, "lng": number }], "streets_in_order": [{ "name": string, "from_mi": number, "to_mi": number }], "polyline": string | null, "page_url": string }

On an out-and-back the start and the finish are the same point, by design.

Examples:

  • "Send me the Boston course for my watch" -> hand over page_url

  • "What streets does Dallas run down?" -> read streets_in_order

  • "Where does Honolulu start?" -> read start

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

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
include_polylineNoAdd the encoded centerline. It runs to about 9,800 characters and only helps if you will decode it. Leave it off and hand over `page_url` instead.

Output Schema

NameRequiredDescriptionDefault
bboxYes
nameYes
slugYes
startYes
finishYes
page_urlYes
polylineYes
course_typeYes
distance_miYes
mile_markersYes
streets_in_orderYes

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. Changed3 schema fields changed
    • changedInput schema / properties / include_polyline / description
      Previous value: -"Add the encoded centerline. It runs to about 9,800 characters and only helps if you will decode it. Leave it off and hand over `gpx_url` instead."New value: +"Add the encoded centerline. It runs to about 9,800 characters and only helps if you will decode it. Leave it off and hand over `page_url` instead."
    • removedOutput schema / properties / gpx_url
      Removed value: -{
      -  "type": "string"
      -}
    • changedOutput schema / required
      Previous value: -[
      -  "slug",
      -  "name",
      -  "course_type",
      -  "distance_mi",
      -  "start",
      -  "finish",
      -  "bbox",
      -  "mile_markers",
      -  "streets_in_order",
      -  "polyline",
      -  "gpx_url",
      -  "page_url"
      -]New value: +[
      +  "slug",
      +  "name",
      +  "course_type",
      +  "distance_mi",
      +  "start",
      +  "finish",
      +  "bbox",
      +  "mile_markers",
      +  "streets_in_order",
      +  "polyline",
      +  "page_url"
      +]
  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 a safe, idempotent read, and the description adds real behavior on top: no GPX export exists, the polyline is ~9,800 characters, and an out-and-back legitimately reports identical start and finish. It even states the unknown-slug failure mode returns a slug list suggestion.

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?

Front-loading the field enumeration and the page_url decision is good structure, and the out-and-back caveat earns its place. However, the full Returns JSON block duplicates the existing output schema field for field, which is a substantial chunk of text that adds nothing the agent can't already read.

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 three-parameter read tool with full schema coverage and an output schema, nothing needed to call it correctly is absent. The caveats about GPX absence, polyline size, and out-and-back geometry cover the non-obvious cases.

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 the parameter meanings are already fully carried by the schema, and the Args block largely restates them. The one genuine addition is provenance — slug comes from ourpr_list_courses — but the polyline and response_format notes repeat what the schema already says.

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 line names the specific resource and enumerates exactly what it yields — start, finish, bbox, mile markers, and streets in order. That field list makes it unmistakable against siblings like ourpr_get_course_terrain or ourpr_get_course_amenities without needing to name them.

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?

It gives concrete routing for the two ambiguous calls: hand over page_url for a watch since there is no GPX download, and leave include_polyline off unless decoding it. The intent-to-field examples ("What streets does Dallas run down?" -> streets_in_order) further disambiguate. It doesn't say when to prefer this over ourpr_get_course or the terrain tool, so sibling-level routing is left implicit.

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