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

HallucC — Hallucination Fact-Check & AI Safety Guard

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PORTNo服务监听端口,默认 87878787
AuthorizationNoBearer <你的 HallucC API key>。客户端需在 HTTP 头中提供个人 HallucC API key 用于鉴权,key 会被原样透传到后端校验与扣减额度。API key 在 https://aihcc.cloud 注册后于 /keys 页创建,免费套餐每日有额度。
HALLUCC_BASE_URLNo配置后端地址,默认指向本机 8001http://127.0.0.1:8001

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
logging
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
verify_textA

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).

verify_agentA

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.

check_cua_actionsA

Computer-Use Agent action risk grading. Submit an action trajectory and receive a step-by-step verdict of L0 (allow) / L1 (allow + log) / L2 (require confirmation) / L3 (block) / takeover (suspend in credential scenarios and wait for the user to type manually), together with matched_rules, outcome and L0-L3 tallies. The response includes ruleset_version and a disclaimer (results are grading guidance only; no enforcement is performed). Coverage: sensitive paths, destructive commands, irreversible element semantics; domain grading (unknown-domain navigation -> L2, blocklisted domains and sensitive pastes into unknown domains -> L3, payment amounts above threshold -> L3); credential vocabularies and takeover on payment/login domains; task_scope intent deviation (out of scope escalates one level and can only narrow); multi-agent delegation chain fields (each action may carry chain_id/agent_id/parent_agent_id/delegation_depth; when provided the server adds chain-level cross-hop taint analysis, raising the aggregate level to L3 and setting risk_diluted on cross-agent propagation, returned in the chain_trace field; omitted means no effect). Pure rule-based: no LLM calls, no quota consumed. Use it for safety self-checks before and after agent execution.

check_cua_code_auditA

CUA code audit: static analysis of agent source code that detects dangerous imports (subprocess, os.system, and similar), privilege boundaries (eval/exec), injection surface (string-concatenated shell commands), dangerous defaults, and missing sandboxing. Pure rule-based scanning: no LLM calls, no quota consumed. Supports single-file and multi-file scans.

check_safetyA

AI safety gateway detection. Runs three-layer OWASP LLM Top 10 detection on prompt + output: a 40+ signature rule engine (injection, jailbreak, harmful content, sensitive data leakage, fraud) plus optional LLM deep analysis and optional hallucination detection. Returns passed, risk_score, risk_level, threats[] (category/severity/match_context/recommendation) and quota. fast=true uses the rule-only sub-10ms mode. Consumes detect quota (fast calls count too).

check_agent_ice_wallA

Agent ice wall (child lock / fuse). Call it once before every agent step for per-step hallucination guardrails plus session-level cumulative risk fusing. The response's action field is the only one you need to read: allow/warn = proceed, block = this step is intercepted, frozen = halt the entire run immediately (the risk score passed the threshold, or a zero-tolerance condition such as a fabricated tool was hit; no action should be executed while frozen). Fuse conditions: block = 3 points, warn = 1 point, accumulated >= 10; three consecutive blocks; or a single fabricated-tool / parameter-schema violation. It auto-unfreezes after a 5-minute cooldown, or the user can reset it manually. session_id is caller-defined and must be reused for the whole agent task (state lives in your cloud account, zero local install and zero local storage). Pass tool_schemas as a tool registry to enable fabricated-tool and parameter validation (strongly recommended). Consumes quota. Orthogonal to check_cua_actions (CUA desktop action grading): this tool governs an LLM agent's own loss of control.

reset_agent_ice_wallA

Manually unfreeze an agent session frozen by the ice wall (call after the user confirms it is safe). was_frozen=false means the session was not frozen in the first place (idempotent). The risk score resets to zero after unfreezing.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.1/5.0

Scored across 7 tools

Disambiguation4/5

Most tools are clearly separated by object and lifecycle stage: text verification, agent-output verification, CUA action grading, code audit, safety gateway, ice-wall guardrail, and reset. There is mild overlap between verify_agent and check_agent_ice_wall because both involve hallucination checks on agents, and check_safety can optionally include hallucination detection, but the descriptions distinguish post-hoc verification from per-step gating and general safety scanning.

Naming Consistency5/5

All tool names use snake_case with a clear verb-first noun-phrase pattern: verify_text, verify_agent, check_cua_actions, check_cua_code_audit, check_safety, check_agent_ice_wall, reset_agent_ice_wall. The use of verify/check/reset maps predictably to verification, checking, and state reset operations.

Tool Count5/5

Seven tools is well scoped for a combined hallucination fact-check and AI safety guard server. Each tool covers a distinct workflow area, including text, agent outputs, CUA actions, code audit, safety gateway, per-step gating, and reset, without obvious filler.

Completeness4/5

The surface covers the core verification and safety lifecycle: text and agent verification, CUA action risk grading, CUA code audit, safety detection, stateful step guarding, and manual reset. Minor gaps remain around explicit session-status inspection, quota/usage retrieval, ruleset inspection, or batch verification, but these are not fatal for agent workflows.

Maintenance

ActivityActive
ResponsivenessNo recent community issues