Skip to main content
Glama

run_eval_contract

Read-only

Run an IA-EVAL test suite (.ia-eval.yaml contract): call the model per scenario; return passed (true, false, null if undecided) and a verdict (PASS, FAIL, PARTIAL). Expectations are assertions that fail a scenario whatever its score; evaluators give the score. Hosted: pass inline_contract. validate_only calls no model. draft ({description, system_prompt?, scenario_count?, task_type?}) writes a contract from a plain-language description instead (server model, nothing to run yet): read it, add real inputs that are not in the description, then run it.

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": {
      "draft": {
        "description": "A support bot that answers refund questions from the policy page."
      }
    },
    "name": "run_eval_contract"
  }
}

Input Schema

NameRequiredDescriptionDefault
draftNoWrite a contract instead of running one.
api_keysNoYour keys per provider. Only Groq falls back to the server key; any other provider needs yours.
overridesNoOverride contract defaults
contract_pathNoA .ia-eval.yaml under the server's working directory (local use).
validate_onlyNoCheck the contract against the IA-EVAL schema and stop: no model call, no key, deterministic. Returns valid + issues instead of throwing. Gate a PR that edits a contract on valid.
inline_contractNoThe contract as an object: "metadata" ({name, version, model?, provider?}), "expectations", "evaluators" and "scenarios" ([{id, input, expectations?}]). draft writes one.

Output Schema

NameRequiredDescriptionDefault
validNo
issuesNo
summaryNo
metadataNo
warningsNo
contract_pathNo
scenario_resultsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Adds real behavioral detail beyond the annotations: validate_only makes no model call, needs no key, is deterministic, and returns 'valid + issues instead of throwing'; draft uses the server model and produces nothing runnable; expectations fail a scenario regardless of score while evaluators assign it. Annotations already cover safety (readOnlyHint/destructiveHint/openWorldHint), so this is substantive extra context. Minor tension: 'draft writes a contract' is artifact creation rather than state mutation, so it does not rise to a direct contradiction of readOnlyHint.

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-loads the primary action and keeps every sentence informational, with no filler. The delivery is dense and parenthetical-heavy, packing three modes into one paragraph, but for a six-parameter multi-mode tool the length is justified.

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?

Given six parameters, nested objects, and an existing output schema, the description covers all three usage modes, the expectations-vs-evaluators distinction, and the hosted-key constraint, so an agent can choose a mode and call it. It does not address the contract_path local-use case or how partial/undecided verdicts should be handled downstream, leaving small gaps.

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 description coverage is 100%, so every parameter is already documented in the schema, including validate_only, inline_contract structure, and the api_keys fallback rule. The description largely restates that schema content; its only genuine addition is sequencing advice on using draft output, which is workflow rather than per-parameter meaning. Baseline 3 is correct.

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?

States a specific verb and resource ('Run an IA-EVAL test suite (.ia-eval.yaml contract)') and describes the core output (passed flag with tri-state, verdict PASS/FAIL/PARTIAL). The mode breakdown (run vs. validate_only vs. draft) makes the tool's scope legible, though it never names which sibling to prefer for overlapping eval tasks like evaluate_llm_output.

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?

Gives concrete when-to-use conditions for each internal mode: pass inline_contract when hosted, use validate_only for a deterministic no-model gate on a PR, use draft when you only have a plain-language description and then 'read it, add real inputs that are not in the description, then run it.' It lacks any exclusion against sibling eval tools, so it stops short of full routing guidance.

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.