Skip to main content
Glama

Next pair to compare

aimrank_get_matchup
Read-onlyIdempotent

Get the next pair of entities to evaluate.

Strategies: adaptive (default), swiss, balanced, random, uncertainty, explore, information_gain, escalation, audit -- the same selection the web app uses. Left/right order is randomised, and the pair comes with no rating or predicted winner (match_quality is closeness only), so show it to the voter as-is.

escalation is the human review queue: only pairs an AI judge could not be trusted on (it tied, contradicted itself when A and B were swapped, disagreed with another judge, or was unsure), until enough people have voted on each. adaptive already mixes them in. escalated: true marks such a pair and never says which side the judge leaned to. A vote submitted with an API key resolves an escalation only when the ranking's owner turned on escalation_count_api_votes (aimrank_set_quality_config).

audit is the audit slice: a hash-chosen random sample of the pairs an AI judge labelled, so that people's choices on it measure the judge fairly (escalated pairs alone would show it at its worst). adaptive mixes these in too. The pair is not marked and never says which side the judge chose.

api_key is optional on the public endpoint; on /mcp/mcp a missing key is refused.

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": {
      "ranking_id": "<ranking_id>"
    },
    "name": "aimrank_get_matchup"
  }
}

Input Schema

NameRequiredDescriptionDefault
api_keyNo
strategyNoadaptive
ranking_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Goes well beyond the readOnly/openWorld/idempotent annotations: it discloses that left/right order is randomised, that the pair carries no rating or predicted winner (explicitly scoping match_quality to closeness only), that `escalated: true` never reveals which side the judge leaned toward, and that an API-key vote only resolves an escalation when `escalation_count_api_votes` is enabled. Auth preconditions are also stated ('on /mcp/mcp a missing key is refused').

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 purpose and the strategy roster, then progressively deeper detail on the two non-obvious strategies. It is on the long side and the escalation paragraph is dense, but nearly every sentence carries information an agent could not get from the schema or annotations.

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?

An output schema exists, so return values need not be described, yet the description still usefully clarifies the meaning of match_quality and the `escalated` flag. The notable omission is what happens when no further pairs are available (end of ranking or exhausted review queue), which matters for a 'next item' tool.

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 carry the load, and it largely does: it enumerates nine strategy values and their default, and explains the api_key rules per endpoint. Only `ranking_id` is left without any explanation, which is a minor but real gap for a required parameter.

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: 'Get the next pair of entities to evaluate.' Combined with the title and the strategy list, an agent knows exactly what this returns. It stops short of naming a sibling it is not (e.g. aimrank_get_daily_pair or aimrank_predict_matchup_winner), so disambiguation is left to inference.

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?

Excellent guidance on strategy choice: it states 'adaptive' is the default and explains when to pick `escalation` (human review queue, only pairs an AI judge was untrustworthy on) versus `audit` (hash-chosen random sample to measure judge fairness), and notes that adaptive already mixes both in. What it never addresses is when to call this tool rather than another tool entirely, such as the prediction or leaderboard siblings.

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