evaluate_agent_run
When: an agent ran and you have what it did. Gives: trajectory (trace + assertions: order, must_call, must_not_call, max/min calls, no_error, recovery, no_injection in tool results, no_pii in the final answer; OpenAI, Anthropic, LangChain or ReAct traces) and tool calls (calls + tools: the arguments of each function call or tool_use, even a single one, checked against its declared definition in OpenAI, MCP or Anthropic form: name allowed, required arguments, types, enums, no extra argument). One gate per check, the worst on top; an unreadable trace is INCONCLUSIVE, never PASS. Deterministic, no model call. Does not prove: that the agent reached the right outcome for the user, nor anything about calls absent from what you pass.
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": {
"trace": [
{
"role": "user",
"content": "Refund order 42"
},
{
"role": "assistant",
"content": [
{
"id": "t1",
"name": "issue_refund",
"type": "tool_use",
"input": {
"id": 42
}
}
]
}
],
"assertions": [
{
"tool": "issue_refund",
"type": "must_not_call"
}
]
},
"name": "evaluate_agent_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| calls | No | Tool calls the agent made: {name, arguments} (or Anthropic {name, input}). | |
| tools | No | The tool definitions it was given (OpenAI parameters, MCP inputSchema or Anthropic input_schema). | |
| trace | No | Messages array, run tree, or a Thought/Action/Observation log. | |
| assertions | No | [{type: "order", before, after} | {type: "must_call", tool} | …]. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gate | No | ||
| checks | No | ||
| verdict | No | ||
| next_steps | No |