Skip to main content
Glama

Space AI — Hallucination Detection & Space Rank

check_hallucinations

Audit any AI response for hallucinations, fabricated statistics/dates/citations, unverified claims, or sycophancy using Space AI's white-box detector (token surprisal + residual truth probe + claim-level verifier). Requires a prepaid Space AI API key ($0.002/check; get credits at https://spaceresearch.ai/product.html#pricing). Read-only.

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": {
      "user_prompt": "<user_prompt>",
      "assistant_reply": "<assistant_reply>"
    },
    "name": "check_hallucinations"
  }
}

Input Schema

NameRequiredDescriptionDefault
deepNoRun a 2-pass deep verification check (slightly slower, higher recall). Default false.
user_promptYesThe original user question or instruction.
source_modelNoOptional model ID that produced assistant_reply (e.g. 'claude-sonnet-5-5', 'gpt-4.1').
assistant_replyYesThe AI assistant's answer to verify for hallucinations.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does well: it discloses the cost ($0.002/check), the prepaid API key requirement with a link to obtain credits, the detection methodology, and declares itself 'Read-only'. The main omission is what the call actually returns — a score, verdict, or claim list — which an agent needs before relying on the result.

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?

Three tight sentences, front-loaded with the capability, then the operational prerequisites. The parenthetical detector internals ('token surprisal + residual truth probe + claim-level verifier') are jargon-heavy but justify the tool's differentiation, and the pricing URL earns its place as a prerequisite for use.

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

Completeness3/5

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

For a four-parameter tool with no annotations and no output schema, the description covers purpose, auth, cost, and safety profile, but says nothing about the response shape or failure modes such as an invalid key or exhausted credits. An agent knows how to call it but not how to interpret or recover from the result.

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 description coverage is 100%, so all four parameters (including deep, user_prompt, source_model, assistant_reply) are already documented in the schema. The description adds no parameter-level meaning beyond a loose hint at the multi-stage verifier that presumably corresponds to deep mode, so the baseline of 3 applies.

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

Purpose4/5

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

States a specific verb and resource ('Audit any AI response for hallucinations') and enumerates the exact defect classes it catches (fabricated statistics/dates/citations, unverified claims, sycophancy), plus the detection method. It never distinguishes itself from the sibling ask_and_verify, which an agent would plausibly consider for the same task, so it stops short of a 5.

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?

Usage is implied by 'audit any AI response' and the required API-key precondition with per-check pricing is disclosed, which is genuinely useful for deciding whether to call it. However, there is no explicit when-not guidance and no named alternative (e.g. ask_and_verify) to route against, leaving the selection decision to inference.

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