Skip to main content
Glama

import_activity

Imports a .fit, .gpx or .tcx file as an activity. A duplicate raises GarminConnectionError. Multipart upload to /upload-service/upload/{ext} (extension from filename, must be fit/gpx/tcx) with the load-bearing NK/origin/custom User-Agent headers that make Garmin treat it as an import rather than a device sync; a 409 is re-raised as GarminConnectionError ("Activity already exists (duplicate):...").

Input Schema

NameRequiredDescriptionDefault
contentYesThe file's contents: plain text for .gpx/.tcx, base64 for .fit
encodingNoHow content is encoded. Default utf8; use base64 for .fit
filenameYesFile name ending in .fit, .gpx or .tcx, e.g. morning-run.gpx

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior5/5

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

Annotations only cover the generic safety profile, and the description adds substantial load-bearing behavior: duplicate detection raising `GarminConnectionError`, the 409 being re-raised with the exact message, the multipart endpoint, and the required NK/origin/User-Agent headers that distinguish an import from a device sync.

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 purpose is front-loaded in the first sentence, and every subsequent clause carries real information about errors and headers. It is dense and semicolon-heavy, but not padded or repetitive.

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?

With no output schema and a mutation annotation profile, the description covers failure modes (duplicate, 409) well, which is what an agent most needs. It stops short of describing the successful return payload, though for an import call that is a minor gap.

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 schema already documents `filename`, `content` and `encoding`. The description restates the extension constraint and encoding relationship without adding syntax or format detail the schema lacks, which is the expected baseline.

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?

States a specific verb ('imports') and resource ('activity') plus the accepted file types, which is enough for an agent to grasp the operation. However, it never distinguishes itself from the sibling `upload_activity`, which sounds like the same action, so sibling differentiation is incomplete.

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

Usage Guidelines3/5

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

Usage is implied by the file-import framing, but there is no explicit when-to-use statement and no mention of the overlapping `upload_activity` / `create_manual_activity` alternatives. The duplicate/error notes are consequences, not selection guidance.

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.