Skip to main content
Glama

Simple Muscle

Add exercise to workout

add_exercise_to_workout

Add a catalog exercise to an existing workout.

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

Input Schema

NameRequiredDescriptionDefault
repsNoOptional override for strength exercises. Omit to use the exercise default reps.
setsNoOptional override. Omit to use the exercise default set count.
notesNoOptional coaching or effort guidance for this exercise.
positionNo0-based position in the exercise list; omitted → appended at the end
weight_kgNoOptional override in kilograms. Omit to use the exercise default weight.
workout_idYesWorkout id from list_workouts
exercise_idYesCatalog exercise id, e.g. "barbell-bench-press"
duration_secondsNoOptional override for cardio/stretching in seconds. Omit to use the exercise default duration.

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

C2.9/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and openWorldHint=false, so the mutation/safety profile is covered structurally. The description adds only the mild precondition that the workout must exist and the exercise must come from the catalog; it says nothing about duplicate handling, ordering/append behavior, or what happens with invalid exercise ids — all relevant for an add operation.

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?

A single front-loaded sentence with no filler or redundancy. It is efficient, though its brevity is partly the cause of the missing usage guidance rather than a deliberate trade-off.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists and the input schema is fully documented, so the agent does not need the description to explain return values or parameter formats. However, for an 8-parameter mutation tool with several competing workout-editing siblings, one sentence leaves the routing decision and edge-case behavior underspecified.

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 100% and the schema already explains every override (reps, sets, weight_kg, duration_seconds, position, notes) with defaults and bounds. The description contributes no additional parameter meaning, so the baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb ("Add") and names both the resource being added ("a catalog exercise") and its destination ("an existing workout"). This makes it clearly distinguishable from remove_exercise_from_workout and create_workout, though it does not explicitly name those siblings as contrasts.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to use this versus alternatives such as apply_workout_proposal, update_exercise_sets, or propose_workout_edit, which are plausible routes for modifying a workout. The only implicit constraint is that the workout must already exist.

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