← Back to Agent

Tool Security

Configure security sandboxes, rate limiting, circuit breakers, and observability for this agent's tool usage.

Contents

Overview

For Everyone

Agents use tools to interact with the world — reading files, browsing the web, running commands, calling APIs. Tool Security controls what each agent is allowed to do with its tools. It's like giving an employee a key card that only opens certain doors: you define which directories they can access, which websites they can visit, which commands they can run, and how fast they can work.

For Developers

A single endpoint provides the merged view:

The save process computes a diff between the current merged config and org defaults — only changed sections are stored as overrides. The "Reset to Org Defaults" action sends an empty {} as overrides.

Tool security is split into two domains:

How It Works

  1. Load — Org defaults, agent overrides, and the merged config are fetched from a single endpoint.
  2. View — Each section shows an "ORG DEFAULT" badge for inherited settings. If agent overrides exist, an indicator banner lists which sections are customized.
  3. Configure — Modify any setting. Changes are tracked in the merged config.
  4. Save — Only the diff from org defaults is saved as agent overrides. A sticky save bar appears at the bottom when changes exist.
  5. Reset — "Reset to Org Defaults" removes all agent-level overrides, reverting everything to org defaults.

Key Concepts

Override Model

Tool security follows a layered inheritance model:

  1. Org Defaults — Base settings that apply to all agents.
  2. Agent Overrides — Per-agent modifications that take precedence.
  3. Merged Config — The effective configuration (org defaults + agent overrides).

When you modify a setting, it becomes an agent-level override. Fields labeled "ORG DEFAULT" are inherited and not stored at the agent level.

Path Sandbox

Restricts file system access. Prevents agents from reading sensitive files like .env, SSH keys, or system configs.

SSRF Protection

Server-Side Request Forgery protection prevents agents from accessing internal infrastructure.

Command Sanitizer

Controls shell command execution. Full-width card because command security deserves extra attention.

Audit Logging

Records every tool invocation for compliance and debugging.

Rate Limiting

Per-tool call limits using a token bucket algorithm. Each tool has:

Default limits vary by tool type:

ToolDefault MaxDefault Refill
bash10/min10/min
browser20/min20/min
web_fetch, web_search30/min30/min
read, write, edit, glob, grep, memory60/min60/min

Circuit Breaker

Automatically stops calling a tool after consecutive failures. Prevents wasting tokens on broken integrations.

Telemetry

Collects execution timing, success rates, and usage patterns. Useful for identifying slow tools, optimizing workflows, and capacity planning.

Best Practices

Troubleshooting

Agent can't read a file it should access

Check the Path Sandbox allowed directories. The file's parent directory must be in the whitelist. Also check blocked patterns — a broad regex like \.json$ could block needed config files.

Tool being rate limited

The agent is calling the tool faster than the configured rate. Increase the max/refill values for that tool, or investigate why the agent is making so many rapid calls.

Circuit breaker keeps opening

The underlying tool or API is failing repeatedly. Fix the root cause (API down, wrong credentials, etc.) rather than disabling the circuit breaker.

Reset to Org Defaults didn't work

The reset sends empty overrides to the server. If values still appear customized, refresh the page. The merged view may be showing org defaults that look different from what you expected.

Sticky save bar won't appear

The save bar only appears when the merged config differs from what was loaded. If you changed a value back to its original, the dirty state clears. Make a definitive change to trigger it.

AgenticMail Enterprise Documentation Report an issue