agent_output_validator
Validate LLM output: repair JSON, enforce schema, check grounding against a source, extract citations. Use when you need to check or repair a model answer: parse and fix broken JSON, validate against a schema, compare with a source for unsupported claims, extract citations. Example input: {"output":"{"total": 42,}","schema":{"type":"object"},"source":"optional source text"}. Returns: verdict, json{parseable,fixes_applied,value}, schema, grounding, citations.
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": {
"output": "<output>"
},
"name": "agent_output_validator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output | Yes | Raw LLM output | |
| schema | No | JSON Schema subset to enforce | |
| source | No | Source text for grounding check |