Skip to main content
Glama

ai_groundedness

Read-only

RAG groundedness / hallucination check — Check whether an AI answer is backed by its source text (RAG faithfulness). Splits the answer into atomic claims and labels each SUPPORTED, CONTRADICTED or NOT_IN_CONTEXT using only the context, with an evidence quote that is verified offline against the context. Returns a faithfulness score and verdict GROUNDED / MOSTLY_GROUNDED / UNGROUNDED / UNFAITHFUL. Params: context= (source text, up to 24k chars) or url= (page to use as context), answer= (text to check), optional question=. Price: $0.012 USDC (Base, via x402).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "context": "<context>",
      "answer": "<answer>"
    },
    "name": "ai_groundedness"
  }
}

Input Schema

NameRequiredDescriptionDefault
answerYese.g. The Eiffel Tower was finished in 1889 and is about 330 m tall. It was designed by Gustave Eiffel.
contextYese.g. The Eiffel Tower is 330 metres tall. It was completed in 1889 as the entrance arch for the World's Fair in Paris.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already cover read-only, open-world, and non-destructive traits, so the bar is lower; the description still adds real context: evidence quotes are verified offline, the 24k char context cap, the verdict taxonomy, and the $0.012 USDC x402 pricing. What remains unstated is latency and how the offline verification behaves on failure.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded and the description is dense but efficient, moving from what it does to output to params to price. It is one long paragraph and the parameter sentence is where the phantom-param error creeps in, but overall little is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-param, no-output-schema tool the description is nearly complete: it explains the return values (faithfulness score, groundedness verdicts, per-claim labels), the input semantics, cost, and input limits. The only real gap is that the advertised url/question params are absent from the schema, slightly undercutting the input story.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, but the schema only gives example strings, so the description's framing of context as source text (up to 24k chars) and answer as the text to check adds genuine meaning. However, it also advertises a 'url=' context parameter and an 'optional question=' parameter that do not exist in the schema, which can mislead an agent building a call.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource — checks whether an AI answer is backed by source text — and immediately names the domain (RAG faithfulness, hallucination check). This is clearly separable from siblings like ai_claims or ai_chat, which do extraction or conversation rather than groundedness scoring.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description makes the use case (verifying RAG faithfulness / detecting hallucination) obvious, which implies when to reach for it, but it names no alternatives or exclusions. There is no explicit 'use this instead of ai_claims when...' routing guidance, leaving the agent to infer selection.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources