Skip to main content
Glama

Download activity file

download_activity_file

Download a Garmin Connect activity as a FIT, GPX, TCX, KML or CSV file and get its saved path and size, so you can import it into another app.

Instructions

Download one activity from Garmin Connect and save it as a file on this machine (fit, gpx, tcx, kml or csv), returning its path and size. Use it when the user wants the file itself, e.g. to import into another app; to read an activity's numbers, laps or streams in the answer use get_activity instead. Prefer fit, the original recording, unless the destination needs another format. The file is named . and replaces an earlier download of the same activity and format; every call fetches it from Garmin again.

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": {
      "id": "<id>"
    },
    "name": "download_activity_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesActivity id from get_activities
formatNofit: original device file; gpx, tcx, kml: track; csv: lapsfit
output_dirNoSubdirectory of the download directory (GARMIN_FIT_DOWNLOAD_DIR or <data dir>/downloads), e.g. "races"; default the download directory itself. Paths outside it are rejected

Output Schema

NameRequiredDescriptionDefault
dataYes
metaYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.6.2
    • removedInput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / properties / format / description
      Added value: +"fit: original device file; gpx, tcx, kml: track; csv: laps"
    • addedInput schema / properties / id / description
      Added value: +"Activity id from get_activities"
  2. First observedv0.6.0

TDQS

A4.6/5.0
Behavior4/5

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

Well beyond the annotations, it discloses overwrite semantics (file is named <id>.<format> and replaces an earlier download of the same activity and format) and the absence of caching ('every call fetches it from Garmin again'), both of which materially affect an agent's decision to re-run it. It also confirms the write-to-disk nature, consistent with readOnlyHint=false and destructiveHint=false since only its own prior download is replaced. It stops short of describing failure behavior when the activity or format is unavailable.

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 action and scope, then routing, then format advice, then file lifecycle. Dense but every clause carries information; the only mild redundancy is restating the return value (path and size) when an output schema 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 network-fetch-and-write tool with an output schema, nothing an agent needs is missing: trigger, anti-trigger, format choice, overwrite behavior, and directory constraints are all covered.

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 schema already documents all three parameters including enum meanings and the output_dir sandbox rule. The description still adds real value by stating a default preference (fit is the original recording) and by documenting the resulting filename pattern, which the schema does not.

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?

Specific verb plus resource: download one activity from Garmin Connect and save it as a local file, with the five supported formats enumerated. It explicitly contrasts itself with get_activity, so an agent can distinguish a file-fetch tool from a data-reading tool without inspecting either 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 a positive trigger ('when the user wants the file itself, e.g. to import into another app') and an explicit negative routing rule ('to read an activity's numbers, laps or streams ... use get_activity instead'). It also advises a default format choice ('prefer fit ... unless the destination needs another format').

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