Skip to main content
Glama
pluton74mac

garmin-mcp-triathlon

by pluton74mac

upload_workouts

Create multiple new Garmin Connect workouts in one call from JSON data to save time when adding a batch of structured sessions.

Instructions

Upload multiple workouts from JSON data in a single call

Creates multiple new workouts in Garmin Connect. Each item in the list uses the same structure as upload_workout.

IMPORTANT: Step types must use Garmin's DTO format:

  • Use "ExecutableStepDTO" for regular steps (warmup, interval, cooldown, recovery)

  • Use "RepeatGroupDTO" for repeat/interval groups with numberOfIterations. Always include endCondition with conditionTypeId 7 and conditionTypeKey "iterations"; omitting conditionTypeId causes the API to silently corrupt the repeat count.

IMPORTANT: For named heart rate zone targets, use "zoneNumber" (1-5), NOT targetValueOne/targetValueTwo. For custom heart-rate ranges, use targetType {"workoutTargetTypeId": 4, "workoutTargetTypeKey": "heart.rate.zone"} with targetValueOne/targetValueTwo. Target values belong on the workout step, alongside targetType, not inside it. For cycling power zone targets (zone-based), use workoutTargetTypeId 2, key "power.zone". For cycling absolute watt range targets, use workoutTargetTypeId 2, key "power.zone", with targetValueOne (low watts) and targetValueTwo (high watts). Target type IDs and keys must match Garmin's canonical mapping.

IMPORTANT: End condition IDs and keys must match Garmin's canonical mapping. Garmin treats conditionTypeId as authoritative, so mismatches are rejected before upload.

Args: workouts: List of workout dictionaries, each containing workout structure (name, sport type, segments, etc.) — same format as upload_workout.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workoutsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does so well: it warns that omitting conditionTypeId silently corrupts the repeat count, that Garmin rejects mismatched mappings before upload, and that conditionTypeId is authoritative. These are non-obvious behavioral traits; it stops short of covering permissions, idempotency, or error semantics.

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?

Purpose is front-loaded and the technical IMPORTANT blocks are dense with actionable detail rather than filler. It is long, and the repeated 'IMPORTANT:' headers plus some redundant zone/end-condition restatements add mild bloat, but the length is justified by Garmin DTO complexity.

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 tricky schema-less payload into a strict external API, the description supplies the structural and error-handling context an agent needs, and the output schema covers return values. It is nearly complete, missing only permission/auth and failure-response specifics.

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 0% and the schema is only an open array of objects, yet the description compensates heavily by enumerating the step DTO types, repeat-group structure, heart-rate and power zone target fields, and end-condition rules. It adds substantial meaning, though the 'same format as upload_workout' reference punts some detail to a sibling.

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?

States a specific verb and resource ('Upload multiple workouts', 'Creates multiple new workouts in Garmin Connect') and distinguishes itself from the singular sibling by emphasizing 'multiple ... in a single call'. An agent can tell it apart from upload_workout without opening 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 Guidelines4/5

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

The 'single call' framing and 'Each item in the list uses the same structure as upload_workout' make the batch-vs-single choice clear by implication. However, there is no explicit when-to-use/when-not statement or routing to an alternative beyond the structural reference to upload_workout.

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