Skip to main content
Glama

Get exercise history across sessions

get_exercise_history
Read-only

Progression of strength exercises across guided gym sessions (push_strength_guide / push_workout_guide): load, sets, rest and heart-rate recovery of the same exercise week after week.

Instructions

Progression of strength exercises across guided gym sessions (push_strength_guide / push_workout_guide): load, sets, rest and heart-rate recovery of the same exercise week after week. Each session is read once with the same logic as get_workout_laps, compare_workout_to_plan and get_workout_rest_profile, and the small derived result is cached on disk (~/.suunto-mcp/cache/, SUUNTO_CACHE=off disables it), so repeat calls are cheap. It writes nothing but that cache and never changes anything at Suunto. Looks at the weeks weeks (default 8, max 26) ending at date (default today; a session that started less than 24 h ago is read but not cached). Reads at most 8 sessions not yet cached per call (two requests each, newest first); the result's pending is how many are still unread: CALL AGAIN until pending is 0 before drawing conclusions from the history, unless a note says calling again will not help (cache not writable, sessions failing): then say so instead of looping. A session that fails to load is skipped and listed in errors. IMPORTANT: the watch records only the guide's TEXT, so weights and reps are what was PLANNED, not measured; a log_session entry for the session replaces the label's weight with the logged one (loadSource 'journal') and is attached as journal. Sessions whose mapping or rest profile is unreliable are included with reliable false and never enter restEndHrMedian. Only the sessions whose heart-rate data is unreliable (dropouts, implausible values, flat-lines, frequent jumps; see get_workout_rest_profile's hrQuality) are also named in a note with the reasons (with name: those with a matching exercise; without: all in the range); a session unreliable for another reason (a missing lap, say) is marked but not named, and one whose FIT has no heart rate at all gets its own note. Without name: { from, to, sessions (guided sessions read), exercises: [{ name, sessions, lastDate, lastDetail }] (most sessions first; a name the guide cut to 40 characters is grouped with its longer form only when that is certain: exactly one longer name and at least 12 characters, otherwise they stay separate and a note lists them), pending, errors, notes }. With name: { name, from, to, sessions: { cols, rows } (oldest first; cols = date, workoutKey, detail, kg (the first 'NNkg' in the label text, or the top journal set's weight; null when there is none, never guessed), loadSource ('label' | 'journal'), setsDone, plannedSets, restS (the guide's rest), restEndHr / restDropTotal / restT20S / restCoverage (heart-rate recovery of the rest after set 1 from the FIT's record-level HR, null when missing: end-of-rest HR, peak minus end, seconds after the peak to fall 20 bpm, share of the rest's seconds with an HR sample), deviations (compare_workout_to_plan codes for that exercise), reliable, journal), summary: { sessions, firstLoadKg, lastLoadKg, restEndHrMedian (median end-of-rest HR after set 1 over reliable sessions: usable as push_strength_guide's restTargetHr) }, suggestion: { last, target, reason } (the newest session as e.g. '3x8@60kg' or, when set weights differed, '8@60/8@60/5@65kg', and a simple next target: when a log_session entry shows every planned set done with every planned rep at ONE weight, the same sets x reps with a step on top (2.5 kg, but at most 5% of the load in 1.25 kg steps and at least 1.25 kg: 5 kg goes to 6.25); a short set, differing weights between sets (repeat at the lowest weight that reached the reps), a missing load or a rep range written in any way ('3x8-12', '3x8 - 12', '3x8–12', '3x8 to 12') never raise the load: repeat; null without a session; usable as push_strength_guide's per-exercise last/target; nothing is pushed), pending, errors, notes }. name is matched ignoring case, accents and punctuation, exactly or, for a name the guide may have cut (12+ characters), as a prefix of the given name. Use the names from the index (or compare_workout_to_plan). Writes only the local cache.

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

Input Schema

NameRequiredDescriptionDefault
dateNoThe last local calendar day of the range, YYYY-MM-DD (default today).
nameNoExercise name, e.g. 'Back Squat'. Omit for an index of all exercises in the range.
weeksNoHow many weeks the history covers, ending at `date` (default 8).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.0

TDQS

A4.8/5.0
Behavior5/5

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

Beyond readOnlyHint/openWorldHint the description discloses the on-disk cache location, the SUUNTO_CACHE=off switch, the 24-hour no-cache rule, a read budget of 8 uncached sessions per call (two requests each, newest first), and that failures are skipped into `errors`. It also flags that watch-recorded weights are PLANNED not measured, and explains the reliable-flag and hrQuality exclusions.

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?

The content is front-loaded with scope before alternatives, but it is a single sprawling paragraph that inlines two full return shapes, cache semantics, reliability rules and a progression algorithm. Nearly every sentence carries information, yet the density and lack of breaks make it hard to scan.

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 return-value burden, and it does so exhaustively: it spells out both the index shape and the per-name shape, including cols, summary fields, suggestion logic, pending, errors and notes. For a tool of this complexity, little is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/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: `weeks` defaults to 8 with a 26 cap, `date` defaults to today, and `name` is matched ignoring case, accents and punctuation, with prefix matching allowed for names of 12+ characters that the guide may have truncated. That normalization and prefix rule is nowhere in the schema.

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 names a specific verb and resource: 'Progression of strength exercises across guided gym sessions (push_strength_guide / push_workout_guide)', and enumerates the dimensions it reports (load, sets, rest, heart-rate recovery). This makes it unambiguous against siblings like get_workout_laps or get_workout_rest_profile, which are explicitly framed as single-session readers.

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?

Guidance is explicit and conditional: call again until `pending` is 0 unless a note says re-calling will not help; use `name` from the index or compare_workout_to_plan; omit `name` for an index of all exercises. It also states downstream use, such as restTargetHr feeding push_strength_guide's restTargetHr.

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