ERDL Action Guard — Tool Call Interceptor
erdl_evaluateEvaluate planned tool calls against predefined rules to determine if execution is allowed, denied, corrected, or requires human approval.
Instructions
ERDL Action Guard — evaluates planned tool call against loaded rules BEFORE execution.
YOU MUST call this BEFORE every tool call (exec, write_file, edit, web_search, etc). This is MANDATORY. The Guard cannot be bypassed.
After calling, check the decision:
ALLOW → proceed with the tool call, follow any instructions
DENY → STOP. Do not execute the tool. Tell the user what was blocked.
CORRECT → fix the request and retry
REQUEST_HUMAN → ask the user for approval before proceeding
Always show the result to the user as a badge card.
RESPONSE (compact badge card format):
"ALLOW": ✅ ERDL Guard · N rules
"DENY": 🛑 ERDL Blocked · reason
"REQUEST_HUMAN": 👤 ERDL Approval · reason
"CORRECT": 🔧 ERDL Correct · correction
"EMERGENCY_HALT": 🚨 ERDL HALT · reason
"PASS": 🔵 ERDL Pass · N rules checked
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | No | Optional agent identity for audit context | |
| tool_args | No | Arguments being passed to the tool | |
| tool_name | Yes | Name of the tool being called (e.g., "exec", "write_file", "web_search") | |
| session_id | No | Optional session identifier for audit chain |