Skip to main content
Glama

arai_add_guard

Register a rule to enforce on future tool calls. Use when a new constraint arises mid-session that should persist for the project, such as 'never edit /etc' or 'always run tests before push'.

Instructions

Register a new guardrail that Δ€rai will enforce on subsequent tool calls. Use when you discover a rule mid-session that should persist for the rest of this project (e.g. 'never write to /etc', 'always run tests before push'). The rule is parsed the same way CLAUDE.md instructions are and stored locally β€” it takes effect on the very next PreToolUse hook.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
reasonNoOptional rationale β€” why this rule is being added. Recorded in the audit log so a human reviewer can see the agent's justification.
ruleYesThe rule, phrased as an imperative. Examples: 'Never force-push to main', 'Always run pytest before committing', 'Never edit files in vendor/'.
Behavior4/5

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

No annotations provided, but description discloses that rule is parsed like CLAUDE.md, stored locally, takes effect on next PreToolUse hook, and reason goes to audit log. Good behavioral disclosure.

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 well-structured sentences with no fluff. Front-loaded with main action and immediately useful context.

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?

Given 2 simple parameters and no output schema, description covers purpose, usage timing, persistence, and triggering. No gaps.

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

Parameters4/5

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

Schema coverage is 100% with descriptions for both parameters. Description adds value by explaining reason as audit rationale and providing imperative examples for rule.

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 clearly states 'Register a new guardrail' with a specific verb and resource. It distinguishes from siblings like arai_list_guards (list) and arai_check_action (check) by focusing on creation.

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?

Provides explicit scenario ('discover a rule mid-session that should persist') and examples. Does not explicitly state when not to use, 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