Agent Ice Wall (Session Fuse)
check_agent_ice_wallGuard every LLM agent step against hallucination and accumulated risk; returns allow, warn, block, or freeze so unsafe tool actions are intercepted before execution.
Instructions
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.
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": {
"session_id": "<session_id>",
"step": "<step>"
},
"name": "check_agent_ice_wall"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| step | Yes | Current step (both schemas accepted; the server normalizes automatically) | |
| task | No | Original task instruction (used to validate parameter provenance) | |
| session_id | Yes | Session ID (caller-defined and reused across one agent session): the risk score accumulates per session, and exceeding the threshold freezes the entire run. Always reuse one ID for a single agent task; never reuse it across tasks. | |
| prior_steps | No | Prior steps (same schema), used for cross-step detection such as loops and retry storms | |
| tool_schemas | No | Tool registry {toolName: {required, properties}}; provide it to enable fabricated-tool and parameter-schema validation (both are zero-tolerance fuse conditions) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| step | No | ||
| quota | No | ||
| action | No | The only field the client must read: frozen = halt the entire run immediately | |
| session | No |