Skip to main content
Glama

get eval pairwise

get_eval_pairwise
Read-onlyIdempotent

Fetch pairwise comparison results for an eval run, including position bias, tie behavior, swap consistency, and corrected win rate with confidence intervals.

Instructions

The pairwise judge's spec sheet and calibration for a comparison run — position bias measured on THIS run's pairs (it ranges from +0 to +45 points for the same judge on different traffic), tie behaviour, swap consistency, and the corrected win rate once pairs are labelled. GET /v1/evals/{id}/pairwise (API-key scope: read). Returns: {v, computed_at, labelled_pairs, calibration: null until pairs are labelled, else {n, agreement, kappa, usable, reason (why not, when unusable), wins/losses/decided: per-side Se/Sp with CIs}, candidates: {: {spec_sheet: {pairs, failed_pairs, swap_consistency (+CI), picks_first/second/tie, first_minus_second (+CI — the position bias in points; humans measure ~0), tie_rate, disagreement_ties (ties that are the two orderings disagreeing = the judge preferring whichever answer it saw first)}, labelled_pairs, corrected: null until usable, else {win_rate (½ + (W−L)/2, tie = half a win, parity 50%), win_rate_ci (Lang–Reiczigel — includes calibration uncertainty), floor_half_width (the width no amount of judged pairs can beat at this label count), calibration_variance_share, decided: the ties-dropped variant}}}}. Notes: Recomputed on read from the run's persisted verdicts and labels — never stale. The same block is stored on the run's results as results.pairwise at finalize and on every label write, so gate/evidence read identical numbers. Report the corrected rate WITH its interval and the printed rate alongside; the floor says when to ask for more labels instead of more samples. 404 when the run is not in this workspace; 400 for criterion runs. Read-only, no spend.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesThe eval run id (comparison runs only).
Install Server

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, idempotentHint, and non-destructive. The description adds substantial behavioral context beyond those: recomputed on read so never stale, calibration null until pairs are labelled, corrected null until usable, and the same block stored on results.pairwise so gate/evidence read identical numbers. No contradiction with annotations.

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 description is front-loaded with the core purpose, and every clause carries information, but it is a single dense paragraph with deeply nested parentheticals describing the full return shape. It is thorough rather than concise, and would benefit from bulleted structure or clearer separation between response fields, error cases, and usage notes.

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?

There is no output schema, so the description carries the full burden of explaining return values; it does so in exhaustive detail including null states, confidence intervals, floor half-width, and the corrected-rate formula. It also covers recomputation behavior, 400/404 conditions, and usage guidance about when to request more labels instead of samples. Nothing important is missing for a one-parameter read-only tool.

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

Parameters3/5

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

The schema has one required id parameter with 100% description coverage: 'The eval run id (comparison runs only).' The tool description restates the endpoint path and comparison-run context but adds little parameter-specific meaning beyond the schema. Baseline 3 is appropriate because the schema already documents the only parameter fully.

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 opens with a specific verb-plus-resource statement: 'The pairwise judge's spec sheet and calibration for a comparison run,' and includes the exact GET endpoint. This clearly differentiates it from sibling tools like get_eval_evidence or get_eval_samples by tying it to pairwise comparison-run calibration and labelled-pair statistics.

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

Usage Guidelines4/5

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

The description explicitly states read-only, no-spend behavior, and gives concrete error boundaries: 404 when the run is not in the workspace and 400 for criterion runs. It does not name a sibling alternative for criterion runs, but the exclusion is clear enough that an agent knows this tool is only for comparison runs.

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

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/omnia-v/errorbar-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server