Skip to main content
Glama

Rater agreement

aimrank_get_agreement
Read-onlyIdempotent

Inter-annotator agreement — Layer 4. Returns Cohen's κ (n=2 raters), Fleiss' κ, Krippendorff's α, Scott's π + Landis-Koch interpretation, plus the multi-rater coverage report.

min_raters overrides the ranking's configured min_raters_per_pair.

Also returns judge_alignment — how AI judges relate to people on this ranking: each judge's agreement with the human majority (Cohen's κ, Wilson 95% interval, overlap), the pairs where the focus judge (judge_id, default the most prolific) and people disagree, the escalation queue (pairs the judge could not be trusted on and the human votes they still need) and next_steps. judge_alignment.audit measures the focus judge on the audit slice, a random sample of the pairs it labelled (agreement with a Wilson interval, and how much of the slice people have answered), and gives each item's win share corrected by people's choices there (prediction-powered inference: estimate, interval_95, people_only, sample_gain).

bridging is agreement ACROSS groups of voters: each item's score is high only if every group prefers it (Polis group-informed consensus: the geometric mean over groups of (wins + 1) / (comparisons + 2)), with lowest_group_rate, spread and the items groups part on most. Groups are what voters declared on the vote; group_by names the voter_segment key (default: the key with the most groups of at least 5 people). With fewer than two such groups it returns a status and a note, not a score.

For the ranking's owner it also returns principles: the rules derived from people's choices (rules_markdown, ready to put in an agent's instructions), each with the held-out pairs it applied to and how often it sided with people. Derive them with aimrank_synthesize_judge_prompt (mode="principles").

For the ranking's owner and moderators it also returns contestants: the result per maker (agent version, model, prompt). Name each item's maker in its private _contestant attribute, which voters and judges never see; each maker gets a Bradley-Terry rating across cases with a case-resampled 95% interval, clearly_ahead_of_next, and surprises (cases a maker lost to one rated well below it). People (people) and the AI judge (ai_judge) are fitted apart.

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_agreement"
  }
}

Input Schema

NameRequiredDescriptionDefault
api_keyNo
group_byNo
judge_idNo
min_ratersNo
ranking_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / group_by
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Group By"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / judge_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Judge Id"
      +}
  3. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations only declare read-only/idempotent/open-world; the description adds real behavioral facts beyond them: `principles` and `contestants` are gated to the ranking's owner and moderators respectively, `_contestant` is a private attribute invisible to voters and judges, and with fewer than two qualifying groups the tool returns a status and a note instead of a score. It also discloses that api_key is optional on the public endpoint but refused on /mcp/mcp — a call-shaping detail no annotation conveys.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The first sentence front-loads well, but the body runs several hundred words of return-field enumeration (κ variants, Wilson intervals, sample_gain, lowest_group_rate, spread, surprises, estimate, interval_95) that the output schema already documents. Sectioning and backticked field names help navigation, yet the density of output-shape detail obscures the call-selection essentials and does not earn its length.

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 complex analytics tool with five parameters, role-gated result blocks, and conditional fallbacks, the description covers nearly everything an agent needs: access tiers, defaults, overrides, and degenerate-case behavior. Remaining gaps are minor — no mention of `ranking_id` semantics or what happens on an unauthorized/nonexistent ranking — and an output schema exists, so return values need not be explained further.

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 all parameter meaning, and it does for four of five: `min_raters` overrides the ranking's configured min_raters_per_pair, `group_by` names the `voter_segment` key with a stated default (key with the most groups of ≥5 people), `judge_id` defaults to the most prolific judge, and `api_key` has explicit endpoint-dependent behavior. Only `ranking_id` is never described, though its name and required status make it near self-evident.

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 opening states the resource unambiguously ('Inter-annotator agreement — Layer 4') and then names the exact statistics returned (Cohen's κ, Fleiss' κ, Krippendorff's α, Scott's π), plus the secondary blocks: judge_alignment, bridging, principles, contestants. This is clearly distinct from the sibling read tools like aimrank_get_leaderboard or aimrank_get_ranking, which do not compute agreement. An agent can tell what this returns without opening the schema.

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

Usage Guidelines3/5

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

Usage is only implied: the description signals contexts (judge trust, escalation queue, maker comparison) but never states when to call this versus a sibling, nor any prerequisites such as needing completed votes first. The one explicit cross-reference — derive `principles` with `aimrank_synthesize_judge_prompt` (`mode="principles"`) — is a companion-tool routing hint rather than when-to-use guidance. Adequate but inferential.

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