Skip to main content
Glama

Space AI — Hallucination Detection & Space Rank

space_rank

Rank up to 30 documents using Space Rank — de-biased order-invariant reranking by empirical rigor vs. hype, Bayesian surprise (with white-box neural surprisal + truth probe), RAG relevance, contradiction detection, legal risk, code security, or any custom rubric. Requires a prepaid Space AI API key ($0.002/call; 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": {
      "documents": "<documents>"
    },
    "name": "space_rank"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryNoQuery, topic, or reference claim to rank documents against.
top_nNoOptional number of top-ranked documents to return.
rubricNoBuilt-in rubric ('rag_relevance', 'rigor', 'surprise', 'contradiction', 'legal_risk', 'code_security', 'clinical_triage', 'llm_judge') or any custom ranking criterion.
documentsYesList of 1 to 30 candidate document texts to rank.
detect_contradictionsNoFlag conflicting or contradictory claims across the documents.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

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 does real work: it discloses read-only behavior, the prepaid API-key requirement with a signup URL, per-call pricing ($0.002), and the 30-document cap. It stops short of describing the response shape (ranking order, scores, or what the contradiction flag returns), which is the main remaining gap.

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

Conciseness3/5

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

Front-loaded with the action and the size limit, and the pricing/auth details are useful. But the dense parenthetical jargon ('white-box neural surprisal + truth probe') consumes space without being actionable for an agent choosing or calling the tool.

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 5-parameter tool with no output schema, the description covers the essentials an agent needs before calling: cost, credential requirement, read-only nature, and input size limit. Missing are the return format and the default behavior when `top_n` or `query` are omitted.

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 five parameters are already documented, and the description largely restates them (max 30 documents, rubric names). The one modest addition is framing `query` as a 'reference claim', but overall it adds little beyond the schema — baseline 3.

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 ('Rank up to 30 documents using Space Rank') and enumerates the ranking rubrics it supports, which separates it from siblings like ask_and_verify and check_hallucinations. The heavy jargon ('de-biased order-invariant reranking by empirical rigor vs. hype, Bayesian surprise...') adds marketing noise rather than further precision, which keeps it just 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?

The rubric list implies the use cases (RAG relevance, contradiction detection, legal risk, code security), so an agent can infer when to reach for it. However, there is no explicit when-to-use/when-not guidance and no comparison to sibling tools such as check_hallucinations, which overlaps conceptually with contradiction detection.

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