Skip to main content
Glama

judge

Rate a single item with multiple independent models to get aggregate rubric scores, structured output, and inter-rater agreement for reliable evaluation.

Instructions

Rate a single item using N diverse judge models and return aggregate scores.

Auto-selects judges spread across different providers for independence. Enforces structured output (CSV or JSON scores), retries on malformed responses, and computes inter-rater agreement metrics.

Use this for evaluation tasks: rating translations, code quality, content accuracy, or any rubric-based assessment.

Args: prompt: The evaluation prompt (describe what to rate and provide the content) rubric: List of scoring dimensions (e.g. ["accuracy", "naturalness", "completeness"]) scale: Rating scale as "min-max" (default "1-5", also supports "1-10") count: Number of judge models to use (default 3) min_tier: Minimum quality tier for judge selection (default "A") free_only: If true, only use free models as judges output_format: How judges format scores — "csv" (default) or "json" max_tokens: Max response tokens per judge (default 256) temperature: Sampling temperature (default 0.0) exclude_providers: Do not use these hosts (pass the producer, e.g. ["minimax"]) exclude_model_ids: Do not use 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": {
      "prompt": "<prompt>",
      "rubric": "<rubric>"
    },
    "name": "judge"
  }
}

Input Schema

NameRequiredDescriptionDefault
countNo
scaleNo1-5
promptYes
rubricYes
min_tierNoA
free_onlyNo
max_tokensNo
temperatureNo
output_formatNocsv
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.4/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden, and it delivers real behavioral detail: judges are auto-selected across providers for independence, output is structured (CSV/JSON) with retries on malformed responses, and inter-rater agreement metrics are computed. It omits cost/latency implications and what happens if all judges fail or agree poorly, which matters for a tool that fans out to N models.

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 one-line purpose, then behavior, then usage, then a parameter list — a sensible ordering for a complex tool. The Args block is long but earns its place because the schema carries zero descriptions; a few entries (count, max_tokens, temperature) are near-boilerplate but necessary at this coverage level.

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 an 11-parameter, fan-out evaluation tool, this covers purpose, mechanism, failure handling, and every parameter, and an output schema exists so return values need no explanation. What is missing is operational framing the agent would want before spending on N judges: cost, latency, and the meaning of the min_tier values.

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

Parameters5/5

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

Schema description coverage is 0% across 11 parameters, and the Args block compensates fully, documenting each parameter with meaning, defaults, and examples — 'min-max' format for scale, a concrete rubric example, 'pass the producer, e.g. ["minimax"]' for exclude_providers, and the CSV/JSON distinction for output_format. The only residual gap is that min_tier's allowed tier vocabulary is never enumerated.

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?

Opens with a specific verb and resource: 'Rate a single item using N diverse judge models and return aggregate scores.' The word 'single' implicitly contrasts with the batch-oriented sibling, and the sentence names both the mechanism (multiple judge models) and the output (aggregate scores), so an agent can tell what it does 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 Guidelines4/5

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

Provides clear usage context: 'Use this for evaluation tasks: rating translations, code quality, content accuracy, or any rubric-based assessment.' The 'single item' framing narrows it against batch_judge, but it never names an alternative tool or states when not to use this one (e.g. multi-item evaluation, cost-sensitive runs).

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