calibra-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| ANTHROPIC_API_KEY | No | API key for the standalone calibra-audit agent (e.g. `export ANTHROPIC_API_KEY=sk-...`). |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Tools to audit the confidence calibration of ML classifiers from saved predictions (.npz with logits/probs + labels, or .csv). Typical flow: evaluate_calibration -> reliability_diagram -> fit_temperature (if logits available) -> compare_models.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| evaluate_calibrationB | Compute accuracy, ECE, MCE, Brier score and NLL for a predictions file, plus a plain-language diagnosis (over/underconfidence). |
| reliability_diagramC | Render a reliability diagram (confidence vs accuracy) for one or more predictions files. |
| fit_temperatureA | Fit temperature scaling on a predictions file that contains logits.
Returns the optimal temperature and before/after metrics. Optionally saves the
recalibrated predictions to Note: for a fair estimate, fit on a validation split and evaluate on a test split. |
| compare_modelsC | Evaluate several predictions files side by side and rank them by ECE. |
| generate_demoB | Create a synthetic predictions file to try the tools. kind: 'calibrated' | 'overconfident' | 'underconfident'. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| audit | Full calibration audit of a predictions file. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 5 tools
Each tool has a clearly distinct purpose: metric computation, diagram rendering, temperature fitting, multi-model comparison, and demo data generation. Although evaluate_calibration and compare_models both involve evaluation, compare_models is explicitly scoped to side-by-side ranking, so boundaries remain clear.
All names use consistent snake_case, and four follow a verb_noun pattern (evaluate_calibration, fit_temperature, compare_models, generate_demo). reliability_diagram is a noun phrase rather than a verb-led name, which is a minor deviation but still readable and predictable.
Five tools are well-scoped for a focused calibration toolkit. Each tool covers a distinct part of the workflow, and there is no obvious redundancy or bloat.
The surface covers core calibration evaluation, visualization, recalibration via temperature scaling, model comparison, and demo generation. Minor gaps exist, such as alternative recalibration methods (e.g., isotonic/Platt scaling) or explicit data splitting utilities, but the stated purpose is well served.