Skip to main content
Glama

ai_judge_pairwise

Read-only

LLM-as-judge pairwise comparison — Compare two AI answers to the same question and pick the better one. Judged twice with the answers in both orders to cancel position bias; returns winner A / B / tie, confidence (high only when both orders agree), per-criterion 1-10 scores averaged over both runs, and reasons. Params: question=, a=, b=, optional reference= (ground-truth answer), optional criteria= (comma list, default correctness,helpfulness,completeness,clarity). Price: $0.012 USDC (Base, via x402).

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": {
      "question": "<question>",
      "a": "<a>",
      "b": "<b>"
    },
    "name": "ai_judge_pairwise"
  }
}

Input Schema

NameRequiredDescriptionDefault
aYese.g. The seasons are caused by the tilt of Earth's axis (about 23.4 degrees), which changes how directly sunlight hits each hemisphere during the year.
bYese.g. Seasons happen because Earth is closer to the Sun in summer and farther away in winter.
questionYese.g. What causes the seasons on Earth?

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

Annotations only declare readOnly/openWorld/non-destructive. The description adds substantive behavior the annotations cannot: double judging with order swapped to cancel position bias, confidence being 'high' only when both orders agree, per-criterion 1-10 scores averaged across both runs, reasons returned, and a concrete price ($0.012 USDC via x402) which tells the caller this is a paid, external call.

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?

Front-loaded with the purpose, then methodology/returns, then parameters, then price — a sensible order. It is dense but nearly every clause carries information; the trailing inline parameter list is the one part partly redundant with a fully-covered schema.

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?

There is no output schema, and the description does the work of explaining the return shape thoroughly (winner, confidence, averaged per-criterion scores, reasons), which is exactly what is needed here. The one incompleteness is the phantom reference/criteria parameters not present in the schema, leaving the caller unsure whether those options actually exist.

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

Parameters2/5

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

Schema coverage is 100%, so the three real parameters are already documented with illustrative examples. The description does add the default criteria list, but it also advertises two parameters — optional reference= and criteria= — that do not exist in the input schema, which can lead an agent to pass arguments that fail validation. This mismatch outweighs the added meaning.

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?

States a specific verb and resource: 'LLM-as-judge pairwise comparison — Compare two AI answers to the same question and pick the better one.' It also immediately distinguishes itself from generic generation siblings by naming the judging mode and the output (winner A/B/tie), so an agent knows exactly what class of operation this is.

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?

Clear context for use — you have two candidate answers to the same question and need a verdict — plus guidance on when to supply the optional reference answer (ground truth) and criteria. It does not explicitly name an alternative sibling (e.g. ai_compare) or state when not to use this tool, which keeps it below a 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources