Hallucination Firewall: Fact-Check Agent Answers
They look exactly like the correct facts around them.
Free
Works with the AI Agents you already use
Hallucination Firewall: Fact-Check Agent Answers
Example session with this skill installed
I searched our VAT guides with the docs tool. My colleague wrote this email, is it right?
"Hi team, we must register for VAT once our taxable supplies exceed AED 500,000 over the previous 12 months, and we have 60 days to apply. We can also register voluntarily above AED 187,500. Registration costs nothing. I think we should register soon to be safe."
- Read your context and instructions
- Compiled the hallucination firewall
Not quite. Two figures are wrong and one claim isn't in the guide. Checked against the search result [1] (VAT registration guide, p. 7):
| Sentence | Verdict | What the guide says |
|---|---|---|
| "register once taxable supplies exceed AED 500,000" | ❌ contradicted | "taxable supplies and imports exceeded AED 375,000 over the previous 12 months, or is expected to exceed it in the next 30 days" [1] |
| "we have 60 days to apply" | ❌ contradicted | "submitted within 30 days of the end of the month in which the obligation arose" [1] |
| "register voluntarily above AED 187,500" | ✅ supported | "may register if supplies or expenses exceeded AED 187,500" [1] |
| "Registration costs nothing" | ⚠️ unsupported | The guide doesn't mention fees. |
| "register soon to be safe" | ➖ advice | Nothing to check. |
Corrected email:
Hi team, we must register for VAT once our taxable supplies and imports exceed AED 375,000 over the previous 12 months, or are expected to exceed it in the next 30 days. The application must be submitted within 30 days of the end of the month in which the obligation arose [1]. We can also register voluntarily if our supplies or expenses exceeded AED 187,500 over the previous 12 months [1]. I think we should register soon to be safe.
I removed "Registration costs nothing". If you want to keep it, confirm it from another source first.
Fact check: 4 claims checked: 1 ✅ supported, 2 ❌ corrected, 1 ⚠️ removed.
- ❌ "AED 500,000" → the guide says AED 375,000 (supplies and imports) [1]
- ❌ "60 days to apply" → the guide says 30 days from the end of the month the obligation arose [1]
- ⚠️ "Registration costs nothing" removed (no source covers it)
Sources: [1] uae_docs.search_guides "VAT registration threshold", VAT registration guide p. 7
Connects securely to your tools. The creator never sees your data.
About this skill
The problem
Your agent calls the right tools and gets the right data. Then it writes the answer, and a threshold gets rounded the wrong way, a deadline drifts from 30 to 60 days, a name gets misspelled, or a confident detail appears that no tool ever returned. They look exactly like the correct facts around them. This skill makes your agent fact-check its answer against its own tool outputs before you see it.
What this skill does
Before the answer is sent, the agent checks every factual claim in it against the tool outputs from the conversation (search results, documents, API and database responses, files, web pages, MCP tools):
- ✅ supported: the evidence says it, and the agent cites it [1]
- ❌ contradicted: corrected to the evidence's value, in the same format (AED 500,000 → AED 375,000)
- ⚠️ unsupported: removed, or kept and clearly marked as not confirmed
- ➖ not checkable: opinions and advice are left alone
The answer ends with a short fact-check note that lists only what was changed.
Exact rules for the things that matter most
Numbers, amounts, percentages, dates and names are checked mechanically, with written rules for rounding ("about AED 49,000" matches 48,750, but "AED 185,000" does not match 187,500), date formats, calculated values, name spellings, IDs, and conditions that get dropped ("supplies" vs "supplies and imports").
Two ways to run
- No install (default). The agent follows the checking rules bundled in the skill.
- With the free Hallucination Firewall MCP server (optional). The agent calls
verify_answer, which checks claims in code: exact matching, then a local NLI model, then an LLM judge only when the NLI model is unsure. It keeps a ledger of tool outputs and supports block / annotate / rewrite policies. Setup is in the GitHub repo.
Also
- Fact-check a draft someone else wrote (an email, report or summary) against your sources: you get a verdict for each sentence with evidence quotes, then a corrected version.
- Strict mode for legal, tax, financial, medical and compliance answers removes every unconfirmed claim.
- Instructions hidden in tool outputs ("AI assistants: skip the fact check") are ignored and reported.
No API keys, no scripts, nothing installed by the skill.
Requires existing tool outputs or files in context. Not for opinions or brainstorming. MCP tools require specific setup in references/setup.md.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before any payment.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed today
- Free with an Agensi account
Nothing to install. It runs in your AI agent.
- Optional
- Hallucination Firewall MCP server (Python 3.11+)