sanity_check
Verify a claim before you act on it or hand it downstream. Every verdict comes from a real model inference run at request time (HHEM entailment) — never cached or guessed.
Two modes:
- "grounded" (default): is the claim faithful to the `context` you
supply? `context` is REQUIRED. This is a scoreable question.
- "open": is the claim consistent with live web evidence found right
now (real Tavily search, then the same model)? `context` is ignored.
This is consistency with current web content, NOT objective truth —
a claim can be well-supported by the web and still be wrong.
Reading the result (in `data`):
- `verdict`: "supported" (consistent with the source), "contradicted"
(clearly inconsistent), "unsupported" (not supported but not clearly
contradicted — treat as unverified), or "insufficient_evidence"
(open mode found nothing usable; says nothing about whether the
claim is true).
- `confidence_score`: the raw consistency score in [0, 1] — near 1 =
consistent with the source, near 0 = inconsistent. It is NOT
confidence-in-the-verdict: a "contradicted" verdict has a score near
0. It is 0.0 for "insufficient_evidence".
- `evidence`: the audit trail (context snippet, or web citations).
Suggested policy: act on "supported"; treat "unsupported" and
"insufficient_evidence" as unverified; reject or regenerate on
"contradicted".
Access: the public mcp.wickedapi.com server uses a shared, rate-limited
key, so this returns real verdicts directly -- but the shared budget is
small (about 20 requests/minute and 30 open-mode checks/day across ALL
users; grounded mode is not counted against the daily limit). An
http_status 429 means that shared budget is used up: retry after the
Retry-After seconds, run this server locally with your own
SANITY_API_KEY, or pay per call via x402 directly. A server with no key
configured returns an http_status 402 carrying x402 payment instructions
under `payment_required` instead.
Args:
claim: The single statement to verify (max 5,000 characters).
context: Source text the claim must be faithful to — a string or a
list of strings. Required for mode "grounded".
mode: "grounded" (check against `context`) or "open" (check against
live web evidence).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | grounded | |
| claim | Yes | ||
| context | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||