Skip to main content
Glama

Get benchmark: a repeatable session over time

get_benchmark
Read-only

One repeatable session as a series over its occurrences, to see whether it is getting better: give guide (a guide's title, e.g.

Instructions

One repeatable session as a series over its occurrences, to see whether it is getting better: give guide (a guide's title, e.g. 'PUSH A': the sessions that ran it, by the guide name in the workout list) or exercise (the sessions that contain that exercise, as in get_exercise_history), over the weeks weeks (default 8, max 26) ending at date. It reads the guided sessions with get_exercise_history's own reader (the same local cache, the same limit of 8 uncached sessions per call, the same pending: CALL AGAIN until pending is 0 before drawing conclusions, and the same journal), and adds the workout list's own duration and TSS. Output: { mode, name, from, to, occurrences, sessions: [{ date, workoutKey, guide, durationS, tss (Suunto's HR-based, null when none), restEndHrMedian (median end-of-rest HR after set 1 over the session's exercises with reliable heart-rate data, rounded), exercises: [{ name (one entry per exercise per session: an exercise that appears twice is merged: heaviest block's detail, load and reps, sets added, median rest HR, reliable only if every block is; parts counts the blocks), detail, kg (the guide's label weight, or the top logged weight with loadSource 'journal'; null when none, never guessed), loadSource, reps (the planned reps per set from 'NxM' in the label; null for a range or no 'NxM'), setsDone, plannedSets, restEndHr (null when unreliable), reliable }] }] oldest first, series: { durationS, tss, restEndHrMedian, exercises: [{ name, kg, reps, restEndHr }] } where each series is { n (occurrences with a value), first, last, best (highest kg and reps, lowest duration and heart rate; null for TSS, which has no better direction), better, trend, change }, pending, errors, notes }. TREND RULE: with at least 3 values, the median of the older half is compared with the median of the newer half (floor(n/2) values each; the middle one is left out when n is odd): 'up' or 'down' when they differ by more than 3% of the older median (exactly 3% is flat), else 'flat'; change is that difference; with fewer than 3 values the trend is 'insufficient'. There is no significance test: it says what moved, not that the move is real; 'up' is not 'better' for every series (see better). Weights and reps are what the guide PLANNED unless a log_session entry logged weights. Writes only get_exercise_history's local cache; never changes anything at Suunto. 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": "get_benchmark"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoThe last local calendar day of the range, YYYY-MM-DD (default today).
guideNoA guide's title as shown by list_guides or get_daily_snapshot's `guide`, e.g. 'PUSH A' (matched ignoring case, accents and punctuation). Give this or `exercise`.
weeksNoHow many weeks the series covers, ending at `date` (default 8).
exerciseNoAn exercise name as in get_exercise_history's index, e.g. 'Back Squat'. Give this or `guide`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only say readOnlyHint=true and openWorldHint=true; the description goes far beyond by disclosing the shared local cache, the 8-uncached-sessions-per-call limit, the `pending` retry protocol, and the fact that it 'never changes anything at Suunto'. It also explains null semantics for TSS, reps and restEndHr, which annotations cannot convey.

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 purpose and selector modes are front-loaded correctly, but the remainder is a dense, unbroken block that inlines a full output shape and a trend algorithm. Because there is no output schema this content earns its place functionally, yet the wall-of-text presentation makes it hard to scan and could be split into labeled sections.

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?

With no output schema, the description must define return values, and it does so thoroughly: session entries, per-exercise merging rules, series `n`/`first`/`last`/`best`/`trend`/`change`, plus the exact 3%-median trend rule and `insufficient` fallback. It also covers cache staleness via `pending` and the `errors`/`notes` fields, leaving no material gap for an agent calling this tool.

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, but the description adds real meaning: guide titles are matched 'ignoring case, accents and punctuation', `weeks` defaults to 8 with a max of 26, the window ends at `date`, and exercise names come from get_exercise_history's index. That is genuine semantic enrichment beyond the field descriptions, though it does not cover every parameter exhaustively.

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 and resource — 'One repeatable session as a series over its occurrences, to see whether it is getting better' — and immediately names the two selector modes (`guide` or `exercise`). It distinguishes itself from the sibling `get_exercise_history` by framing itself as the multi-occurrence, trend-oriented view, so an agent can pick between them without opening either 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?

It states exactly how to select the scope ('give `guide` ... or `exercise` ... as in get_exercise_history'), points to `list_guides`/`get_daily_snapshot` as the source for guide titles, and gives a concrete operational rule: 'CALL AGAIN until pending is 0 before drawing conclusions'. It also warns that 'up' is not 'better' for every series, which steers interpretation.

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