Skip to main content
Glama

Finish workout

finish_workout_session
DestructiveIdempotent

Close a strength session: start and end time, session RPE, notes and calories. TIMES DRIVE THE CALORIES: the estimate uses the session's start and end, so when the user says when they trained (e.g. '17:00 to 18:15', or 'for 75 min'), pass started_at and ended_at (or duration_min). Without times the end defaults to the last logged set, which is the LOGGING time when sets are entered after the fact. Only pass calories when the user gives a number (e.g. from their watch); don't replace the estimate with your own guess, fix the times instead. Calories: from an overlapping strength activity on the watch (Garmin, COROS or Polar) when there is one, else estimated from the session times, body size (resting metabolic rate) and density/effort. What the watch recorded during the session is subtracted and the rest is added to the day per the user's gym calories setting (kcal_mode overrides it for this session). The result reports the session kcal, its source, the watch part and the extra added to the day: tell the user. Without a session, finishes today's open (or latest) session. Call it when the user says they're done.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "finish_workout_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
rpeNoOverall session RPE
dateNoSession date when using a name (default today)
notesNoAppended to the session notes
sessionNoSession id (preferred) or name
caloriesNoOnly when the user gives a number (e.g. from their watch). Otherwise leave it out: the estimate follows the times
ended_atNoHH:MM local or ISO datetime
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
re_estimateNoDrop a saved calorie number and go back to the live estimate (from the session times)
duration_minNoAlternative to ended_at: end = start + duration

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, and the description adds substantial behavior on top: how defaults resolve without a session, how the kcal estimate is derived (watch overlap, then session times + RMR + density), and exactly what the result reports (session kcal, source, watch part, extra added). It still doesn't disclose what, if anything, is irreversibly overwritten by closing a session despite destructiveHint=true.

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

Conciseness5/5

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

The closing action and the critical times-drive-calories rule are front-loaded, and the calorie derivation chain is explained in the order the agent needs it. Length is justified by ten parameters and an estimation model, and every sentence carries an operative rule.

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?

With ten optional parameters, no output schema and a destructive mutation, the definition does the necessary work: it explains defaults, the estimation pipeline, and the shape of the returned calorie report the agent must relay to the user. The remaining gap is that no output schema exists and the destructive semantics of 'closing' a session are never spelled out.

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 100%, so the baseline would be 3, but the description adds real meaning beyond the schema: the causal rule that started_at/ended_at drive the calorie estimate, that duration_min is an alternative to ended_at, that calories should be omitted rather than guessed, and that kcal_mode overrides the user's setting for this session. Only re_estimate and date are left without added context.

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 opens with a specific verb+resource: 'Close a strength session', then enumerates what gets recorded (times, RPE, notes, calories) and states the no-session default ('finishes today's open (or latest) session'). That is clearly distinguishable from a generic update or log tool, though it never names a sibling tool to route against.

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

Usage Guidelines4/5

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

It gives an explicit trigger ('Call it when the user says they're done') and clear when-not guidance for arguments ('Only pass calories when the user gives a number... fix the times instead'). It does not tell the agent when to prefer update_workout_session or get_workout_session over this one, so sibling routing is left implicit.

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