Skip to main content
Glama

Log workout

log_workout

Save strength sets (done or being done) with their exercises. One gym visit = one session: use the SAME name for the whole visit; calling again with the same date + name (or with session_id) appends the new sets (send only the new ones). Weights for two-dumbbell lifts are PER HAND. OPEN WORKOUT: when the user started the workout in the Heza app (get_current_context shows it), pass its session_id and log each set as it is done: the planned sets on their screen fill in as you log. Without session_id or a matching name, today's single open workout is used. Unilateral exercises (split squats, single-leg calf raises, side planks, dead bugs, one-arm rows): pass side='each' when the reps/time are per side, 'left'/'right' for one side. PERCEIVED EFFORT: include per-set rpe (1-10) or rir (reps in reserve) whenever the user says how hard it felt. If they didn't, after logging ask ONE short optional question ('How hard did that feel, RPE or reps left?') and save the answer with update_workout_set; never insist, and don't ask again in the conversation if they skip. Logged today without times, sets are stamped with the current time, so the session spans first to last logged set. When the workout is over, call finish_workout_session (pass the real start and end times when the user gave them: the calorie estimate uses them). Pass exercise names as the user says them (or exercise_id when you have it): each is matched to the library and the user's own exercises, and the result shows what it matched. All exercises are resolved before anything is saved; a name without a confident match saves nothing and returns the closest ones. Look names up with list_exercises only to choose between variations or after a failed match. A matching planned workout that day is marked done and linked (pass planned_workout_id when the user did a planned day: the result then compares planned vs done). To fix logged sets use get_workout_session, then update_workout_set / move_workout_sets / delete_workout_sets.

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": {
      "exercises": "<exercises>"
    },
    "name": "log_workout"
  }
}

Input Schema

NameRequiredDescriptionDefault
rpeNoOverall session RPE
dateNoYYYY-MM-DD, defaults to today
nameNoSession name, e.g. 'Upper A' or 'Push day' (required unless session_id is given or a workout is open in the app today)
notesNo
caloriesNo
templateNoTemplate name or id this session followed
exercisesYes
session_idNoAppend to this existing session (id from get_workout_history / get_workout_session)
started_atNoHH:MM local or ISO datetime
duration_minNo
planned_workout_idNoThe planned day this workout carried out (id from get_week_plan)
create_missing_exercisesNoCreate custom exercises for names with no match (default false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior3/5

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

With annotations already declaring readOnlyHint=false, idempotentHint=false, destructiveHint=false and openWorldHint=false, the description still adds real context: repeat calls with the same date+name APPEND rather than duplicate, all exercises are resolved before anything is saved, and an unmatched name saves nothing and returns candidates. It omits return shape details and any mention of failure modes beyond name matching, so it is strong but not exhaustive.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Nearly every sentence carries operational value, but it is delivered as one dense block with ALL-CAPS section markers, which makes scanning hard for a 12-parameter tool. Purpose is front-loaded, yet the open-workout, RPE and repair guidance run together without separation.

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 complex mutation tool with 12 parameters and no output schema, it covers the critical flows: open workouts, appending, planned-workout linking, RPE capture, and set correction. Gaps remain around secondary parameters (template, calories, duration_min, started_at) and what the response contains beyond the match report and planned-vs-done comparison.

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 67%, so the schema carries much of the load, but the description adds meaning the schema cannot: weights for two-dumbbell lifts are PER HAND, 'side=each' means reps/time are per side for listed unilateral movements, and exercise names are fuzzy-matched against the library plus the user's own exercises. Several parameters (template, calories, notes, duration_min, started_at) are still unexplained in the description.

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?

Opens with a specific verb+resource: 'Save strength sets (done or being done) with their exercises.' It immediately frames the session model ('One gym visit = one session') and distinguishes itself from sibling tools by naming finish_workout_session, update_workout_set, move_workout_sets, delete_workout_sets and get_workout_session.

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

Usage Guidelines5/5

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

Explicit when-to-use routing throughout: pass session_id for an open app workout, otherwise reuse the same name, call finish_workout_session when the workout is over, and use list_exercises 'only to choose between variations or after a failed match.' It also prescribes the repair path (get_workout_session then update/move/delete) and warns against repeatedly asking the RPE question.

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