Skip to main content
Glama

Get prediction statistics: hit rate, Brier score, calibration

get_prediction_stats
Read-only

View accuracy stats for logged predictions—hit rates, Brier scores, calibration and per-rule breakdowns—from the local ledger, flagging when too few scored predictions exist to claim anything.

Instructions

How good the logged predictions were, from the local ledger only (never contacts Suunto, needs no credentials, writes nothing): overall, per kind and per rule: logged, n (scored: hit or miss), hits, misses, unresolvable, voided (counted apart, never scored), unscored; and, ONLY with at least 20 scored predictions in that group, hitRate, meanProbability, brier (the mean of (probability - outcome)^2; 0 is perfect; lower is better), brierBaseRate (what always saying the overall hit rate would have scored: a brier below it means the probabilities carried information) and a calibration table by stated probability (0-0.2, 0.2-0.4, 0.4-0.6, 0.6-0.8, 0.8-1: n, meanProbability, and hitRate when the bucket has at least 5). Below 20 scored the rates are null, verdict is 'insufficient' and statement says how many are missing: no claim is made. basis reports the predictions scored from a confirmed draft_session_log (a reps_hit whose sets began as the guide's plan) apart from all others: { draftConfirmed: { n, hits, hitRate }, other: { n, hits, hitRate } }, each hitRate shown only from 20; they still count in the overall figures. Unresolvable, voided and unscored predictions are never scored. Also: dueUnscored (call score_predictions), thresholds, recent (the 10 newest predictions with their status: hit, miss, unresolvable, void, due, open), notes. Output: { today, thresholds, dueUnscored, overall, byKind: [{ kind, ... }], byRule: [{ rule (null: none given), ... }], recent, notes }. 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_prediction_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.3.0

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, but the description goes well beyond them: local ledger only, never contacts Suunto, needs no credentials, writes nothing. It also discloses the minimum-sample gating (rates null below 20 scored, verdict 'insufficient', bucket hitRate only at n>=5) and that unresolvable/voided/unscored items are never scored — behavioral rules an agent could not infer from structured fields.

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 (what it measures, then the caveat that it is local-only) and nearly every clause carries real information, but it is delivered as one enormous run-on sentence mixing definitions, thresholds, and output shape. Splitting the metric definitions from the output contract would substantially improve parseability at the same length.

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?

Despite having no output schema, the description spells out the return shape ({ today, thresholds, dueUnscored, overall, byKind, byRule, recent, notes }), defines each statistical field (brier, brierBaseRate, calibration buckets), and explains the suppression behavior. Nothing an agent needs to interpret the response 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?

The tool takes zero parameters, so per the baseline this scores 4. The description's references to grouping by `rule` (including the null case) confirm the tool has no filtering inputs rather than implying hidden ones.

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 states exactly what is returned and at what granularity: accuracy metrics for logged predictions, overall, per kind and per `rule`, computed strictly from the local ledger. An agent can distinguish this (read the scoring history) from siblings that create or score predictions because the description names `score_predictions` as the tool for due-but-unscored work.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Usage is strongly implied by the content (query it when you want to know how well past predictions performed), and there is one explicit hand-off: `dueUnscored` says to call `score_predictions`. However, there is no explicit when-not guidance or statement of prerequisites/ordering beyond that single pointer.

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