Score due predictions against Suunto's data (hit / miss / unresolvable)
score_predictionsScores 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
| Name | Required | Description | Default |
|---|---|---|---|
| rescoreUnresolvable | No | true: also read again the predictions that were 'unresolvable' (more data may have arrived, e.g. after log_session). Default false. |