Skip to main content
Glama

evaluate_llm_output

Read-onlyIdempotent

When: you hold outputs a model already produced and want them judged without calling the model again. Each check runs when its input is given: source → grounding: is the model making things up, claims, numbers or negations its source does not support; reference → similarity to an expected answer (cosine + ROUGE-L); rules → guardrails on what the assistant may or may not say (must include, must not include, length, format, regex, no PII); schema → JSON Schema; outputs (the same question asked several times) → consistency; variants ({variantId, answer}, e.g. answers for men and for women) → bias; base + transformed (answers to the question rephrased, retyped, reordered) → metamorphic stability. Gives: one gate per check, the worst on top. Deterministic, no model call, no key. Does not prove: that a well-grounded answer is right when its source is wrong, nor tone or helpfulness, which need a calibrated judge.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "output": "Refunds are accepted within 60 days.",
      "source": "Refunds are accepted within 30 days of delivery."
    },
    "name": "evaluate_llm_output"
  }
}

Input Schema

NameRequiredDescriptionDefault
baseNoMetamorphic: {question?, output} of the original question.
rulesNo[{type, value}]: must_include, must_not_include, max_length, min_length, word_count_max, word_count_min, starts_with, ends_with, format (json, markdown, bullet_list), regex_match, regex_not_match; or "no_pii".
checksNoDefault: every check whose input is given.
outputNoThe model output to judge.
schemaNoJSON Schema the output (as JSON) must satisfy.
sourceNoText the output must be grounded in.
outputsNoSeveral outputs of the same prompt.
variantsNo[{variantId, answer}], one per variant of the prompt.
referenceNoExpected answer.
thresholdsNoFor similarity: {cosine, rouge_l} (defaults 0.75, 0.5).
transformedNoMetamorphic: [{relation: case|typo|paraphrase|reorder|translation|specialization, output}], answers to transformed questions.
metamorphic_thresholdsNoPer-relation overrides, 0-1.

Output Schema

NameRequiredDescriptionDefault
gateNo
checksNo
verdictNo
next_stepsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, but the description adds substantive behavior beyond them: 'Deterministic, no model call, no key', the output shape ('one gate per check, the worst on top'), and an explicit statement of what the tool cannot establish. That is real operational context rather than restatement of hints.

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 'When:' and organized by 'Gives:' and 'Does not prove:' anchors, so it is scannable despite being one dense block. Every sentence carries information, though the run-on check-mapping sentence packed with arrows and parentheticals is heavier than it needs to be.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 12-parameter, zero-required tool with nested objects and an output schema, the description supplies what the schema cannot: which inputs activate which check, that unspecified checks simply do not run, and the limits of the verdicts. Return-value details are correctly left to the output schema.

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?

With 100% schema coverage the baseline is 3, and the description earns above that by explaining the semantic pairing of parameters — that 'outputs' means the same question asked several times, that 'variants' are {variantId, answer} across demographic variants, and that base plus transformed answers together drive metamorphic stability. It does not, however, cover 'thresholds' or 'metamorphic_thresholds' tuning semantics, leaving that entirely to the schema.

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?

Specific verb+resource: judges already-produced model outputs and returns pass/fail gates across seven named check families (grounding, similarity, rules, schema, consistency, bias, metamorphic). The opening clause 'you hold outputs a model already produced and want them judged without calling the model again' distinguishes it from any sibling that would re-run or generate a model response.

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

Usage Guidelines5/5

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

Gives an explicit triggering condition ('When: you hold outputs a model already produced') plus a per-check routing table so the agent knows exactly which input selects which check (source→grounding, reference→similarity, rules→guardrails, variants→bias, base+transformed→metamorphic). It also states when NOT to use it: 'Does not prove: that a well-grounded answer is right when its source is wrong, nor tone or helpfulness, which need a calibrated judge.'

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