Skip to main content
Glama

compare

Runs blind A/B evaluations of two outputs—such as translations, code, or summaries—using multiple judge models, randomizing order to prevent position bias.

Instructions

Blind A/B comparison of two items judged by N models.

When blind=True (default), randomizes which item is shown as A vs B to each judge independently, then de-randomizes scores. This prevents position bias where judges consistently favor the first item shown.

Use for comparing translations, code solutions, summaries, or any pair of outputs where you want an objective preference.

Args: item_a: First item to compare item_b: Second item to compare context: Optional context for the comparison (e.g. the original task) dimensions: Scoring dimensions (default ["quality"]) scale: Rating scale as "min-max" (default "1-5") judge_count: Number of judge models (default 3) blind: Randomize A/B order per judge to prevent position bias (default true) min_tier: Minimum quality tier for judge selection (default "A") free_only: If true, only use free models as judges max_tokens: Max response tokens per judge (default 512) temperature: Sampling temperature (default 0.0) exclude_providers: Skip these hosts (the producer) exclude_model_ids: Skip these model ids

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": {
      "item_a": "<item_a>",
      "item_b": "<item_b>"
    },
    "name": "compare"
  }
}

Input Schema

NameRequiredDescriptionDefault
blindNo
scaleNo1-5
item_aYes
item_bYes
contextNo
min_tierNoA
free_onlyNo
dimensionsNo
max_tokensNo
judge_countNo
temperatureNo
exclude_model_idsNo
exclude_providersNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.15.1
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / exclude_model_ids
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Exclude Model Ids"
      +}
    • addedInput schema / properties / exclude_providers
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Exclude Providers"
      +}
  2. First observedv0.7.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well on the core behavior: it explains the blind randomization, per-judge de-randomization, and the position-bias rationale, so the agent understands how scores are produced. Gaps remain on operational traits — that this fans out to N separate model calls (cost/latency), what happens when judges disagree or fail, and what judge tiers mean.

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?

Well front-loaded: purpose, then the blinding mechanism and its rationale, then a compact arg list. The Args block partly restates schema titles, but given 0% schema description coverage this is justified rather than redundant; no filler sentences.

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

Completeness4/5

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

For a 13-parameter tool with no annotations, it covers the evaluation model (judges, tiers, blindness, scale, dimensions) and all parameters, and it need not explain return values since an output schema exists. The remaining shortfall is guidance on judge selection semantics and the practical cost of a multi-model fan-out.

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

Parameters4/5

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

Schema description coverage is 0%, so the description must compensate, and it documents all 13 params including format hints the schema lacks ('scale as "min-max"', dimensions default ['quality'], blind default true, temperature 0.0). Some entries stay thin — min_tier 'A' is unexplained as to what tiers exist, and exclude_providers '(the producer)' is cryptic — but overall meaning is added beyond bare titles and defaults.

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?

Opens with a specific verb and resource: 'Blind A/B comparison of two items judged by N models,' and the follow-up use-case sentence ('translations, code solutions, summaries, or any pair of outputs') makes the domain concrete. It does not name or differentiate itself against likely siblings like judge, batch_judge, or evaluate, so an agent still has to infer which of those to pick.

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?

Explicit when-to-use guidance is given ('Use for comparing ... where you want an objective preference') plus the condition that makes blinding meaningful. There are no stated exclusions or named alternatives, and nothing says when to prefer judge or batch_judge over this tool.

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