Verify Citations
verify_citationsCheck whether each citation in an agent output is supported by its source: extracts, optionally fetches, and judges citations, returning per-citation verdicts and an overall score.
Instructions
Is each citation in an output supported by its source? Extracts, fetches (opt-in, SSRF-guarded) and judges on your key.
What it does. Fetches only if the operator set IRIS_CITATION_ALLOW_FETCH=1, blocking private addresses. One judge call per resolved citation, within max_cost_usd_total. overall_score: supported / judged; null if none judged. Full detail: iris://capabilities.
When not to use it. With no citations (evaluate_output). Without IRIS_ANTHROPIC_API_KEY or IRIS_OPENAI_API_KEY.
Returns. JSON: id, reference_trace_id, overall_score, passed, verdict, total_unsupported, total_citations_found, total_resolved, total_judged, total_supported, total_cost_usd, warnings, citations.
Errors. IRIS_JUDGE_NOT_ENABLED, IRIS_JUDGE_UNKNOWN_MODEL, IRIS_UNKNOWN_TRACE (before any spend); IRIS_JUDGE_FAILED when every judge call failed. Failures return {"error":{code,message,recovery}} with isError; follow recovery.
Siblings. evaluate_with_llm_judge — semantic scoring; evaluate_output — the free deterministic path.
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>",
"model": "<model>"
},
"name": "verify_citations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | Judge model for per-citation verification. Supported: anthropic = claude-fable-5-1 | claude-opus-5-5 | claude-sonnet-5 (and the priced 4.x line); openai = gpt-5 | gpt-5-mini | gpt-4.1-mini (and the priced 4o, o3/o4 and retired o1 ids); an unknown id is refused with the full priced list. | |
| output | Yes | The agent output containing citations to verify | |
| provider | No | Auto-detected from model when omitted | |
| trace_id | No | Keep the verification result beside a stored trace (id from log_trace / get_traces). It is listed with the trace and never replaces its verdict; an unknown id is rejected before any fetch or judge call | |
| allow_fetch | No | false skips fetching for this call. Fetching happens only when the operator sets IRIS_CITATION_ALLOW_FETCH=1; true cannot turn it on. SSRF-guarded regardless. | |
| max_citations | No | Max citations to verify (extras skipped, not errored); default 20, at most 50 | |
| domain_allowlist | No | Fetch only from these hostnames (suffix match). Narrows IRIS_CITATION_DOMAINS when the operator set it, never adds to it. | |
| max_cost_usd_total | No | Cap TOTAL judge cost across all citations in this call, at most the operator's IRIS_CITATION_MAX_COST_USD_TOTAL (default 1.00 USD); the pipeline stops when the next call would exceed it | |
| per_source_max_bytes | No | Per-URL body cap; default 5MB | |
| per_source_timeout_ms | No | Per-URL fetch timeout; default 10_000 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| passed | Yes | ||
| verdict | No | ||
| warnings | No | ||
| citations | Yes | ||
| total_judged | Yes | ||
| overall_score | Yes | ||
| total_cost_usd | Yes | ||
| total_resolved | Yes | ||
| total_supported | Yes | ||
| total_unsupported | Yes | ||
| reference_trace_id | No | ||
| total_citations_found | Yes |