Skip to main content
Glama

Score due predictions against Suunto's data (hit / miss / unresolvable)

score_predictions

Scores every due, unscored prediction as hit, miss, or unresolvable using Suunto workout, sleep, and recovery data, then stores outcomes locally and reports pending items and remaining work.

Instructions

Scores every DUE, unscored prediction in the ledger (log_prediction) as 'hit', 'miss' or 'unresolvable', and stores the outcome in ~/.suunto-mcp/predictions.json. Toward Suunto it only reads (workout list, sleep and recovery lists, laps of the guided sessions it needs; the same numbers as get_baselines and compare_workout_to_plan). Rules: session_done = a workout exists on the date; hrv_in_band = HRV of the night after the date against the user's 28-day band (get_baselines), inclusive; recovery_morning_at_least = Balance on waking after that night, at least the threshold (compared as printed, 2 decimals); reps_hit = the journal's logged sets of that exercise decide (a logged set without a weight takes the guide label's), and without logged sets only fewer set laps than predicted in a reliable per-set guide proves a miss. Only workouts that started after the prediction was made count. A reps_hit scored from a journal entry made from a confirmed draft_session_log (source 'draft') carries basis 'draft-confirmed' in its outcome; get_prediction_stats reports those apart. MISSING DATA: when a workout, or the night, is missing, the prediction stays PENDING (unscored, listed in pending with the reason) until the watch has synced data from a LATER day; only then is it a miss (no workout) or unresolvable (no night): a missing sync is never scored. UNRESOLVABLE means the data to decide was truly missing (no HRV that night, fewer than 7 nights for a band, nothing logged): it is never guessed and counts as neither hit nor miss. A failed request is NOT unresolvable: that prediction stays unscored, the error is in errors, and the next call tries again. Scored outcomes are final; an unresolvable one is read again only with rescoreUnresolvable: true (and written only if the answer changed). At most 20 predictions per call, oldest due first, NEVER-scored ones before the re-read unresolvable ones (so a call always advances through what is new): remaining says how many are left, call again. Calling it again with nothing newly due changes nothing and does not call Suunto. Output: { today, scored: [{ id, date, kind, result, detail }], hits, misses, unresolvable, pending: [{ id, date, kind, reason }], notDue, remaining, errors, notes }. Annotated not read-only (it writes outcomes locally), not destructive and not idempotent (each call scores the next batch); it never changes anything at Suunto. In demo mode the demo ledger is scored against the synthetic data and the outcomes stay in memory.

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

Input Schema

NameRequiredDescriptionDefault
rescoreUnresolvableNotrue: also read again the predictions that were 'unresolvable' (more data may have arrived, e.g. after log_session). Default false.

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?

Annotations already declare write, open-world, non-idempotent, non-destructive; the description adds what is written (~/.suunto-mcp/predictions.json), that Suunto is read-only, that scored outcomes are final, that failed requests are not unresolvable, the 20-per-call cap, and that demo mode keeps outcomes in memory. This is substantial behavior beyond what annotations 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?

Content is front-loaded with purpose followed by rules, missing-data handling, and output shape, so it is organized. But it is a dense wall of long semicolon-chained sentences, and it repeats the Suunto read-only point twice, hurting scannability.

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, and the description fully enumerates the return shape (`scored`, `hits`, `misses`, `unresolvable`, `pending`, `notDue`, `remaining`, `errors`, `notes`). For a complex, stateful, multi-rule tool, nothing needed to call it correctly is missing.

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% and the single parameter is already documented in the schema, so the baseline is 3. The description still adds semantics the schema lacks: an unresolvable prediction is re-read only with `rescoreUnresolvable: true` and written only if the answer changed.

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: it scores every DUE, unscored prediction as 'hit', 'miss' or 'unresolvable'. It names the sibling that creates predictions (log_prediction) and the sibling that aggregates results (get_prediction_stats), so an agent can tell what this tool is and is not.

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 when the tool does work (only due, unscored predictions), what happens on repeat calls with nothing due, the batch limit and 'call again' behavior via `remaining`, and the one opt-in alternative (`rescoreUnresolvable: true`). Failure handling also covers when to retry versus when to stop.

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