Finish workout
finish_workout_sessionClose 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
| Name | Required | Description | Default |
|---|---|---|---|
| rpe | No | Overall session RPE | |
| date | No | Session date when using a name (default today) | |
| notes | No | Appended to the session notes | |
| session | No | Session id (preferred) or name | |
| calories | No | Only when the user gives a number (e.g. from their watch). Otherwise leave it out: the estimate follows the times | |
| ended_at | No | HH:MM local or ISO datetime | |
| kcal_mode | No | '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_at | No | HH:MM local or ISO datetime | |
| re_estimate | No | Drop a saved calorie number and go back to the live estimate (from the session times) | |
| duration_min | No | Alternative to ended_at: end = start + duration |