Calibrates trust in an LLM judge for MST evals by measuring agreement with human labels. Covers choosing checkable judges, labeling trials, running mst judges check, and interpreting TPR, TNR, kappa, and unknown rates.
Ships in mcp-server-tester. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A judge's accuracy depends on the answers it grades. A judge that agrees with people on one server's answers can disagree on another's, so MST doesn't claim any judge is calibrated for your data. You measure it: label some trials yourself, then run mst judges check to compare the judge's verdicts with your labels.
A judge that passes the check is usable. The run report then shows its pass rate corrected for the judge's errors, beside the raw rate. A judge that is not usable still runs, but treat its pass rate as a guess.
mst label and mst judges check need MST 2.0.0-rc.0 or later (npm install --save-dev @gleanwork/mcp-server-tester@rc). On an older 2.0 beta they are unknown commands.
To run evals, use run-mcp-eval. To add judges to a dataset or eval config, use write-mcp-eval.
Prefer a judge that asks one yes-or-no question. People agree on "did the answer give the port from the config?" more than on "rate this answer from 0 to 1", and so do judges.
| Judge | Asks |
|---|---|
criteria | Does the trial meet each criterion the case lists? One question per criterion. |
task-completion | Did the assistant do what the user asked, as the transcript shows? |
grounded-in-tools | Is every claim in the answer supported by a tool result? |
tool-use | Right tools, fitting arguments, no needless calls, errors recovered? Four questions. |
rubric | A 0-to-1 score against a rubric (correctness, ...). Harder to label: you decide pass/fail. |
The yes-or-no judges read the whole transcript and may answer unknown when the transcript can't settle the question. unknown is not a pass.
criteria is the easiest to calibrate, because each criterion is one thing a person can check in the trial:
{
"id": "deploy-port",
"input": "What port does the service listen on in production?",
"judges": [
{
"type": "criteria",
"criteria": [
{ "id": "deployed-port", "text": "The answer gives port 7341." },
{
"id": "names-source",
"text": "The answer says which file the port came from.",
"required": false
}
]
}
]
}
Pick the judge's model from a different family than the client's model, when you can. Judges favor answers from their own family, and MST warns when the two match. The built-in judges take provider and model.
Labeling needs the trials' answers, which MST redacts by default. Set this in the eval config before the run:
"redactStoredResponses": false
Run the eval with the judge in it (mst run --config eval.json). The run needs both kinds of trial:
test, chosen by a hash of the case ID, and only test labels measure the judge. All trials of a case share its split. So label across many cases, not many trials of a few, and expect to label about twice the test count.Labels from several runs of the same eval count together, so you can label over time.
npx mst label page 7f3c2a --judge task-completion
The page opens in a browser on this machine. It shows one trial at a time: the input, the reference answer, the tool calls and the answer. It hides the judge's verdict and the variant, so neither sways you. Press P or F, add a note if you like, and press Ctrl+C in the terminal when you're done. Labels are saved as you give them.
Labeling is the person's job, not the agent's. The command serves the page until it is interrupted, so an agent runs it in the background with --no-open, gives the user the printed 127.0.0.1 address, and stops the command with SIGINT when the user is done.
grounded-in-tools and fails task-completion.--judge is the judge's name in results: a rubric judge's rubric (correctness), else its reference (task-completion, acme/judge/completeness). One criterion is criteria#<id>, such as criteria#deployed-port. tool-use shows its four questions together.--question "Did the answer ...?", so your labels answer what the judge answers.--labeler records who gave the labels. A trial holds one label per question, so a second person's label for the same trial replaces the first. When two people label, split the trials between them.To label in a spreadsheet instead, export a row per verdict, fill in the label column with pass or fail, and import it back:
npx mst label export 7f3c2a --judge task-completion -o labels.csv
npx mst label import 7f3c2a labels.csv
import checks every row against the run and writes nothing if one is wrong.
npx mst judges check 7f3c2a --judge task-completion
npx mst judges check 7f3c2a 9b1d04 --judge criteria#deployed-port
A failing trial is the positive class:
Each rate has a 95% range. The judge is usable when it gave a verdict on at least 15 failing and 15 passing test labels, the low end of both TPR's and TNR's range is at least 0.8, and it answered unknown on at most 10%. The output says which part failed, and lists the disagreements. Read every disagreement: sometimes the judge is right and the label is wrong.
The check writes a calibration record to the eval's calibrations/ directory and rebuilds the reports of the runs it read. mst open then shows the judge as calibrated or not usable in the report's Judges table.
| What the check says | Likely cause and fix |
|---|---|
| Too few labels | Label more cases, and add cases that fail. |
| Low TPR | The judge believes the assistant's claims. Use task-completion or grounded-in-tools, or write a criterion that names the evidence. |
| Low TNR | The judge is too strict, or its question asks more than your labels do. Narrow the criterion or the rubric. |
High unknown | The client doesn't report its tool calls, or long tool results are cut. Raise the judge's maxToolOutputSize. |
| Low kappa, both low | The question is vague. Split it into criteria a person can check one at a time. |
Change the judge, its model or its criterion text, then grade the run again. mst grade runs no client, and the regrade keeps the labels:
npx mst grade 7f3c2a --config eval.json
npx mst judges check 7f3c2a.g2 --judge task-completion --split dev
While you change the judge, read only dev labels (--split dev, which isn't recorded). Check the test split once, when you're done. A judge tuned until it matches the test labels has learned those labels, not your standard: if you tuned against test, label new cases before you trust the check.
A calibration applies to one judge identity: a hash of the judge, its version, its model and options, its threshold and its repetitions. Change any of them and the report marks the calibration stale. Your labels still apply, because a label belongs to the question, not the judge version. Grade a run with the changed judge and run mst judges check again.
id, so old labels don't answer the new question.version in the plugin.A pairwise judge, such as the built-in preference, compares a variant's trial with the baseline's. Label it the same way: mst label page 7f3c2a --judge preference shows each case's two sides as A and B, and you press A, B or T (tie). mst judges check reports how often the judge's preference matches yours and how often each of you called a tie. Pairwise judges have no usable gate yet.
mst label page refuses it, and export writes a sheet with no answers. Set "redactStoredResponses": false and run again. Labels made in another tool can still be imported.test split. Use --split dev while changing the judge.mst judges check and mst label: every optionWhat SKILL.md sets; muted values are Claude Code's defaults
6 skills in this plugin
/mcp-tester-guideReference for @gleanwork/mcp-server-tester (MST) 2.0, the Playwright-based testing and evaluation framework for MCP servers, with the `mst` CLI. Covers which skill to use for a task, the vocabulary (test, eval, case, client, variant, trial, assertion, judge), entry points, server config and auth, clients, judges, plugin names, CLI commands, what 1.x names became, and common mistakes. Use when working on MCP server tests or evals, or reading or upgrading code that uses MST./optimize-mcp-tool-metadataImprove an MCP server's tool metadata (tool names, descriptions, input schema descriptions) with measured evidence, using `mst optimize` (start, evidence, try, finish), runToolOptimization from @gleanwork/mcp-server-tester/evals, or `mst run` with tool-metadata variants. Use when asked to improve tool descriptions, fix tools a model misses or over-uses, optimize tool discoverability, or compare description rewrites. Produces a recommendation with the exact metadata to apply; never edits the server or the dataset unless asked./run-mcp-evalRun an MCP eval with mst and read what it says. Covers checking a config before it spends money, small runs first, reading the pass rate and its range, comparing variants and the previous run, incomplete cases and infrastructure failures, resuming a run, grading it again, Docker and detached runs, and CI. Use when asked to run an eval, why an eval failed, what a run's results mean, to rerun or resume a run, regrade a run, or run evals in Docker or CI./mcp-server-tester:calibrate-mcp-judgefrom mcp-server-tester
npx claudepluginhub gleanwork/mcp-server-tester --plugin mcp-server-testerOther plugins' skills for the same job