Skip to main content
Glama

Log activity

log_activity

Manually log a run, ride, walk, hike, swim, row or other cardio session (watch activities sync on their own; check get_activities first to avoid duplicates). Pace is computed from distance and duration. A planned run/cardio that day is marked done. Its calories count in burned (minus the resting burn and what the watch recorded meanwhile): give start_time and duration. Calories: give them when the user has a number (a watch, a machine, the class app). Without one, leave them out: for users with no watch or phone health data, Heza estimates them from the activity, duration, intensity and their weight (marked as an estimate). Also for Pilates, yoga, walks, sports, classes (Les Mills, boxing), fitness gaming and VR (Beat Saber, Synth Riders) the watch missed; not for lifting. muscles / muscles_secondary: the muscles it clearly worked (e.g. VR boxing: shoulders, triceps; core secondary), so Heza's muscle recovery counts the session. Leave out for runs (they count for the legs already).

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": {
      "activity_type": "<activity_type>"
    },
    "name": "log_activity"
  }
}

Input Schema

NameRequiredDescriptionDefault
rpeNoAlternative to intensity: RPE 1-10 (1-3 easy, 4-6 moderate, 7-10 hard)
dateNoYYYY-MM-DD, defaults to today
nameNoe.g. 'Easy run', 'Tempo 3x10 min'
notesNo
avg_hrNo
max_hrNo
musclesNoMain muscles worked, Heza names (shoulders, triceps, biceps, forearms, chest, lats, abdominals, quadriceps...) or arms / core / legs / back
caloriesNo
durationNoAlternative to duration_min: 'mm:ss' or 'h:mm:ss'
intensityNoeasy, moderate or hard (how it felt). Default moderate
start_timeNoHH:MM local or ISO datetime
distance_kmNo
duration_minNo
activity_typeYesrunning, trail_running, treadmill_running, cycling, indoor_cycling, walking, hiking, swimming, rowing, elliptical, other
elevation_gain_mNo
muscles_secondaryNoMuscles worked less (count half)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / intensity
      Added value: +{
      +  "description": "easy, moderate or hard (how it felt). Default moderate",
      +  "enum": [
      +    "easy",
      +    "moderate",
      +    "hard"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / muscles
      Added value: +{
      +  "description": "Main muscles worked, Heza names (shoulders, triceps, biceps, forearms, chest, lats, abdominals, quadriceps...) or arms / core / legs / back",
      +  "items": {
      +    "maxLength": 30,
      +    "type": "string"
      +  },
      +  "maxItems": 17,
      +  "type": "array"
      +}
    • addedInput schema / properties / muscles_secondary
      Added value: +{
      +  "description": "Muscles worked less (count half)",
      +  "items": {
      +    "maxLength": 30,
      +    "type": "string"
      +  },
      +  "maxItems": 17,
      +  "type": "array"
      +}
    • addedInput schema / properties / rpe
      Added value: +{
      +  "description": "Alternative to intensity: RPE 1-10 (1-3 easy, 4-6 moderate, 7-10 hard)",
      +  "maximum": 10,
      +  "minimum": 1,
      +  "type": "number"
      +}
  2. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare this is a non-readonly, non-idempotent, non-destructive write, and the description meaningfully adds side effects: it marks a planned cardio session as done, folds calories into burned minus resting burn and watch data, and marks estimated calories as estimates. That is real value beyond the annotations. However, it never says what the tool returns or how the plan-marking side effect can be undone, so it stops short of full behavioral disclosure.

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?

Purpose is front-loaded and every clause carries information, but the prose is heavily parenthesized and contains a verbless fragment ('Also for Pilates, yoga, walks, sports, classes... the watch missed; not for lifting') whose subject is left implicit. A structured split between core usage, calories, and muscles would make it far easier to parse on first read.

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 16-parameter mutation with no output schema and no nested objects, the definition covers the tricky decisions well: duplicate avoidance, calorie estimation fallback, plan-marking, and muscle tagging rules. Gaps remain around heart-rate fields, elevation, notes, and return behavior, but nothing critical to calling the tool correctly is missing.

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 only 56% across 16 parameters, so the description must carry weight, and it does for the highest-risk fields: calories (when to supply vs. omit and why), start_time and duration (required for the calorie estimate), muscles/muscles_secondary (purpose, granularity, and when to leave out), and distance+duration driving pace. It says nothing about name, notes, avg_hr, max_hr, elevation_gain_m or how rpe relates to intensity, leaving several undocumented parameters uncovered.

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 description opens with a specific verb and resource ('Manually log a run, ride, walk, hike, swim, row or other cardio session'), immediately distinguishes manual entry from automatic watch sync, and points at get_activities as the duplicate-check sibling. An agent can separate this from log_workout or get_activities without inspecting schemas.

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 ('manually log', 'check get_activities first to avoid duplicates'), when-not (watch activities sync on their own; 'not for lifting'; 'leave out for runs'), and conditional rules for each optional field (give calories when the user has a number, omit otherwise; give start_time and duration to compute calories). Alternatives and exclusions are both named.

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