Check one extracted record
check_extractionValidate extracted data against a gold standard record: check schema, field accuracy, and fabrication. Returns pass/fail with detailed per-field issues, using the same logic as CI gates.
Instructions
Deterministically check a structured extraction against its hand-labelled gold record: schema validity (nullable fields are the abstention contract), field accuracy with per-field normalisers (dates → ISO, money → minor units) and aliases, and fabrication — a non-null value in a field whose gold is null (a guessed date of birth the document never stated). Same logic as the CI gate — no model, no network. Returns pass/fail with named issues and a per-field verdict.
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": {
"record": "<record>",
"gold": "<gold>"
},
"name": "check_extraction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gold | Yes | The hand-labelled gold record; null means THE DOCUMENT DOES NOT STATE IT — gold's keys define which fields are compared | |
| record | Yes | The record the system extracted ({ field: value | null }) | |
| schema | No | The JSON Schema the record must validate against (type a must-find field non-nullable, a may-be-absent field nullable) | |
| aliases | No | Per-field acceptable alternative gold values (matched after normalisation) | |
| normalize | No | Per-field normaliser applied to both sides before comparing |