Skip to main content
Glama

arai_check_action

Probe a hypothetical tool call against active guardrails without executing it or logging, avoiding deny-and-retry loops. Returns matched rules with severity and source.

Instructions

Probe whether a hypothetical tool call would match any active guardrail — without executing the call or writing to the audit log. Use BEFORE taking an action you think might be regulated to avoid a deny-and-retry loop. Returns matched rules with severity (block / warn / inform) and source file:line, exactly the same shape arai_recent_decisions returns for actual firings.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
eventNoHook event to simulate. Defaults to PreToolUse.
toolYesTool name to simulate (Bash, Edit, Write, etc). Required.
tool_inputYesTool input object — same shape Claude Code would send. e.g. for Bash: {"command": "git push --force"}; for Edit/Write: {"file_path": "src/x.py", "content": "..."}.
Behavior4/5

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

No annotations provided, so description carries full burden. Discloses no execution, no audit log, returns matched rules with severity and source, same shape as arai_recent_decisions. Could add more on side effects but sufficient for a probe-only tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences: first states purpose and key behavior, second gives usage guidance and return shape. Every word earns its place, no redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 3-param tool with nested objects and no output schema, the description covers purpose, when to use, input examples, and return format. Sufficient for an agent to use correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema has 100% description coverage. Description adds value by explaining the shape of tool_input for different tools (Bash, Edit/Write) and describing the return shape, going beyond schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses specific verb 'Probe' and resource 'guardrail matching', clearly distinguishing from siblings: arai_add_guard adds, arai_list_guards lists, arai_recent_decisions returns actual firings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly states 'Use BEFORE taking an action you think might be regulated to avoid a deny-and-retry loop' and clarifies it doesn't execute or write audit log, implying when not to use. Lacks explicit naming of alternatives but context is clear.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/taniwhaai/arai'

If you have feedback or need assistance with the MCP directory API, please join our Discord server