Skip to main content
Glama

Draft a session log from the watch data (read-only; the user confirms, then log_session)

draft_session_log
Read-only

Proposes a draft gym-session log from Suunto watch laps and heart-rate data, marking assumed reps, weights, and set counts so users can confirm or correct them before logging.

Instructions

ZERO-LOGGING DRAFT: proposes the log_session payload for a guided gym session so the user only has to confirm it. Give workoutKey, or date for the latest guided session of that day (exactly one of the two). It reads the session's laps (the same mapping as compare_workout_to_plan; plan is the same optional exercises array) and its FIT file (heart-rate quality only), and builds, per exercise, the guide's text as sets x reps @ load. IMPORTANT: the watch records only the guide's PLANNED text, never the reps and weights done, so every rep count and weight in the draft is an ASSUMPTION (assumed: true) and must be confirmed or corrected by the user before anything is logged. In a per-set guide the number of sets is the number of set laps the watch recorded; in a per-exercise or workout guide the watch has one lap per exercise, so the number of sets is the plan's. It lists every deviation the watch data shows per exercise and for the session (missing, extra, short or long sets, a lap pressed during a rest, laps after 'Session complete', an unreliable mapping, a session that stopped early, missing exercises when plan is given) and the exact things to ask: confirm. A distance or time after the x ('3x40m') is not taken as reps, a missing weight is left out, never guessed. It NEVER writes anything, here or at Suunto: after the user has confirmed or corrected the draft, call log_session with draft (corrected) and source: 'draft'. Output: { workoutKey, date, status ('ok' | 'no-laps' | 'no-guide-labels' | 'unknown-label-format' | 'no-workout'), assumed: true, draft: { workoutKey, source: 'draft', exercises: [{ name, sets: [{ reps, kg }] }] } | null (valid arguments for log_session as they are), review: [{ n, name, detail, planned: { sets, reps, kg } | null, recordedSetLaps, proposedSets, assumed: true, mustConfirm ('reps', 'kg', 'setCount'), issues: [{ code, detail }], whyNotFilled }], sessionIssues, mapping: { format, complete, reliable, note }, hrQuality: { reliable, reasons, coverage } | null, confirm (plain sentences: what to ask the user), notes }. About 1-4 KB; downloads the FIT file (about 550 KB). Read-only.

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": "draft_session_log"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoInstead of workoutKey: the local date; the latest guided session (with guide laps) of that day is drafted.
planNoOptional: what the session was meant to be, in order (the exercises array given to push_strength_guide), as for compare_workout_to_plan: adds missing, extra and reordered exercises and set counts to the issues.
workoutKeyNoThe 24-character workoutKey of the session, from list_workouts or get_daily_snapshot.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.3.0

TDQS

A4.7/5.0
Behavior5/5

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

Goes well past the readOnlyHint annotation: it warns that a ~550 KB FIT file is downloaded, that every rep/weight is an assumption (assumed: true), that the watch records only planned text, and enumerates the exact deviation types surfaced in `review`. It also restates the no-write guarantee for both this tool and Suunto, which is the key safety fact for the calling agent.

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?

Front-loads the key framing ("ZERO-LOGGING DRAFT") and the caution about assumptions, but the bulk is a single dense paragraph with a long inline enumeration of the output object. The output-field dump is valuable given there is no output schema, yet it could be bulleted or trimmed for readability.

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?

There is no output schema, so the description carries the full burden of describing return values, and it does so exhaustively: status enum values, the draft payload shape, review entry fields with mustConfirm, issue codes, mapping and hrQuality blocks, and the `confirm` sentences. Combined with the per-set versus per-exercise lap logic and the deviation list, an agent has everything needed to call it and interpret the result.

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%, yet the description still adds meaning beyond it: the mutual exclusivity of `workoutKey` and `date` ("exactly one of the two"), the semantics of `date` as "latest guided session of that day," and the `plan` cross-reference to compare_workout_to_plan. It does not clarify what happens when neither is supplied, which keeps it from a 5.

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?

States a specific verb and resource ("proposes the log_session payload for a guided gym session") and immediately distinguishes itself from the sibling log_session by framing the tool as a draft-only, confirmation-oriented step. An agent can tell what it produces and what it does not do 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 Guidelines5/5

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

Gives explicit invocation conditions ("Give `workoutKey`, or `date` ... exactly one of the two") and an explicit follow-up handoff ("after the user has confirmed or corrected the draft, call log_session with `draft`"). Alternatives and the sequencing between them are spelled out rather than implied.

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