Skip to main content
Glama

Create a workout

create_workout

Save structured workouts to Garmin Connect from presets, custom step definitions, or existing Garmin JSON; preview steps and estimated duration with dry_run before saving.

Instructions

Save a new structured workout to Garmin Connect (then use schedule_workouts to put it on the calendar so it syncs to the watch). Pass exactly one of: preset for a standard session from a few parameters (run_intervals, walk_run, easy_z2, strength_circuit); definition for anything else (typed steps with duration and target, nestable repeats); garmin_json only to copy an existing Garmin workout JSON. Errors name the bad field, e.g. steps[2].steps[0].target. Call with dry_run: true first, show the steps to the user and save only after they agree. dry_run saves nothing and does not contact Garmin: it returns the readable steps and the estimated duration.

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": "create_workout"
  }
}

Input Schema

NameRequiredDescriptionDefault
presetNoReady-made workout filled in from a few parameters. Example: {"name":"run_intervals","params":{"repeats":6,"work_meters":400,"work_target":{"type":"pace","min_per_km_fast":"3:50","min_per_km_slow":"4:05"},"recovery_seconds":90}}
dry_runNotrue: preview only, nothing is saved
definitionNoTyped workout. Example: {"name":"6x400m","sport":"running","steps":[{"kind":"warmup","duration":{"type":"time","seconds":600}},{"kind":"repeat","count":6,"steps":[{"kind":"interval","duration":{"type":"distance","meters":400},"target":{"type":"pace","min_per_km_fast":"3:50","min_per_km_slow":"4:05"}},{"kind":"recovery","duration":{"type":"time","seconds":90}}]},{"kind":"cooldown","duration":{"type":"lap_button"}}]}
garmin_jsonNoRaw Garmin workout JSON with workoutName, sportType and workoutSegments

Output Schema

NameRequiredDescriptionDefault
dataYes
metaYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.6.2
    • removedInput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
    • changedInput schema / properties / dry_run / description
      Previous value: -"true: only show the steps and estimated duration, save nothing"New value: +"true: preview only, nothing is saved"
  2. First observedv0.6.0

TDQS

A4.7/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, openWorldHint=true, destructiveHint=false), the description discloses that this writes to an external service, that dry_run neither saves nor contacts Garmin and returns readable steps plus estimated duration, and that validation errors name the offending field path. It does not say whether repeated calls create duplicates or whether existing workouts can be overwritten, which is the main remaining behavioral gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One dense but well-ordered block: what it does, what to do next, how to choose the input mode, how errors look, and the safe-call protocol. The parenthetical follow-up hint and the dry_run explanation are front-loaded where an agent will read them, and no sentence is filler.

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, deeply nested mutation tool this covers the essentials: input-mode selection, the preview-then-save safety protocol, error surface, and external-system impact. An output schema exists, so the description does not need to enumerate return values, and it still usefully describes what dry_run returns.

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 baseline is 3, but the description adds genuinely new constraints: the top-level schema has no oneOf enforcing it, yet the description requires exactly one of preset/definition/garmin_json, and it scopes garmin_json to copying existing Garmin JSON. The dry_run semantics (preview only, no Garmin contact) also add meaning beyond the boolean's schema text.

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 ("Save a new structured workout to Garmin Connect") and immediately disambiguates from the nearest sibling by explaining that schedule_workouts is what puts it on the calendar. An agent can distinguish create_workout from schedule_workouts, get_workout and list_workouts without opening any 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 an explicit routing rule among the three input modes (preset for standard sessions, definition for anything else, garmin_json only to copy existing JSON) plus a mandatory workflow: call with dry_run: true, show steps to the user, save only after agreement. It also names the follow-up tool and the condition for using it.

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