Skip to main content
Glama

Log what actually happened in a session

log_session
DestructiveIdempotent

Records 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

NameRequiredDescriptionDefault
noteNoHow the session went overall, in the user's words, e.g. 'all as planned except squat set 3'.
tagsNoOptional 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.
sourceNoPass '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.
feelingNoHow the user felt, e.g. 'tired', 'strong'.
exercisesNoPer exercise what was actually done. Leave out exercises that went as planned.
workoutKeyYesThe 24-character workoutKey of the session, from list_workouts or get_daily_snapshot.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.3.0
    • addedInput schema / properties / source
      Added value: +{
      +  "description": "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.",
      +  "enum": [
      +    "draft"
      +  ],
      +  "type": "string"
      +}
  2. Addedv1.0.0

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations: writes only the local ~/.suunto-mcp/journal.json (with an env override) and never contacts Suunto, one entry per workoutKey with replacement semantics and the previous entry returned as `replaced`, an empty call refused to avoid wiping data, and unknown fields rejected by name rather than dropped. These disclosures are exactly the destructive/idempotent behaviour the annotations flag but cannot explain.

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?

It is one dense block paragraph with the most important facts (local write, replace semantics, refusal) correctly front-loaded. However, a substantial chunk restates numeric limits already present verbatim in the schema (0-200 reps, 0-1000 kg, 1-10 rpe, 500 chars, 40 exercises, 20 sets, 8 tags), and the interleaved explanations of get_tag_effects/get_exercise_history consume space without helping the call itself.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers everything an agent needs for a 6-parameter mutation tool with no output schema: it names the return shape ({ saved, replaced, entries }), the storage location, the failure modes, and the relationship to sibling tools that read the entry back. Nothing material is left to inference.

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 is 3; the description still adds real meaning by explaining that a tags-only call mutates only tags, that `source: 'draft'` traces to a confirmed draft_session_log, and that `weight` must be expressed as `kg` inside a set. Some overlap with schema text (limits, tag rules) dilutes the added 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?

The description opens with a specific verb+resource: it records what the user says actually happened in a gym session (reps, weights, RPE, notes). It immediately distinguishes itself from the watch's planned text and from draft_session_log via the `source: 'draft'` case, so an agent can place it in the workflow without opening the schema.

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?

Gives clear operating rules: 'Only record what the user told you; leave out what they did not say', 'Leave out exercises that went as planned', and to take exercise names from get_exercise_history or compare_workout_to_plan. It also explains the tags-only and draft-sourced cases. It stops short of explicitly naming when a different logging tool (e.g. log_experiment_day) is the right choice.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.