Skip to main content
Glama

Change workout

update_workout
Destructive

Change a saved workout; only what you pass changes. Mark a planned workout as done with state logged rather than creating it again: without exercises every planned set is saved as done as planned, and with exercises you say what was really done. exercises replaces the whole list, so pass every exercise the workout should keep, each with the key it was returned with, including those that did not change; an exercise without a key is new, and one left out is removed. A planned set the person skipped stays in a logged workout with done false, and reads as skipped, never failed. note null clears the note. Confirm the change only after success.

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": {
      "id": "<id>"
    },
    "name": "update_workout"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe id of the workout to change, as list_workouts or create_workout returned it
noteNoA new note; null clears it
placeNoWhere it is done: a place id from list_places; null clears it
stateNologged for a workout done; planned only for a plan the person asked to save
titleNoWhat the session is called, such as Push day or Legs
endsAtNoWhen it ended, with its UTC offset, so its duration reads; leave out when not known, and for a plan
startsAtNoWhen it started, or for a plan when it will, with its UTC offset
timezoneNo
exercisesNoReplaces every exercise in the workout: pass all it should keep, each with its key, changed or not
supersetsNoNames and rests for supersets; one an exercise points at without listing it here is made with neither

Output Schema

NameRequiredDescriptionDefault
idYes
dayYes
noteYes
timeYes
stateYes
titleYes
endsAtYes
sourceYes
startsAtYes
timezoneYes
exercisesYes
supersetsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / exercises / items / properties / alternatives
      Added value: +{
      +  "description": "Up to five exercise ids the person could do instead, such as when a machine is taken, best first; get_exercise_relations suggests them for a place",
      +  "items": {
      +    "maxLength": 100,
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  "maxItems": 5,
      +  "minItems": 1,
      +  "type": "array"
      +}
    • addedInput schema / properties / place
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maxLength": 100,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Where it is done: a place id from list_places; null clears it"
      +}
  2. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations declare destructiveHint=true, and the description earns that by disclosing exactly what gets destroyed: exercises replaces the whole list, items left out are removed, and an exercise without a key is treated as new. It also adds semantics annotations cannot carry — skipped sets persist with done=false and "read as skipped, never failed" — plus the 'confirm only after success' protocol.

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 the core contract, then the highest-risk rule (full replacement) before edge cases. Dense but nearly every clause carries operational meaning; the state/logged and skipped-set sentences run long and could be tightened without losing content.

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 10-parameter destructive mutation with a 90%-covered schema and an output schema, the definition covers what structured fields cannot: replacement semantics, planned-to-logged conversion, null-clearing, and the success-confirmation expectation. Nothing an agent needs in order to call it safely is missing.

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 90%, so the schema already documents most fields; the description still adds real meaning the schema does not, notably the partial-update rule, null-clears-note behavior, and the key-based reconciliation for exercises. It does not respecify types or formats, which is appropriate when the schema covers them.

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?

The description opens with a specific verb and resource ("Change a saved workout") and immediately states the partial-update contract ("only what you pass changes"), which distinguishes it from create_workout and delete_workout without ambiguity. An agent can tell exactly what the tool mutates.

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?

It gives concrete when-to-use guidance for the trickiest path: mark a planned workout as done with state=logged "rather than creating it again," and explains the two sub-cases (with/without exercises). It stops short of naming sibling tools such as create_workout or delete_workout as explicit alternatives, but the exclusion is implied clearly.

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