Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
ANTHROPIC_API_KEYNoAPI 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

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
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 save_to (.npz).

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

NameDescription
auditFull calibration audit of a predictions file.

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.4/5.0

Scored across 5 tools

Disambiguation5/5

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.

Naming Consistency4/5

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.

Tool Count5/5

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.

Completeness4/5

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.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues