Check output
check_outputCheck a structured output you're about to return or act on for degenerate-answer patterns a schema check can't see: invalid JSON, a placeholder value ('TBD', 'N/A', 'unknown') where a real answer should be, an array of byte-identical items (a common symptom of a loop that never advanced), or an expected field that's missing or empty. Schema validity and answer quality are different guarantees, call this before trusting your own output, not just after validating it parses.
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": "check_output"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output | Yes | The output to check, a JSON string, or an already-parsed value | |
| expectedFields | No | Optional: top-level field names expected to be present and non-empty |