Skip to main content
Glama

Update workout template

update_workout_template
DestructiveIdempotent

Change an existing routine (the exercises the user WILL do): rename it, edit notes, and change its exercises either by REPLACING the whole list (exercises, full list in order) or incrementally: add_exercises (optionally at a 1-based position), remove_exercises (names or ids), edit_exercises (change sets/reps/weight/rest/notes of exercises already in it). Use it to progress a program (e.g. squat 4 x 6 at 105 kg) or swap exercises around an injury. Planned days use templates: to plan a specific lifting day, create or update a template, then plan_workout with it. Confirm the changes with the user first.

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": {
      "template": "<template>"
    },
    "name": "update_workout_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
notesNo
templateYesTemplate name or id (see get_workout_templates)
exercisesNo
add_exercisesNo
edit_exercisesNo
suggest_weightsNoFill omitted weights of new exercises from the user's history (default true)
remove_exercisesNoExercise names (as in the template) or exercise ids to remove
create_missing_exercisesNo

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?

Annotations already flag destructiveHint=true and idempotentHint=true, but the description adds the operationally critical detail that 'exercises' REPLACES the entire ordered list while add/remove/edit are incremental — exactly the information an agent needs to avoid silently wiping a routine. The 'confirm with the user first' instruction adds a confirmation requirement not present in the annotations. It does not state the interaction when 'exercises' and 'add_exercises' are supplied together, nor error behavior.

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 purpose and the replace-vs-incremental distinction before the use cases, with no filler sentences. It is a dense run-on paragraph that leans on parentheticals and caps for structure, which slightly hurts scannability but wastes no words.

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 destructive, 9-parameter mutation with no output schema, the description covers the essential decision points: which mode to use, when to use the tool at all, and the user-confirmation step. The remaining gap is the undefined 'create_missing_exercises' flag and no note on what the tool returns or how partial failures behave.

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 only 33% schema description coverage across 9 parameters, the description compensates well by explaining the mode semantics of 'exercises', 'add_exercises' (with 1-based position), 'remove_exercises' (names or ids) and 'edit_exercises' (sets/reps/weight/rest/notes). However 'create_missing_exercises' is undocumented in both schema and description, and 'suggest_weights'/'create_missing_exercises' interplay is left unexplained.

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 opening sentence names a specific verb and resource ('Change an existing routine') and immediately scopes it to the template layer rather than planned workouts or sessions. It distinguishes the two mutation modes (whole-list replacement via 'exercises' vs incremental add/remove/edit) so an agent can tell it apart from create_workout_template or update_planned_workout without opening a 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?

Gives concrete use cases ('progress a program (e.g. squat 4 x 6 at 105 kg)', 'swap exercises around an injury') and states the workflow relationship with plan_workout ('create or update a template, then plan_workout with it'), plus a procedural rule: 'Confirm the changes with the user first.' It stops short of explicitly naming when NOT to use it (e.g. for a brand-new routine use create_workout_template), so not a full 5.

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