opengate-mcp

v0.1.4
io.github.nickjlamb/opengate-mcp Checked 3 days ago Published 5 months ago

Check 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.

ParameterTypeDescription
answer *stringThe answer to check.
context *The retrieved context the answer must be grounded in (a string, or an array of passages).
allowed_new_numbersarrayNumbers the answer may introduce that are not in the context (e.g. from the question).
expected_factsarrayFacts a correct answer must contain (e.g. "30 days", "no restocking fee"). Each must appear in the answer.
must_abstainbooleanSet true when the context does NOT contain the answer: the answer must then decline rather than fabricate.
questionstringThe original question (optional; lets numbers from the question count as grounded).