Skip to main content
Glama

evaluate_calibration

Computes accuracy, ECE, MCE, Brier score, and NLL from a predictions file and provides a plain-language over- or underconfidence diagnosis for classifier calibration audits.

Instructions

Compute accuracy, ECE, MCE, Brier score and NLL for a predictions file, plus a plain-language diagnosis (over/underconfidence).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "path": "<path>"
    },
    "name": "evaluate_calibration"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
n_binsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior3/5

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

No annotations exist, so the description carries the full behavioral burden. It usefully discloses the complete metric output and the over/underconfidence diagnosis, but says nothing about the expected predictions-file format, whether it mutates anything, or how it fails on malformed input.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two compact lines with the metric list front-loaded and no filler. The trailing diagnosis clause earns its place by signalling an output the metric names alone would not imply.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need no explanation here, and the metric list is complete. What is missing for a two-parameter analysis tool is the input file contract and the binning parameter's effect, leaving the agent to guess call preconditions.

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

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description is the only source of parameter meaning. 'Predictions file' loosely maps to `path`, but `n_bins` (default 15) is never explained even though it directly controls ECE/MCE binning resolution — a meaningful gap for reproducibility.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

A specific verb ('Compute') plus an enumerated metric set (accuracy, ECE, MCE, Brier, NLL) and the resource ('a predictions file'), with an added plain-language diagnosis. This is clearly distinct from sibling tools like reliability_diagram or fit_temperature, though no sibling is named explicitly.

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

Usage Guidelines2/5

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

There is no guidance on when to reach for this versus compare_models, reliability_diagram (visualize the same data) or fit_temperature (fix miscalibration). The only implicit cue is 'for a predictions file', which does not route the agent among alternatives.

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