Skip to main content
Glama

Archive workouts to local files (writes nothing at Suunto)

archive_workouts

Copies the user's workouts to local files so the history does not depend on how far back Suunto's list reaches: per workout .fit (the FIT file as Suunto sent it) and .json (the workout's summary from the list with…

Instructions

Copies the user's workouts to local files so the history does not depend on how far back Suunto's list reaches: per workout .fit (the FIT file as Suunto sent it) and .json (the workout's summary from the list with its summary and intensity extensions, the FIT's size and SHA-256) in ~/.suunto-mcp/archive/ (SUUNTO_ARCHIVE_DIR moves it; files are 0600 and a folder the tool creates is 0700, an existing folder keeps its mode; each file is written complete under a temporary name and linked into place, which fails if the name exists, so not even another process can overwrite one: the folder's filesystem must support hard links). Incremental: a workout whose record exists is skipped, at most limit FIT files are downloaded per call (1-20, default 20, newest workouts first), and the result's remaining says how many are still missing: CALL AGAIN until remaining is 0, unless a note says it will not help (failed downloads are listed in errors and tried after the others next time). Each FIT file is checked before its record is written (non-empty, a FIT header, not shorter than the header says; the CRC is not checked); a bad download writes nothing and is reported. Only NEW files are written: nothing at Suunto is changed, and nothing is ever deleted or overwritten; a record that is damaged, of another version, filed under another key or whose FIT is missing or has another size is reported in refused and left as it is (the user fixes or moves it), and a FIT file already there that differs blocks that workout with an error. The record file is written last and is the mark 'archived', so an interrupted call is completed by the next one. Reads the newest 1000 workouts from the list per call (50 per request): older ones are not reachable. Output: { dir, listed, alreadyArchived, newlyArchived, archived, remaining, refused: [{ workoutKey, problem }], errors: [{ workoutKey, error }], notes }. estimate_route_time reads the archived FIT files; get_exercise_history, get_training_load and the other tools do NOT read the archive. Annotated not read-only (it writes local files), not destructive, NOT idempotent (each call archives the next batch) and open-world (it contacts Suunto). In demo mode the archive lives in memory.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "archive_workouts"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMost FIT files to download in this call (default and maximum 20).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.0

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations, which already declare the write/open-world/non-idempotent profile. It discloses the exact write mechanics (temp name plus hard link, failure if the name exists, hard-link filesystem requirement), file modes 0600/0700 and the existing-folder behavior, the never-delete/never-overwrite guarantee, the refused/errors bookkeeping, the crash-recovery mark written last, and the demo-mode in-memory variant. An agent knows precisely what side effects to expect and what can go wrong.

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?

Purpose is front-loaded and nearly every clause carries information, but the body is one enormous run-on sentence with deeply nested parentheses covering permissions, atomicity, validation, and refusal handling. An agent must parse a lot of interleaved detail to extract the actionable loop, which could be separated into short labeled statements.

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 complex, stateful, filesystem-touching tool with no output schema, the description supplies the full return shape (dir, listed, alreadyArchived, newlyArchived, archived, remaining, refused, errors, notes) and the hard limit of 1000 listed workouts. Nothing an agent needs in order to call it correctly and interpret the result is missing.

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% and the single parameter is already documented, so the baseline is 3. The description still adds meaning the schema lacks: newest workouts are taken first and the cap is a per-call download budget tied to the returned `remaining`, which tells the agent how to size successive calls.

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?

Opens with a specific verb and resource — copying the user's workouts to local files — and immediately scopes the intent ('so the history does not depend on how far back Suunto's list reaches'), reinforced by the title's 'writes nothing at Suunto'. It is clearly distinguishable from get_workout_fit, list_workouts and get_archive_status, which are reads of remote or status data rather than a local archival writer.

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?

Gives an explicit operating loop: 'CALL AGAIN until remaining is 0, unless a note says it will not help', plus the incremental skip rule and the failure retry ordering. It also tells the agent which siblings consume the archive (estimate_route_time reads it; get_exercise_history, get_training_load do not), which is real routing guidance. It does not name an alternative for checking progress, but that is a minor gap.

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