Skip to main content
Glama

Train a judge on ratings

train_judge

Use this when a test's answers have been rated and someone wants a judge that scores answers the way that rater would. It's tested on answers it hasn't seen, and only kept if it beats always giving the commoner verdict. Spends a little credit; each call trains a new judge.

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": {
      "test_id": "<test_id>",
      "name": "<name>"
    },
    "name": "train_judge"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesWhose opinions, like Maria's taste.
test_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the annotations (which only say it mutates, is not destructive, and is open-world), the description discloses cost ('spends a little credit'), a validation gate (evaluated on held-out answers), a quality bar (kept only if it beats the majority-class baseline), and non-idempotency ('each call trains a new judge'). These are exactly the behaviors an agent needs before committing to a paid, state-creating 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?

Three short sentences, each carrying distinct information (trigger, validation behavior, cost/side effect), with the use case front-loaded. Minor softness in quantifiers like 'a little credit' keeps it from being maximally precise.

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 two-parameter mutation tool with no output schema, the description covers the costly/irreversible aspects and the success criterion well. It leaves open what is returned (a judge identifier? a pass/fail?) and whether the operation is synchronous, which matters for an agent that must chain a follow-up call.

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

Parameters3/5

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

Schema coverage is 50%: 'name' is documented only as "Whose opinions, like Maria's taste." and 'test_id' has no description at all. The prose implicitly ties test_id to the test whose answers were rated and name to the rater being modeled, which adds some meaning, but neither parameter gets format, source, or naming-convention detail.

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?

The description states a specific outcome: building a judge that reproduces a particular rater's scoring behavior, and it is grounded in a precondition (a test whose answers have been rated). That is clearly distinct from siblings like list_judges or score_answers, though it never names an alternative to route against.

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?

The trigger condition is explicit and non-trivial: use it when answers have already been rated and someone wants an automated stand-in for that rater. It gives no explicit when-not guidance or named alternatives, so an agent must infer that unrated tests are out of scope.

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.