Skip to main content
Glama

Simple Muscle

Update exercise prescription

update_exercise_sets
Destructive

Adapt the prescription of one exercise in a workout: set count, uniform targets (reps/weight/duration applied to every set), notes, or position. Only the provided fields change. Reducing set count removes trailing sets and their targets; uniform targets overwrite per-set values. For strength exercises, send reps and optionally weight_kg; omit duration_seconds. For cardio or stretching, send duration_seconds; omit reps and weight_kg. An open SimpleMuscle workspace refreshes automatically; do not open additional overview cards. Without an open workspace, call show_workout_overview once after all writes finish.

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": {
      "workout_id": "<workout_id>"
    },
    "name": "update_exercise_sets"
  }
}

Input Schema

NameRequiredDescriptionDefault
repsNoOptional strength target. Set reps on every set; omit for cardio/stretching.
setsNoOptional. Resize the exercise prescription to this many sets.
notesNoCoaching note shown in the app; null clears
plan_idNoPlan entry id from get_workout; required when the exercise appears more than once
positionNoMove the exercise to this 0-based position
weight_kgNoOptional strength target. Set weight in kilograms on every set; omit when unused.
workout_idYesWorkout id from list_workouts
exercise_idNoExercise id to target; must appear exactly once in the workout
duration_secondsNoOptional cardio/stretching target. Set duration in seconds on every set; omit for strength exercises.

Output Schema

NameRequiredDescriptionDefault
nameYes
totalsYes
archivedNo
workoutsYes
exercisesYes
created_atYes
updated_atYes
workout_idYes
generated_atYes
scheduled_dayNo
weight_unit_preferenceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations flag destructiveHint=true, and the description earns that flag by disclosing exactly what is lost: reducing set count removes trailing sets and their targets, and uniform targets overwrite per-set values. It also states the partial-update contract ('Only the provided fields change') and the null-clears behavior for notes, plus UI refresh side effects — all context the annotations cannot carry.

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 action, then destructive consequences, then modality rules, then refresh sequencing — a sensible priority order. The closing two sentences about workspace refresh are slightly verbose but functional rather than redundant.

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 9-parameter destructive mutation with an output schema (so return values need no explanation), the description covers partial-update semantics, overwrite/removal effects, and post-write UI behavior. Remaining gaps are minor: no mention of permission or validation failure modes, and the duplicate-exercise/plan_id disambiguation is left entirely to the schema.

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 100%, so the baseline is 3, but the description adds real semantic meaning: targets are applied uniformly to every set rather than per-set, which fields to pair for strength vs cardio, and that omitted fields are preserved. That resolves the main ambiguity an agent would have when choosing which of the nine parameters to send.

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 ('Adapt the prescription of one exercise in a workout') and enumerates the mutable surface: set count, uniform targets, notes, position. This is clearly distinguishable from siblings like update_workout (whole workout) or add_exercise_to_workout (adding), so an agent can select it 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?

Gives concrete when-to-do-what rules: strength exercises send reps/optional weight_kg and omit duration_seconds; cardio/stretching send duration_seconds and omit reps/weight_kg. It also prescribes the follow-up sequence (no extra overview cards; call show_workout_overview once after writes if no workspace is open). It stops short of naming sibling alternatives such as update_workout or update_workout_proposal as the route for other edits.

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