Skip to main content
Glama

Edit workout session

update_workout_session
DestructiveIdempotent

Change a logged strength session: name, date, start/end time, calories, kcal_mode, session RPE, notes (replaces). The calorie estimate uses the session's start and end, so to correct calories after wrong times, fix started_at / ended_at rather than overriding calories. Set calories only when the user gives a number; null (or estimate_calories=true) goes back to the estimate. The result reports the session kcal, its source, what the watch recorded during it and the extra added to the day. For sets use 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": {
      "session": "<session>"
    },
    "name": "update_workout_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
rpeNo
dateNoCurrent date of the session when using a name (default today)
nameNo
notesNo
sessionYesSession id (preferred) or name
caloriesNoOnly a number the user gave; null = use the estimate
ended_atNoHH:MM local or ISO datetime
new_dateNoMove the session to this date (YYYY-MM-DD); times move with it unless given
kcal_modeNo'auto' (default): follow the user's gym calories setting. 'add': always add the session kcal minus what the watch (Garmin/COROS) recorded during it (e.g. the watch missed this workout). 'watch_only': keep only what the watch recorded, add no estimate.
started_atNoHH:MM local or ISO datetime
estimate_caloriesNoDrop the saved number and use the estimate (from the session times)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and destructiveHint=true, and the description goes beyond them by disclosing that notes replaces existing content, that calories are derived from session start/end, and what the result reports (session kcal, its source, watch-recorded burn, extra added to the day). It does not clarify whether unspecified fields are preserved or cleared on a partial update, which is the main remaining behavioral gap for a destructive mutation.

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?

Four dense sentences with no filler, front-loaded with the field list and the calorie-correction rule before the return-value summary and sibling routing. Slightly packed, but each sentence carries actionable information.

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 an 11-parameter mutation with no output schema, the description covers the edit surface, the calorie derivation rule, and verbally describes the return payload. The only shortfall is the absence of any statement about partial-update semantics or permission requirements.

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 73%, so the baseline is 3; the description earns above that by explaining the causal dependency between started_at/ended_at and the calorie estimate, plus the null/estimate_calories interplay. The kcal_mode enum semantics are already spelled out in the schema, so that portion adds no extra value.

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 and resource ('Change a logged strength session') and immediately enumerates the editable fields (name, date, times, calories, kcal_mode, RPE, notes). It also explicitly carves out the set-level operations as different tools, so an agent can separate this from update_workout_set without opening either schema.

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?

Gives explicit decision rules rather than vague context: fix started_at/ended_at when times were wrong instead of overriding calories, set calories only when the user supplies a number, and use null or estimate_calories=true to revert to the estimate. It also names the alternatives for set-level work (update_workout_set / move_workout_sets / delete_workout_sets).

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