Skip to main content
Glama

Tinplate Edge AI Safety, Security & EU Compliance

tinplate_hallucination_diff

Read-onlyIdempotent

Deterministic Hallucination Diff API: Fast first filter to catch unsupported numbers, dates, and names in LLM answers vs RAG sources. (Endpoint: POST /v1/hallucination-diff)

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": {
      "sources": "<sources>",
      "answer": "<answer>"
    },
    "name": "tinplate_hallucination_diff"
  }
}

Input Schema

NameRequiredDescriptionDefault
answerYesParameter 'answer' (e.g. "Acme Corp generated $4.2M in Q3 2026 (24% YoY growth) and la")
sourcesYesArray parameter 'sources'

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds that the check is deterministic and fast, but says nothing about what the diff returns, whether it flags or blocks, or how mismatches are reported.

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?

One front-loaded sentence carries the purpose, plus a short endpoint reference. There is no filler, though the endpoint notation adds little for an agent that already has the tool bound.

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?

With only two required parameters and no output schema, the definition covers the minimum needed to invoke the tool. It is still incomplete on the result contract, since nothing describes whether the response lists offending spans, a boolean verdict, or scores.

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%, so both parameters are documented structurally, establishing the baseline of 3. The description clarifies the role of each side of the comparison (LLM answer vs RAG sources) but adds no format or size guidance beyond what the schema already provides.

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?

The description states a specific verb and resource: a deterministic diff that catches unsupported numbers, dates, and names in an LLM answer against RAG sources. That is concrete enough to tell it apart from generic guards like tinplate_llm_output_guard, though it never names an alternative explicitly.

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?

"Fast first filter" implies the intended position in a pipeline (cheap pre-check before deeper verification), which is real usage guidance. However, it gives no explicit when-not conditions and does not name a sibling for the follow-up or heavier check, so routing is only implied.

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