verify_response
Detect hallucinations in AI responses by analyzing against provided context. Returns a risk score, verdict, and flagged claims. All computation is local.
Instructions
Verify an AI-generated response for hallucination using the 4-signal fusion cascade.
Runs the same hallucination detection pipeline as the proxy (WITNESS + ECE + EPR + Spectral) but callable directly from any MCP client. Use this after generating a response to check for factual claims that aren't grounded in the provided context.
Returns a structured verification report with:
fused_risk: Combined hallucination probability [0.0 = safe, 1.0 = hallucinated]
verdict: "pass", "warn", or "flag"
per-signal scores (entity_coverage_gap, ece_curvature, epr_rate, spectral_consistency)
flagged_claims: List of specific claims that may be hallucinated
recommendation: Suggested action (accept / review / reject)
All computation is 100% local — zero LLM calls, zero API calls.
Args: response: The AI-generated text to verify context: The source context that was provided to the AI prompt: The original user prompt/query (helps calibrate verification)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | No | ||
| context | No | ||
| response | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |