opengate-mcp
v0.1.4Check whether an AI answer is grounded in its context — deterministic, no LLM judge.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
check_grounding
Check whether an answer is grounded in the provided context. Deterministic (no LLM judge): verifies that required facts appear in the answer, that every number in the answer traces to the context, and — for questions the context cannot answer — that the answer abstains instead of fabricating. Use this to self-check RAG / document-QA / retrieval answers before returning them.
| Parameter | Type | Description |
|---|---|---|
answer * | string | The answer to check. |
context * | The retrieved context the answer must be grounded in (a string, or an array of passages). | |
allowed_new_numbers | array | Numbers the answer may introduce that are not in the context (e.g. from the question). |
expected_facts | array | Facts a correct answer must contain (e.g. "30 days", "no restocking fee"). Each must appear in the answer. |
must_abstain | boolean | Set true when the context does NOT contain the answer: the answer must then decline rather than fabricate. |
question | string | The original question (optional; lets numbers from the question count as grounded). |