Skip to main content
Glama

Create a workout

create_workout
Read-onlyIdempotent

Build a workout and return a link that opens it on the user's iPhone, ready to save into the Fitness app, which sends it to the Watch. Always give the user the markdown link it returns, with the full URL inside. Check list_activities first for what the activity supports.

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": {
      "activity": "<activity>",
      "blocks": "<blocks>"
    },
    "name": "create_workout"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoshown in the Workout app and on the link, e.g. "Norwegian 4×4"; always give one, short enough for the Watch
blocksYes
warmupNo
activityYescall list_activities for what each one supports
cooldownNo
locationNoindoor changes what a sport offers: a stationary bike has no speed or distance
attachFileNoalso return the file itself, for clients that render an attachment. Off by default: a client that cannot render one rejects the whole reply rather than ignoring it, and then nothing comes back at all.

Output Schema

NameRequiredDescriptionDefault
linkYesthe workout itself, as a link; never shorten it
stepsYesdistinct steps, counting a repeated set once
savedToNowhere the file was written, when it was
fileNameYes
markdownYesthe link as markdown, [Open the workout](link): give this to the user, with the link text in their language and the URL unchanged
warningsYes
sizeBytesYes
totalTimeNothe steps that have a time, added up with their repeats, as h:mm:ss or m:ss
totalDistanceNo
stepsWithRepeatsYessteps as performed, every repetition counted

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

The description clarifies the essential behavioral fact the annotations cannot convey: this is a generator, not a persister — it returns a link the user saves themselves, so readOnlyHint/idempotent stay consistent with the "create" name. It also discloses the downstream pipeline (Fitness app → Watch) and the response-handling obligation about the full markdown URL. It says nothing about validation errors or failure modes.

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?

Three tight sentences, front-loaded with the action and its output, then the response-handling rule, then the prerequisite. The aside "which sends it to the Watch" earns its place by explaining why the link must be surfaced verbatim.

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 deeply nested tool with an output schema, the description covers exactly the gaps structured data cannot: how to relay the returned link and where to check supported activities. Schema handles the step/block grammar and attachFile, so nothing an agent needs to call this correctly is missing.

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?

With schema coverage at 57%, the description contributes one genuinely useful parameter hint — the pointer to list_activities for the activity enum. Everything else about blocks, steps, targets and durations is already carried by the unusually rich nested schema descriptions with inline examples, so the prose adds little beyond that.

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?

Uses a specific verb and resource ("Build a workout") and immediately states the concrete output: a link that opens on the iPhone for saving into Fitness. That output-centric framing cleanly distinguishes it from inspect_workout and validate_workout, which consume existing workouts rather than produce one.

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?

Gives an explicit prerequisite ("Check list_activities first for what the activity supports") and a mandatory post-condition ("Always give the user the markdown link it returns, with the full URL inside"). It stops short of naming when to prefer inspect_workout or validate_workout, so alternatives are only implied.

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.