Skip to main content
Glama
garmin-everything-mcp

garmin-everything-mcp

by dlekdns08

get_activity_polyline

Read-only

Returns the encoded gPolyline track for a Garmin activity ID, so you can map or visualize the recorded route.

Instructions

[read-only] Return the encoded track polyline of an activity (gPolyline). Signature: get_activity_polyline(activity_id: int | str) -> dict[str, Any]

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": {
      "activity_id": "<activity_id>"
    },
    "name": "get_activity_polyline"
  }
}

Input Schema

NameRequiredDescriptionDefault
activity_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true and destructiveHint=false, so the '[read-only]' prefix is largely restated structured data. The valuable extra detail is that the result is an encoded gPolyline, implying the payload is a compressed string rather than decoded coordinates. It says nothing about behavior for activities without GPS data or about payload size.

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?

Two short, front-loaded lines with no filler; the polyline purpose is stated first. The 'Signature:' line is partly redundant with the input schema, but it is compact.

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?

A single-parameter read-only tool with no output schema does not need much more; the description still conveys the return shape (a dict containing the encoded polyline). The main omission is that it never explains how to interpret or decode the gPolyline string.

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

Parameters2/5

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

Schema description coverage is 0% for the single required parameter, so the description carries the burden. The signature line adds that activity_id may be int or str, but never says what identifier namespace it belongs to or where to obtain it, and it conflicts mildly with the schema, which declares the field as type string only.

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?

Names a specific verb and resource: returns the encoded track polyline (gPolyline) of an activity. That is narrow enough to distinguish it from siblings like get_activity_map_details or get_activity_details. It stops short of explicitly contrasting with those siblings.

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

Usage Guidelines2/5

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

There is no statement of when to use this tool, when not to, or which sibling to prefer for map/route data. The only implicit cue is that the tool is about polylines, leaving routing between get_activity_polyline and get_activity_map_details to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools