Skip to main content
Glama
HallucC — Hallucination Fact-Check & AI Safety Guard

HallucC — Hallucination Fact-Check & AI Safety Guard

Verify Text

verify_text
Read-only

Fact-check text claim by claim to detect hallucinations, using cited sources and supported/refuted/unverified statuses with a red/yellow/green summary.

Instructions

Claim-by-claim hallucination verification. Input text is split into claims, and each claim is verified (supported / refuted / unverified) with source citations. Returns a red/yellow/green summary plus each claim's status, confidence, reason and sources, along with citations and quota. Consumes detect quota (shared with the web dashboard).

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": {
      "text": "<text>"
    },
    "name": "verify_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesText to verify
modelNoModel name under test (optional; shown on the share card)
speedNoSpeed mode: fast|standard|deep (default: standard)
domainNoDomain mode: general|medical|legal|finance|education|government
strictNoStrict mode (self-consistency). Omit to use the global default.

Output Schema

NameRequiredDescriptionDefault
inputNo
quotaNo
speedNo
claimsNo
domainNo
strictNo
summaryNo
citationsNo
elapsed_msNo
math_issuesNo
detection_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv0.1.12
    • changedInput schema / properties / domain / description
      Previous value: -"领域模式:general|medical|legal|finance|education|government"New value: +"Domain mode: general|medical|legal|finance|education|government"
    • changedInput schema / properties / model / description
      Previous value: -"被测模型名(选填,分享卡片展示用)"New value: +"Model name under test (optional; shown on the share card)"
    • changedInput schema / properties / speed / description
      Previous value: -"速度模式:fast|standard|deep,默认 standard"New value: +"Speed mode: fast|standard|deep (default: standard)"
    • changedInput schema / properties / strict / description
      Previous value: -"严格模式(自我一致性),不传走全局默认"New value: +"Strict mode (self-consistency). Omit to use the global default."
    • changedInput schema / properties / text / description
      Previous value: -"待核验的文本"New value: +"Text to verify"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": {},
      +  "properties": {
      +    "citations": {
      +      "anyOf": [
      +        {
      +          "items": {},
      +          "type": "array"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "claims": {
      +      "anyOf": [
      +        {
      +          "items": {},
      +          "type": "array"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "detection_id": {
      +      "anyOf": [
      +        {
      +          "maximum": 9007199254740991,
      +          "minimum": -9007199254740991,
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "domain": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "elapsed_ms": {
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "input": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "math_issues": {
      +      "anyOf": [
      +        {
      +          "items": {},
      +          "type": "array"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "quota": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": {},
      +          "propertyNames": {
      +            "type": "string"
      +          },
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "speed": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "strict": {
      +      "type": [
      +        "boolean",
      +        "null"
      +      ]
      +    },
      +    "summary": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": {},
      +          "properties": {
      +            "green": {
      +              "anyOf": [
      +                {
      +                  "maximum": 9007199254740991,
      +                  "minimum": -9007199254740991,
      +                  "type": "integer"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "hallucination_risk": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "red": {
      +              "anyOf": [
      +                {
      +                  "maximum": 9007199254740991,
      +                  "minimum": -9007199254740991,
      +                  "type": "integer"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "total": {
      +              "anyOf": [
      +                {
      +                  "maximum": 9007199254740991,
      +                  "minimum": -9007199254740991,
      +                  "type": "integer"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "yellow": {
      +              "anyOf": [
      +                {
      +                  "maximum": 9007199254740991,
      +                  "minimum": -9007199254740991,
      +                  "type": "integer"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            }
      +          },
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover safety (readOnly=true, destructive=false, openWorld=true), so the description's added value is the quota cost, the fact that quota is shared with the web dashboard, and the non-idempotence implied by each call spending detect quota. Return structure (summary color, per-claim status/confidence/reason/sources) is also described. It does not state what happens on quota exhaustion or whether results are cached.

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 core purpose, then the output shape, then the operational cost caveat. Every sentence carries information, though the middle sentence is dense and lists output fields that the output schema already provides.

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?

An output schema exists, so the description needn't fully enumerate return values, and the quota/cost caveat is a useful addition for a metered tool. For a 5-parameter, read-only verification tool the definition is essentially complete, with the main gap being no guidance on sibling selection or quota-exhaustion behavior.

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% with two enum parameters fully documented, so the schema already carries parameter meaning. The description adds no detail about how 'model', 'speed', 'domain' or 'strict' change verification behavior, so the baseline 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?

Specific verb and resource: text is split into claims and each is classified supported/refuted/unverified with citations. The mechanism and the output shape are stated concretely, so an agent can tell this is a text-fact-checking tool. It stops short of naming any sibling (e.g. verify_agent) to contrast scope with, so differentiation is left implicit.

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 the scope ('input text is split into claims') and by the cost warning that it consumes detect quota, which tells the agent to use it deliberately. However, there is no explicit when-to-use versus verify_agent or the check_* tools, and no statement of when not to use it (e.g. non-factual or code input).

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