Skip to main content
Glama
Wellness Project MCP

Wellness Project MCP

log_workout

Destructive

Log completed workouts with exercises, sets, reps, weights, or activity details like walking, cycling, and yoga; create reusable workout prescriptions when needed.

Instructions

UNIT INPUTS: value: pass the user's number unconverted; tool converts once before storage. alternate_unit: set the field's matching input_* companion; canonical_unit: omit companion. precedence: overrides instructions to convert manually.

COMPLETED WORKOUTS, ANY ACTIVITY:

  • With actual exercises/sets, provide them as usual. Session totals and activity metrics can accompany real sets in the SAME log_workout call.

  • With only an activity description (walking, yoga, swimming, a kettlebell circuit, strength, HIIT, cycling, etc.), give focus_type and reported session details; OMIT exercises or pass []. A session does not require fake exercises or sets. Never invent exercises, reps, weights, splits, heart rates or calories.

  • Use notes for reported context, including uncertain durations (e.g. "15-20 minutes, light intensity"). Leave unknown numeric fields unset rather than converting a range into false precision. Mark estimated=true ONLY when numeric values really are estimates; it is not implied by having zero sets.

  • Walking: focus_type "Walking"; cycling/biking: "Cycling"; rowing/RowErg: "Rowing". Other activity names remain as stated. log_run remains the richer dedicated route for completed runs with known distance+duration, running splits or planned runs. Never send a walk, ride or row to log_run.

  • distance_mi/distance_km/distance_meters are alternatives; send the unit the user provided. The server converts, never convert it yourself. duration_sec is total workout/moving seconds, not a set or a repetition. Use reported HR, power, cadence, elevation, actual laps/segments only when known.

undefined undefined Log a complete workout session: exercises, sets, reps, weights, and session metadata. Use when the user describes finishing a workout, lists exercises performed, or asks to log training. For reusable templates, see SAVED WORKOUT MODE.

EXERCISE NAMES:

  • Reuse known canonical names; otherwise call list_exercises and match each exercise to the closest canonical name. Matched a catalog exercise → pass its canonical name and its [id] as exercise_id. No reasonable match → use the name as stated, no exercise_id. Don't ask before logging, match silently and log.

  • "Chest press" (machine) and "bench press" (barbell) are DISTINCT — pass the user's term through so the resolver's aliases pin the right one.

  • name is ONLY the exercise name, never reps/weights/sets — those go in the sets array.

  • LITERAL NAME: literal_name:true only after an explicit user request or rejected match, never a routine correction. Known catalog names/aliases retain IDs; unmatched names are unscored. Use for "call it exactly X", "not the standard one", "literally X", or a rejected match.

  • The result says when a name was matched to something other than what the user said. Relay it in your own words rather than repeating the line verbatim. If a name matches nothing closely enough, the result names near-miss library exercises; ask the user which they meant rather than accept the unscored custom log silently.

  • EQUIPMENT (load basis): dumbbell_pair is one dumbbell in EACH hand, weight_lb PER HAND (2x for NSI); dumbbell_single is one implement total. Laterality (single-leg/arm) does NOT decide this alone. Set it when the user describes the load (each hand, machine, band); a wrong or missing tag silently halves or doubles NSI. Values: barbell, dumbbell_pair, dumbbell_single, machine, kettlebell, bodyweight, band, cable, trx, other.

SETS:

  • "3 sets of 15 reps" → 3 set objects with reps: 15. "15/12/10" → 3 sets with reps 15, 12, 10.

  • Pure isometric holds (planks, dead hangs, wall sits) have no reps: "30 second plank" = { hold_length_sec: 30 }.

  • Tempo/pause work combines reps + weight_lb + hold_length_sec (seconds per rep) on the same set, never in notes.

  • Loaded carries (farmers carry, sled push, weighted plank) are one set per trip: hold_length_sec + weight_lb, omit reps unless a trip count is given. weight_lb is PER HAND for a two-implement carry, TOTAL for one implement. Circuit stations (run/ride/swim/row/walk) instead use distance_meters and/or duration_sec PER ROUND on their set, not reps or hold seconds.

INFER — do not ask:

  • date: today, or from context

  • focus_type: from the exercises (bench/shoulders/triceps=Push, rows/pulldowns/curls=Pull, squats/deadlifts/lunges=Legs, mixed upper=Upper, everything=Full Body)

  • superset_group: same integer for exercises done back-to-back or as a superset

  • slot_type: 'warmup' for prep at the start, 'finisher' for burnout/cardio at the end, 'working' (default) otherwise

RPE (Rate of Perceived Exertion) — 1-10 scale, half steps allowed (7.5, 8.5):

  • Session-level RPE: overall session difficulty. Infer from user comments like "brutal session" (8-9) or "easy day" (3-4). Optional.

  • Per-set RPE: how hard each individual set felt. Include only if the user explicitly mentions per-set effort or failure. Optional.

  • Scale: 1=minimal effort, 5=moderate, 7=hard, 8=few reps left, 9=one rep left, 10=maximal/failure.

optional_metadata: infer location/focus_type when supported, else omit; heart_points: reported values only. Missing external load: follow LIVE LOADS.

RETURNS the new session's ID (as "[ID NN]"). Pass it to update_workout / delete_workout / get_workout for follow-ups in this conversation.

LIVE LOADS: for user-driven completed-workout logging, obvious bodyweight movements may omit load and are inferred as bodyweight. If a performed set normally uses external resistance, include that set's load. If the user did not provide it, ask one batched clarification before calling this tool. Only set load_unknown=true on a missing set when the user explicitly says they do not know, do not remember, or want to save without that load. Preserve partial known loads positionally; never copy one set's load to another or treat a missing external load as bodyweight.

SAVED WORKOUT MODE: in-app chat uses propose_workout for new workout plans, whether requested to save or start; discover it if needed. External clients without cards: set save_as_saved_workout=true and pass the full prescription through this same tool. In saved mode the workout is NOT logged as completed history, and LIVE LOADS does not apply: prescribed weight may be omitted. To replace an existing Saved Workout, also pass saved_workout_id; the supplied prescription fully replaces its prior prescribed sets/reps/weights. Use saved_workout_title when the reusable name should differ from focus_type.

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

Input Schema

NameRequiredDescriptionDefault
rpeNoSession RPE, 1-10, half steps allowed: 5 moderate, 7 hard, 9 one rep left, 10 failure. Infer from comments about overall difficulty, or omit.
dateYesYYYY-MM-DD. Default to today.
notesNoSession notes: how it went, PRs hit, how they felt.
avg_hrNoReported average heart rate (bpm).
max_hrNoReported maximum heart rate (bpm).
splitsNoActually reported laps/splits, same structure as the in-app run logger; never invent.
caloriesNoReported session calories; never invent.
locationNoGym, Home, Outdoor. Infer from context, else omit.
segmentsNoActually performed intervals/blocks, same structure as the in-app run logger; never invent.
estimatedNoTrue only when a saved numeric value is an AI approximation; describe its source/range in notes.
exercisesNoOnly the actual exercises/sets provided by the user. For a session-level log, omit or use [].
intensityNoQualitative effort as reported (does not manufacture an RPE).
focus_typeNoSpecific completed activity (Walking, Cycling, Yoga, Kettlebell Circuit, Full Body, etc.). Infer from user wording; omit only if notes describe the activity.
start_timeNoLocal HH:MM when explicitly supplied; otherwise omit.
avg_power_wNoReported average power in watts (e.g. cycling).
distance_kmNoSession distance in kilometers. Server converts to miles.
distance_miNoSession distance in miles, when supplied in miles. In mi, or km with input_distance_unit set. See UNIT INPUTS.
elapsed_secNoElapsed seconds including pauses; omit if unknown.
max_power_wNoReported peak power in watts.
duration_secNoTotal workout or moving time in seconds. Convert user-stated minutes to seconds; not a set duration.
avg_cadence_rpmNoReported cycling/rowing cadence, revs/min.
avg_cadence_spmNoReported running/walking cadence, steps/min.
distance_metersNoSession distance in meters. Server converts to miles.
elevation_gain_mNoReported elevation gain in meters.
saved_workout_idNoExisting Saved Workout ID to replace in saved mode. Omit to create a new Saved Workout.
heart_points_peakNoPeak-intensity heart points, if mentioned.
avg_pace_sec_per_miNoReported average seconds per mile. Never invent a pace. In mi, or km with input_distance_unit set. See UNIT INPUTS.
input_distance_unitNoSet to km when the user gave km for the _mi fields in this object. Omit when they are already mi.
saved_workout_titleNoOptional reusable workout name in saved mode. Defaults to focus_type.
heart_points_moderateNoModerate-intensity heart points, Google Fit or equivalent, if mentioned.
save_as_saved_workoutNoTrue when this payload is a reusable Saved Workout prescription, not a completed workout. Defaults to false.

Output Schema

NameRequiredDescriptionDefault
resultYesHuman-readable result text returned by the tool.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed35 schema fields changedv1.3.0
    • addedInput schema / properties / avg_cadence_rpm
      Added value: +{
      +  "description": "Reported cycling/rowing cadence, revs/min.",
      +  "maximum": 300,
      +  "minimum": 1,
      +  "type": "number"
      +}
    • addedInput schema / properties / avg_cadence_spm
      Added value: +{
      +  "description": "Reported running/walking cadence, steps/min.",
      +  "maximum": 400,
      +  "minimum": 1,
      +  "type": "number"
      +}
    • addedInput schema / properties / avg_hr
      Added value: +{
      +  "description": "Reported average heart rate (bpm).",
      +  "maximum": 260,
      +  "minimum": 20,
      +  "type": "integer"
      +}
    • addedInput schema / properties / avg_pace_sec_per_mi
      Added value: +{
      +  "description": "Reported average seconds per mile. Never invent a pace. In mi, or km with input_distance_unit set. See UNIT INPUTS.",
      +  "maximum": 7200,
      +  "minimum": 1,
      +  "type": "number"
      +}
    • addedInput schema / properties / avg_power_w
      Added value: +{
      +  "description": "Reported average power in watts (e.g. cycling).",
      +  "maximum": 5000,
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / calories
      Added value: +{
      +  "description": "Reported session calories; never invent.",
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / distance_km
      Added value: +{
      +  "description": "Session distance in kilometers. Server converts to miles.",
      +  "maximum": null,
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / distance_meters
      Added value: +{
      +  "description": "Session distance in meters. Server converts to miles.",
      +  "maximum": null,
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / distance_mi
      Added value: +{
      +  "description": "Session distance in miles, when supplied in miles. In mi, or km with input_distance_unit set. See UNIT INPUTS.",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / duration_sec
      Added value: +{
      +  "description": "Total workout or moving time in seconds. Convert user-stated minutes to seconds; not a set duration.",
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / elapsed_sec
      Added value: +{
      +  "description": "Elapsed seconds including pauses; omit if unknown.",
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / elevation_gain_m
      Added value: +{
      +  "description": "Reported elevation gain in meters.",
      +  "maximum": 100000,
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / estimated
      Added value: +{
      +  "description": "True only when a saved numeric value is an AI approximation; describe its source/range in notes.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / exercises / description
      Previous value: -"Every exercise performed, in order."New value: +"Only the actual exercises/sets provided by the user. For a session-level log, omit or use []."
    • addedInput schema / properties / exercises / items / properties / exercise_id
      Added value: +{
      +  "description": "The [id] list_exercises shows for the matched name. See EXERCISE NAMES above.",
      +  "type": "integer"
      +}
    • changedInput schema / properties / exercises / items / properties / literal_name / description
      Previous value: -"Keep exactly as given, skipping the library match. See LITERAL NAME above. Default false."New value: +"Explicit override only; default false. See LITERAL NAME."
    • addedInput schema / properties / exercises / items / properties / sets / items / properties / distance_meters
      Added value: +{
      +  "description": "Distance in meters for this circuit station/round; not total session distance.",
      +  "type": "number"
      +}
    • addedInput schema / properties / exercises / items / properties / sets / items / properties / duration_sec
      Added value: +{
      +  "description": "Elapsed seconds for this circuit station/round, not total workout duration or an isometric hold.",
      +  "type": "integer"
      +}
    • changedInput schema / properties / exercises / items / properties / sets / items / properties / is_bodyweight / description
      Previous value: -"True if no external weight. Infer for pull-ups, push-ups, dips."New value: +"True only when genuinely bodyweight. Omit when external load is unknown; existing equipment inference handles obvious bodyweight movements."
    • addedInput schema / properties / exercises / items / properties / sets / items / properties / load_unknown
      Added value: +{
      +  "description": "True only when the user explicitly says this set load is unknown, not remembered, or should be saved without it. Never infer this or use it to replace a known load.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / exercises / items / properties / sets / items / properties / rpe / maximum
      Added value: +10
    • addedInput schema / properties / exercises / items / properties / sets / items / properties / rpe / minimum
      Added value: +1
    • changedInput schema / properties / exercises / items / properties / sets / items / properties / weight_lb / description
      Previous value: -"Load. For a band, the band label weight (e.g. 80 for an 80lb band). Omit for bodyweight. In lb, or kg with input_weight_unit set. See UNIT INPUTS."New value: +"Load. For a band, the band label weight (e.g. 80 for an 80lb band). Omit when unknown or bodyweight; never invent it. In lb, or kg with input_weight_unit set. See UNIT INPUTS."
    • changedInput schema / properties / focus_type / description
      Previous value: -"Infer from the exercises: Push, Pull, Legs, Upper, Lower, Full Body, Cardio, Mobility. Ask only if genuinely unclear."New value: +"Specific completed activity (Walking, Cycling, Yoga, Kettlebell Circuit, Full Body, etc.). Infer from user wording; omit only if notes describe the activity."
    • addedInput schema / properties / input_distance_unit
      Added value: +{
      +  "description": "Set to km when the user gave km for the _mi fields in this object. Omit when they are already mi.",
      +  "enum": [
      +    "mi",
      +    "km"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / intensity
      Added value: +{
      +  "description": "Qualitative effort as reported (does not manufacture an RPE).",
      +  "enum": [
      +    "light",
      +    "moderate",
      +    "vigorous"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / location / description
      Previous value: -"Gym, Home, Outdoor. Infer from context or ask."New value: +"Gym, Home, Outdoor. Infer from context, else omit."
    • addedInput schema / properties / max_hr
      Added value: +{
      +  "description": "Reported maximum heart rate (bpm).",
      +  "maximum": 260,
      +  "minimum": 20,
      +  "type": "integer"
      +}
    • addedInput schema / properties / max_power_w
      Added value: +{
      +  "description": "Reported peak power in watts.",
      +  "maximum": 5000,
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / rpe / maximum
      Added value: +10
    • addedInput schema / properties / rpe / minimum
      Added value: +1
    • addedInput schema / properties / segments
      Added value: +{
      +  "description": "Actually performed intervals/blocks, same structure as the in-app run logger; never invent.",
      +  "items": {
      +    "properties": {
      +      "distance_mi": {
      +        "description": "In mi, or km with input_distance_unit set. See UNIT INPUTS.",
      +        "type": "number"
      +      },
      +      "duration_sec": {
      +        "type": "integer"
      +      },
      +      "input_distance_unit": {
      +        "description": "Set to km when the user gave km for the _mi fields in this object. Omit when they are already mi.",
      +        "enum": [
      +          "mi",
      +          "km"
      +        ],
      +        "type": "string"
      +      },
      +      "kind": {
      +        "enum": [
      +          "warmup",
      +          "easy",
      +          "steady",
      +          "tempo",
      +          "threshold",
      +          "interval",
      +          "recovery",
      +          "hill",
      +          "cooldown",
      +          "other"
      +        ],
      +        "type": "string"
      +      },
      +      "name": {
      +        "type": "string"
      +      },
      +      "notes": {
      +        "type": "string"
      +      },
      +      "repeats": {
      +        "type": "integer"
      +      },
      +      "target_hr_max": {
      +        "type": "integer"
      +      },
      +      "target_hr_min": {
      +        "type": "integer"
      +      },
      +      "target_pace_sec_per_mi": {
      +        "description": "In mi, or km with input_distance_unit set. See UNIT INPUTS.",
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "name",
      +      "kind"
      +    ],
      +    "type": "object"
      +  },
      +  "maxItems": 50,
      +  "type": "array"
      +}
    • addedInput schema / properties / splits
      Added value: +{
      +  "description": "Actually reported laps/splits, same structure as the in-app run logger; never invent.",
      +  "items": {
      +    "properties": {
      +      "avg_cadence_spm": {
      +        "type": "number"
      +      },
      +      "avg_hr": {
      +        "type": "integer"
      +      },
      +      "avg_power_w": {
      +        "type": "number"
      +      },
      +      "distance_mi": {
      +        "description": "In mi, or km with input_distance_unit set. See UNIT INPUTS.",
      +        "type": "number"
      +      },
      +      "duration_sec": {
      +        "type": "integer"
      +      },
      +      "elevation_change_m": {
      +        "type": "number"
      +      },
      +      "index": {
      +        "description": "1-based position in order. Renumbered 1..n on save.",
      +        "type": "integer"
      +      },
      +      "input_distance_unit": {
      +        "description": "Set to km when the user gave km for the _mi fields in this object. Omit when they are already mi.",
      +        "enum": [
      +          "mi",
      +          "km"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "index"
      +    ],
      +    "type": "object"
      +  },
      +  "maxItems": 100,
      +  "type": "array"
      +}
    • addedInput schema / properties / start_time
      Added value: +{
      +  "description": "Local HH:MM when explicitly supplied; otherwise omit.",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "date",
      -  "exercises"
      -]New value: +[
      +  "date"
      +]
  2. First observedv1.2.1

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only say readOnly=false, destructive=true, idempotent=false. The description adds substantially beyond that: the tool returns the new session ID as "[ID NN]" for follow-ups, it silently resolves exercise names rather than asking and relays mismatches, it never invents exercises/reps/HR/calories, unknown numeric fields stay unset, and saved mode is explicitly NOT written to completed history. These are real behavioral consequences (silent canonicalization, aliasing, non-destructive-by-design logging) an agent cannot get from the annotations.

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

Conciseness2/5

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

The document is front-loaded with UNIT INPUTS rather than purpose, contains two literal "undefined" artifacts, and repeats the "never invent"/"never convert it yourself" admonition five or more times. ALL-CAPS section headers, bullet fragments, and the interleaving of completed-workout, unit, equipment, RPE, live-load and saved-workout guidance make it hard to retrieve the rule needed for a given call. Density is not the issue; ordering and redundancy are.

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 31-parameter tool spanning strength sets, endurance activity, splits/segments, RPE, unit conversion and a template mode, the description covers essentially every branch an agent will hit, and the output schema plus the stated "[ID NN]" return means return values need no further explanation. Mode-switching between completed logging and saved prescriptions, and the ask-before-logging rule for missing loads, are both stated.

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 description coverage is 100%, so the baseline is 3, but the schema repeatedly defers to prose the description supplies ("See EQUIPMENT above," "See SETS above"). Critical semantics only exist in the description: dumbbell_pair means weight_lb PER HAND and "a wrong or missing tag silently halves or doubles NSI," hold_length_sec doubles as seconds-per-rep for tempo work and one carry trip, and load_unknown is restricted to explicit user admission rather than being inferred. Some of it restates schema enums, but the per-hand load rule alone justifies above baseline.

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 definition contains a precise verb+resource statement: "Log a complete workout session: exercises, sets, reps, weights, and session metadata," and explicitly carves out log_run for runs ("log_run remains the richer dedicated route for completed runs... Never send a walk, ride or row to log_run"). The problem is placement: that core sentence is buried after a multi-paragraph UNIT INPUTS block and two stray "undefined" lines, so an agent scanning the head of the description sees unit plumbing rather than what the tool does.

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 ("Use when the user describes finishing a workout, lists exercises performed, or asks to log training"), explicit alternatives (log_run for runs, propose_workout for in-app plans, update_workout/delete_workout/get_workout follow-ups via returned ID), and explicit exclusions (never log a walk/ride/row to log_run). It also routes a distinct mode: SAVED WORKOUT MODE with save_as_saved_workout/saved_workout_id, and states LIVE LOADS requires one batched clarification before calling when external load is missing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.