run_eval_contract
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
| Name | Required | Description | Default |
|---|---|---|---|
| draft | No | Write a contract instead of running one. | |
| api_keys | No | Your keys per provider. Only Groq falls back to the server key; any other provider needs yours. | |
| overrides | No | Override contract defaults | |
| contract_path | No | A .ia-eval.yaml under the server's working directory (local use). | |
| validate_only | No | Check 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_contract | No | The contract as an object: "metadata" ({name, version, model?, provider?}), "expectations", "evaluators" and "scenarios" ([{id, input, expectations?}]). draft writes one. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| valid | No | ||
| issues | No | ||
| summary | No | ||
| metadata | No | ||
| warnings | No | ||
| contract_path | No | ||
| scenario_results | No |