Skip to main content
Glama

create_workout

Create a structured workout and deliver it to the user's Apple Watch. Provide a singleGoalWorkout (a single time, distance, energy or open goal) or a customWorkout (interval blocks with optional warmup/cooldown) — the same shape Workouter's own generator produces. If the user has no Apple Watch registered, this returns a link they can open on their phone to send the workout over instead, plus the same link as a QR code they can scan with their phone; that needs the Workouter iOS app installed, and email_workout_link can send the same link to the account's email. When the workout is pushed to a registered Apple Watch, the same kind of link is returned in case the push doesn't arrive. Enabled linked Garmin installations use the saved preferred destination (or the single registered watch); multiple destinations need selection. Garmin queue/download status never confirms native import.

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": {
      "workoutType": "<workoutType>",
      "activityType": "<activityType>",
      "location": "<location>",
      "displayName": "<displayName>",
      "swimmingLocation": "<swimmingLocation>"
    },
    "name": "create_workout"
  }
}

Input Schema

NameRequiredDescriptionDefault
goalNosingleGoalWorkout only, and required there. Time, distance, distanceAndDuration, energy, or open goal. For type "time": include targetDuration (seconds) and unit "seconds". For type "distance": include targetValue and a distance unit. For type "distanceAndDuration" (pool swim send-off sets, e.g. "4 x 100 @ 1:45"): include targetDistance, distanceUnit, and targetDuration (seconds) — WorkoutKit waits out the remaining time if the swimmer finishes the distance early, which is what produces send-off pacing. Only valid for swimming. For type "energy" (singleGoalWorkout only; Apple Watch rejects energy on interval, warmup and cooldown steps): include targetValue (active kilocalories) and unit "kilocalories"; the workout ends once that much is burned. For type "open": no other fields; the step has no target and the athlete ends it on the watch (e.g. "stretch, press lap when done").
blocksNocustomWorkout only, and required there. Interval blocks, each repeated `iterations` times.
warmupNocustomWorkout only, optional.
cooldownNocustomWorkout only, optional.
locationYes
displayNameYesFriendly display name for the workout
workoutTypeYes"singleGoalWorkout" for one goal: time, distance, energy or open (set goal). "customWorkout" for intervals (set blocks, plus optional warmup and cooldown).
activityTypeYesActivity type in camelCase. Measured goal support: time and open goals for every measured activity, and energy goals in a singleGoalWorkout; distance goals for running, cycling, swimming, walking, hiking and outdoor rowing, but not indoor rowing, elliptical, other (a generic workout) or the 4 gym types (functionalStrengthTraining, traditionalStrengthTraining, highIntensityIntervalTraining, crossTraining); distanceAndDuration for swimming only. Other activities are checked by Apple Watch when the workout is created. There are no reps, sets, rounds or load for any activity.
swimmingLocationYesRequired as pool or openWater for swimming; empty for other activities

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only declare readOnly=false, idempotent=false, destructive=false; the description goes much further by disclosing the no-watch fallback (link plus scannable QR, requires the iOS app), that a link is also returned when a push succeeds in case delivery fails, and that Garmin queue/download status never confirms native import. These are exactly the operational caveats an agent needs before claiming success.

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?

Four sentences, each carrying a distinct fact: creation, shape choice, no-watch fallback, push-fallback and Garmin caveat. It is dense but front-loaded on the primary action; the QR/link sentence is slightly overloaded by combining three sub-facts.

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, the description does the necessary work of describing what comes back (link, QR, push) across each delivery path. For a mutation tool with nine params and nested objects it covers outcomes and failure modes well, though it does not describe the full response payload shape or error behavior for invalid parameter combinations.

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 89%, so per-field meaning (goal types, activityType measured-goal support, swimmingLocation) is already carried by the schema. The description only adds the high-level mapping of workoutType to the two shapes and a claim that it matches Workouter's own generator shape, which is vague rather than actionable. Baseline 3 is appropriate.

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 ("Create a structured workout") plus the delivery target ("deliver it to the user's Apple Watch"), and immediately splits the two supported shapes: singleGoalWorkout vs customWorkout. An agent can tell what this tool produces without opening the 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?

Explains which shape to choose (single goal vs interval blocks with optional warmup/cooldown) and routes the agent to email_workout_link when the user wants the link by email. It does not explicitly state when not to use this tool (e.g. vs get_workout_options or send_workout_to_garmin for already-created workouts), leaving some inference to the agent.

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.

Resources