Skip to main content
Glama
JJRPF

Garmin MCP Server

by JJRPF

get_activity_fit_data

Parses a Garmin FIT file for advanced cycling metrics—Di2 shifts, cycling dynamics, climb VAM, power duration curve—beyond standard API data.

Instructions

Download and parse FIT file for an activity to expose advanced cycling data.

Returns data not available through the standard REST API, including:

  • DI2 / electronic shifting events with cadence at time of shift, grade at shift, gear combinations, shift quality classification, and terrain-grouped shift analysis

  • Cycling dynamics per session and lap: platform center offset (PCO), left/right power balance, torque effectiveness, pedal smoothness

  • Variability Index (NP / avg_power) per session and lap

  • Climb detection with VAM (vertical ascent rate), avg power/cadence/HR per climb, and W/kg per climb (using auto-fetched body weight from Garmin)

  • Grade-correlated stats: avg power, cadence, HR broken down by terrain steepness

  • HR drift / cardiac drift coefficient (aerobic decoupling for rides ≥60 min)

  • Temperature correlation: avg HR/power in hottest vs. coolest portions of ride

  • Power Duration Curve: best mean maximal power at 5s, 30s, 1min, 5min, 10min, 20min, 60min

  • Optional full per-second time series when include_records=True

Shift quality:

  • proactive: shifted at 70-100 rpm (ideal cadence range)

  • reactive: shifted below 70 rpm (already grinding before shifting)

  • coasting: shifted at 0 rpm (mid-stop or freewheeling)

  • spun_out: shifted above 100 rpm (waited too long in easy gear)

Note: DI2 data requires Shimano Di2 / SRAM eTap. Cycling dynamics require a compatible power meter (e.g., Garmin Rally, Favero Assioma, PowerTap P1 pedals).

Args: activity_id: Garmin activity ID include_records: Include full per-second time series (default False). Warning: adds significant data volume for long rides.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
activity_idYes
include_recordsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

No annotations are provided, so the description carries the full behavioral disclosure burden. It clearly states that the tool downloads and parses a FIT file, exposes parsed metrics, auto-fetches body weight from Garmin, and may return very large payloads when include_records is true. It also discloses hardware compatibility constraints and defines shift-quality classifications, preventing misinterpretation of returned values.

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?

The description is long but front-loaded with a clear purpose and every bullet identifies a distinct data category. The shift-quality definitions and compatibility notes are useful rather than filler. Minor redundancy exists: the 'full per-second time series' behavior appears both in the bulleted returns list and again in Args, so a small amount of trimming was possible.

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?

For a complex, annotation-free tool, this description is nearly complete: it covers purpose, return categories, parameter meanings, prerequisites, and a payload warning. It does not mention whether the downloaded FIT file is stored locally or whether set_fit_download_dir must be configured first, and it implies a cycling activity without explicitly saying so. These are minor gaps given the output schema exists and sibling tools hint at download-directory behavior.

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 description coverage is 0%, so the Args section is essential. It explains activity_id as 'Garmin activity ID' and include_records as an optional per-second time series with a clear volume warning, adding meaning beyond the bare schema. It could go slightly further by describing acceptable ID forms, but it sufficiently compensates for the missing schema descriptions.

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 uses a specific verb and resource: 'Download and parse FIT file for an activity to expose advanced cycling data.' It then clearly distinguishes the tool from the standard REST API by enumerating the advanced metrics returned. This makes its purpose and differentiation from siblings like get_activity or download_activity_file immediately clear.

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?

The description explicitly frames the tool as the way to obtain data 'not available through the standard REST API' and provides hardware prerequisites for DI2 and cycling dynamics data. It also gives practical guidance on the include_records flag by warning about data volume. However, it does not name sibling alternatives or state when NOT to use this tool, such as when only a raw FIT file is needed.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/JJRPF/garmin_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server