Skip to main content
Glama

ai_citation_check

Read-only

Citation checker for RAG / AI answers — Checks whether each [n]-cited sentence in an AI answer (answer=) is actually supported by the cited source. Sources via sources= (JSON array of strings or {id,text,url}) or urls= (comma list, numbered 1..n, fetched). Per sentence: SUPPORTED/PARTIAL/NOT_SUPPORTED/CONTRADICTED with a supporting quote that is verified against the source offline; also flags citations to missing sources and uncited factual sentences. Returns citation accuracy, coverage and a verdict (WELL_CITED/PARTLY_SUPPORTED/POORLY_CITED/MISCITED). 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": {
      "answer": "<answer>",
      "sources": "<sources>"
    },
    "name": "ai_citation_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
answerYese.g. The Eiffel Tower was completed in 1889 [1]. It is 330 metres tall [1].
sourcesYese.g. ["The Eiffel Tower was completed in 1889 for the World Fair. It is 330 metres (1,083 ft) tall."]

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations cover safety (readOnlyHint=true, destructiveHint=false) and open-world access, yet the description adds substantial behavior the agent could not infer: quotes are verified offline against the source, missing-source citations and uncited factual sentences are flagged, and there is a paid x402 call at $0.012 USDC on Base. The pricing/payment requirement is exactly the kind of operational constraint annotations never carry.

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?

Front-loaded with the core claim first, then input modes, then per-sentence output categories, then verdicts and price — a sensible order with no filler sentences. It is dense, and the label phrase 'Citation checker for RAG / AI answers' slightly duplicates the title, but every clause carries information.

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?

With no output schema, the description correctly compensates by enumerating the return shape (per-sentence labels, supporting quote, citation accuracy/coverage, and the four verdicts). The one gap is the documented urls= input that is absent from the schema, leaving the agent unsure whether URL fetching is actually available.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning beyond the schema examples: it explains that the answer must contain [n] markers keyed to source indices, and that sources may be either plain strings or {id,text,url} objects. It also references a urls= parameter that does not appear in the input schema, which blurs rather than clarifies that path.

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 precise verb and resource: it checks whether each [n]-cited sentence in an AI answer is supported by the cited source, and it names the concrete artifacts (answer=, sources=/urls=). This is far more specific than the sibling *_check names, which alone would not reveal that the input is a citation-bearing AI answer.

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

Usage Guidelines4/5

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

Gives clear invocation context and two mutually exclusive ways to supply sources (sources= as inline JSON or urls= to be fetched and numbered 1..n), which resolves the main how-do-I-call-it question. It does not distinguish this tool from near alternatives such as ai_rules_check, though the read-only validation framing makes the domain reasonably evident.

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