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

HallucC — Hallucination Fact-Check & AI Safety Guard

Verify Agent

verify_agent
Read-only

Verifies an AI agent's final answer claim by claim and grades its execution trajectory across six dimensions to catch hallucinations and compliance gaps.

Instructions

Agent output and trajectory self-check. Runs claim-by-claim hallucination verification on the final answer and a six-dimension structured evaluation of the execution trajectory (factuality, sourcing, instruction compliance, tool-claim consistency, task completion, reflection). Returns main.claims, steps[].checks and quota. Consumes detect quota.

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": {
      "agent_output": "<agent_output>"
    },
    "name": "verify_agent"
  }
}

Input Schema

NameRequiredDescriptionDefault
taskNoOriginal task instruction (used by the task_completion judge)
speedNoSpeed mode: fast|standard|deep (default: standard)
stepsNoAgent execution trajectory, graded step by step across six dimensions
domainNoDomain mode: general|medical|legal|finance|education|government
agent_outputYesThe agent's final output text (1-50,000 characters)
tool_schemasNoTool schemas (aligned with the trajectory endpoint)

Output Schema

NameRequiredDescriptionDefault
mainNo
quotaNo
stepsNo
agent_evalNo
detection_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed13 schema fields changedv0.1.12
    • changedInput schema / properties / agent_output / description
      Previous value: -"agent 最终输出文本(≥1 字,≤50000 字)"New value: +"The agent's final output text (1-50,000 characters)"
    • 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 / speed / description
      Previous value: -"速度模式:fast|standard|deep,默认 standard"New value: +"Speed mode: fast|standard|deep (default: standard)"
    • changedInput schema / properties / steps / description
      Previous value: -"agent 执行轨迹,逐步六维评估"New value: +"Agent execution trajectory, graded step by step across six dimensions"
    • changedInput schema / properties / steps / items / description
      Previous value: -"agent 轨迹单步"New value: +"A single agent trajectory step"
    • changedInput schema / properties / steps / items / properties / agent_claim / description
      Previous value: -"该步 agent 的声明"New value: +"The agent's claim for this step"
    • changedInput schema / properties / steps / items / properties / step / description
      Previous value: -"步序号,默认 1"New value: +"Step number (default: 1)"
    • changedInput schema / properties / steps / items / properties / tool / description
      Previous value: -"该步调用的工具名"New value: +"Tool called in this step"
    • changedInput schema / properties / steps / items / properties / tool_input / description
      Previous value: -"工具输入"New value: +"Tool input"
    • changedInput schema / properties / steps / items / properties / tool_output / description
      Previous value: -"工具输出"New value: +"Tool output"
    • changedInput schema / properties / task / description
      Previous value: -"原始任务指令(task_completion 裁判用)"New value: +"Original task instruction (used by the task_completion judge)"
    • changedInput schema / properties / tool_schemas / description
      Previous value: -"工具 Schema(与 trajectory 端点对齐)"New value: +"Tool schemas (aligned with the trajectory endpoint)"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": {},
      +  "properties": {
      +    "agent_eval": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": {},
      +          "propertyNames": {
      +            "type": "string"
      +          },
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "detection_id": {
      +      "anyOf": [
      +        {
      +          "maximum": 9007199254740991,
      +          "minimum": -9007199254740991,
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "main": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": {},
      +          "properties": {
      +            "claims": {
      +              "anyOf": [
      +                {
      +                  "items": {},
      +                  "type": "array"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "input": {
      +              "type": [
      +                "string",
      +                "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"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "quota": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": {},
      +          "propertyNames": {
      +            "type": "string"
      +          },
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "steps": {
      +      "anyOf": [
      +        {
      +          "items": {
      +            "anyOf": [
      +              {
      +                "additionalProperties": {},
      +                "propertyNames": {
      +                  "type": "string"
      +                },
      +                "type": "object"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "type": "array"
      +        },
      +        {
      +          "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 the safety profile (readOnlyHint=true, destructiveHint=false, openWorldHint=true), so the bar is lower, and the description adds genuinely non-obvious context: it discloses that verification runs claim-by-claim on the final answer and step-by-step across six named dimensions, and that it 'consumes detect quota,' which is a cost signal not present in annotations or schema. It stops short of describing latency, failure modes, or what happens when quota is exhausted.

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 with the core purpose front-loaded, followed by scope detail and then cost. The dimension parenthetical is a long list but each item earns its place by telling the agent what will be graded; no filler or restatement of the title.

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 tool with six parameters, nested trajectory objects, and an output schema, the description covers purpose, grading dimensions, quota cost, and points at the return structure. Because the output schema exists it need not detail return values, and the remaining gaps (speed/domain mode semantics, error behavior) are covered by the schema or are minor.

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 every parameter (task, speed, steps, domain, agent_output, tool_schemas) is already documented in the schema, establishing a baseline of 3. The description adds only marginal meaning beyond that, notably tying the task parameter to the 'task_completion judge' and naming the dimensions that the steps are graded against.

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 uses a specific verb+resource framing ('claim-by-claim hallucination verification on the final answer' plus a 'six-dimension structured evaluation of the execution trajectory') and enumerates the six dimensions, so an agent knows exactly what is graded. It does not explicitly distinguish itself from the sibling verify_text, leaving that differentiation to inference from the 'agent output and trajectory' framing.

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 rather than stated: the phrase 'Agent output and trajectory self-check' suggests it is run against a completed agent run, and 'Consumes detect quota' signals a cost consideration. There is no explicit when-to-use/when-not guidance and no named alternative (e.g., verify_text) for the simpler text-only case.

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