Skip to main content
Glama

schedule_workout

Creates a structured workout and adds it to the Garmin Connect calendar for a chosen day so it syncs to the watch and guides each step; use preview to review before sending.

Instructions

Create a structured workout and put it on the Garmin Connect calendar for day (YYYY-MM-DD). It syncs to the watch, which then guides each step. Only call after the athlete agreed; use preview=True to show it without sending.

`sport`: running, cycling, strength, cardio, hiit, walking, hiking, yoga,
mobility, swimming or other (use other/cardio for sports Garmin has no workout
type for, e.g. motocross).

`steps` is a list of objects:
- timed/distance step: {"type": "warmup"|"interval"|"recovery"|"rest"|"cooldown",
  one of "minutes" | "seconds" | "km" | "meters" (omit for 'press lap to continue'),
  optional target: "hr_zone" (1-5) | "hr_bpm" [low, high] | "power_zone" |
  "watts" [low, high] | "pace_per_km" ["5:40", "5:20"] | "cadence" [low, high],
  optional "note"}
- repeat: {"type": "repeat", "times": 5, "steps": [...]}
- strength exercise: {"type": "exercise", "name": "Barbell Back Squat",
  "sets": 4, "reps": 8 (or "seconds": 45 for holds), "kg": 60,
  "rest_seconds": 90, "note": "..."}. Names must match Garmin's exercise catalog;
  an unknown name returns the closest matches.

Example (intervals): [{"type":"warmup","minutes":15,"hr_zone":2},
{"type":"repeat","times":5,"steps":[{"type":"interval","minutes":3,"hr_zone":4},
{"type":"recovery","minutes":2,"hr_zone":1}]},{"type":"cooldown","minutes":10}]

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": {
      "day": "<day>",
      "name": "<name>",
      "sport": "<sport>",
      "steps": "<steps>"
    },
    "name": "schedule_workout"
  }
}

Input Schema

NameRequiredDescriptionDefault
dayYes
nameYes
sportYes
stepsYes
previewNo
descriptionNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A4.5/5.0
Behavior5/5

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

Goes well past the annotations: it discloses that the workout is written to the Garmin Connect calendar and syncs to the device, that preview suppresses the write, and that unknown exercise names return closest matches rather than failing silently. That is meaningful side-effect and error-behavior context the readOnlyHint=false / openWorldHint=true annotations do not convey.

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 purpose and safety guidance, then organized into labeled parameter blocks and a concrete interval example. The sport enumeration is a bit of a list dump, but nearly every line carries invocation-relevant detail for a nested `steps` payload.

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 complex nested-parameter mutation, the definition covers the hard part (step grammar) thoroughly, and the output schema handles return values. Remaining gaps are minor: no mention of duplicate-name behavior or what a failed write looks like, though the unknown-exercise-name case is 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?

With 0% schema description coverage, the description carries the burden and largely does: `day` format (YYYY-MM-DD), the `sport` enumeration with a fallback rule for unmapped sports, and an exhaustive grammar for `steps` including repeat blocks, targets, and strength exercises, plus a worked example. Only `name` and `description` are left undocumented, and both are self-explanatory.

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: "Create a structured workout and put it on the Garmin Connect calendar for `day`," plus the downstream effect ("syncs to the watch, which then guides each step"). This is clearly distinguishable from the sibling remove_workout and from planning tools like plan_vs_done.

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?

States an explicit precondition ("Only call after the athlete agreed") and a safe alternative path ("use preview=True to show it without sending"). It does not reference any sibling tool for the related steps of reviewing or comparing a plan, so routing guidance stops short of a full when-to-use map.

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