Log what actually happened in a session
log_sessionRecords what actually happened in a gym session—reps, weights, RPE, and notes—to a local journal, replacing the entry for the same workoutKey; the watch only stores planned text.
Instructions
Records what the user says ACTUALLY happened in a gym session (reps, weights, RPE, notes), because the watch only records the guide's planned text. Writes only the local file ~/.suunto-mcp/journal.json (SUUNTO_JOURNAL_PATH overrides it) and never contacts Suunto. One entry per workoutKey: logging the same workoutKey again REPLACES that entry, and the result returns the previous one as replaced so nothing is lost silently. A call with no note, no feeling, no tags and no exercises is refused ('nothing to log'): it would wipe the stored entry. Unknown fields at any level (e.g. weight) are refused with an error naming the field, never dropped: use kg inside a set. get_exercise_history attaches the entry as journal and uses the top set's kg as the load when sets carry kg. Only record what the user told you; leave out what they did not say. Exercise names should be the ones get_exercise_history or compare_workout_to_plan show. Limits: reps integer 0-200, kg 0-1000, rpe 1-10, texts up to 500 characters, at most 40 exercises and 20 sets each, at most 8 tags of 1-24 characters each (trimmed; no control characters; no duplicates, ignoring case; stored on the entry; get_tag_effects compares the nights after tagged sessions with the others, get_exercise_history does not use them). A call with ONLY tags does not replace the entry: it sets the entry's tags and keeps its note, feeling and exercises (a tags-only entry is created when none exists). Optional source: 'draft' marks an entry made from a confirmed draft_session_log. Output: { saved, replaced, entries }.
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": {
"workoutKey": "<workoutKey>"
},
"name": "log_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | How the session went overall, in the user's words, e.g. 'all as planned except squat set 3'. | |
| tags | No | Optional short labels for the session, e.g. ['deload', 'poor-sleep'] (at most 8, each 1-24 characters, trimmed, no duplicates). Sent alone, they set the tags of the existing entry without touching the rest. | |
| source | No | Pass 'draft' when the exercises come from a draft_session_log that the user confirmed or corrected (the reps and weights began as the guide's plan). Stored on the entry; nothing else changes. | |
| feeling | No | How the user felt, e.g. 'tired', 'strong'. | |
| exercises | No | Per exercise what was actually done. Leave out exercises that went as planned. | |
| workoutKey | Yes | The 24-character workoutKey of the session, from list_workouts or get_daily_snapshot. |