Control what your agents can do.
Check tool calls before execution. Block prohibited actions, request human approval, and mask sensitive data before it reaches the agent.
- Agentselects tool
pre_toolCheck call Blocked- Tool did not run
post_toolCheck resultNot reached- Agent receivesresultNothing received
export_customer_records( format="csv")The agent asks for a tool it is not permitted to use.BlockedTool did not run.
- Rule
- Tool not permitted for this agent
- Decision
- Blocked
- Reason
- export_customer_records is not on this agent's allowed tools.
Check the call before it runs.
Apply your policies to the tool and its arguments. Stop a prohibited call or pause it for approval.
pre_toolAllow, deny, ask or rewrite the callpost_toolRewrite the result, for example to redact PIIPause actions that need a person.
Set rules for actions that require review. The tool waits for approval before it runs.
Approving one action does not activate a policy. Approving a policy is a separate step, covered below.
- Requested refund
- $950
- Example approval limit
- $500
- Status
- Awaiting approval
- Refund requestedissue_refund(amount=950.00)
- Check: exceeds the $500 limitPolicy pauses the call
- Awaiting approvalA person reviews the request
- Tool has not runWaits for a decision
Tool has not run.
Mask sensitive fields in tool results.
Check the result before the agent receives it. Replace sensitive fields with a redaction marker.
email: customer@example.comemail: [REDACTED]Agent receives the masked result.
See which policy matched and why.
Review the tool call, the matched rule, and the decision alongside the agent run.
- Agent run
- refund-agent, example run
- Tool
export_customer_records- Rule
- Tool not permitted for this agent
- Decision
- Blocked
- Reason
- export_customer_records is not on this agent's allowed tools.
- Time
- 2 min ago
- Blocked
- Approval requested
- Masked
Table view
| Day | Blocked | Approval requested | Masked |
|---|---|---|---|
| Nov 1 | 0 | 2 | 5 |
| Nov 2 | 0 | 3 | 6 |
| Nov 3 | 0 | 2 | 4 |
| Nov 4 | 0 | 4 | 5 |
| Nov 5 | 0 | 3 | 7 |
| Nov 6 | 0 | 3 | 6 |
| Nov 7 · Tool restriction rule active | 7 | 4 | 5 |
| Nov 8 | 9 | 3 | 6 |
| Nov 9 | 8 | 5 | 4 |
| Nov 10 | 10 | 4 | 7 |
| Nov 11 | 8 | 3 | 6 |
| Nov 12 | 7 | 4 | 5 |
| Nov 13 | 9 | 4 | 6 |
| Nov 14 | 8 | 3 | 6 |
Sample data: blocks begin on the day the rule is active. Approval requests and masked results come from separate rules, so the rule does not change them.
Test a policy before you activate it.
Compare the proposed rule with captured calls. Review the results, choose its scope, and activate the rule.
- Tool call
export_customer_records(format="csv"), requested by the agentBefore the tool runs - MatchThe tool is not on this agent’s allowed listTool restrictions
- DecisionBlock the call and record why. The tool does not run.Deny
- RecordThe decision is linked to the agent run and its trace.Recorded
- Finding reviewedYour team accepts the findingYour approval
- Condition definedSame order_id + amount within 10 minAutomatic
- Scope selectedrefund-agent, all sessionsYour approval
- Replay validatedCaptured calls from the test setAutomatic
- Apply Guard ruleActivates the proposed ruleYour approval
- Later call checkedIn the tool hook, before it runsAutomatic
- Decision recordedLinked to the run and the findingAutomatic
refund.repeat-windowProposed from a finding- Tool
issue_refund- Match on
- order_id + amount
- Window
- 10 min
- Scope
- refund-agent, all sessions
- On match
- Deny
- Repeat attempts, same order and amountDeny expected deny
- Partial refunds, different amountAllow expected allow
- Retry after the window closedAllow expected allow
No legitimate refunds in the case set would be denied.
Identifiers and versions Sample data
- Finding
F-218- Rule version
refund.repeat-window v1- Test set
refund-timeouts v3
refund.repeat-windowSample dataCurrentActiveApplied from the finding by Platform on-calldraftReplay passedProposed from the finding, validated on captured calls
Repeated calls and time windows
Deny identical tool calls in the same session. A new session starts fresh.
0:00Session A$180 refundFirst attemptAllow, first call0:31Session A$180 refundIdentical call, same sessionDeny4:10Session B$180 refundNew session, extra argumentAllow6:02Session C$40 partial refundPartial refund, different amountAllow14:20Session D$180 refundOutside the 10 min windowAllow
A matching attempt does not prove a payment completed. Check payment telemetry to see whether a refund went through.
Compare both scopes in a table
0:00Session Aissue_refund(1042, 180.00)First attemptAllow, first callAllow, first call0:31Session Aissue_refund(1042, 180.00)Identical call, same sessionDenyDeny4:10Session Bissue_refund(1042, 180.00, note="retry")New session, extra argumentAllowDeny6:02Session Cissue_refund(1042, 40.00)Partial refund, different amountAllowAllow14:20Session Dissue_refund(1042, 180.00)Outside the 10 min windowAllowAllowRuntime behavior
- In the request pathGuardrails run in your framework's tool hook. Each check runs before the call executes or before the agent reads the result. Because checks run in the request path, each checked call takes longer by the time the check needs.
- Versioned configurationEach Apply Guard rule creates a version with its scope, who applied it and when. Earlier versions stay for review and rollback.
- Failure behavior per ruleWhat happens if a check cannot complete is part of each rule's configuration. You set it when you apply the rule.
Choose what to check.
Each policy type runs at a point in the tool hook and records what it decided.
Tool restrictionsWhich tools an agent may call
- Where
pre_tool- On a match
- Deny, or ask a person
- Recorded
- The rule and the blocked call
Approval rulesArguments above a limit, such as a refund amount
- Where
pre_tool- On a match
- Pause the call until a person approves
- Recorded
- The limit, the amount and the decision
Result maskingSensitive fields in tool results
- Where
post_tool- On a match
- Replace the field with a redaction marker
- Recorded
- The rule and the marker in the result
Repeated callsThe same tool and arguments within a time window
- Where
pre_tool- On a match
- Deny, or ask a person
- Recorded
- The matched call, the window and the earlier call
Explore more
Common questions
Where are policies enforced?
In the request path, inside your framework's tool hook. Guardrails check a tool call before it runs and the result after it returns. They work with Claude Code hooks, the OpenAI Agents SDK, LangChain, Google ADK and FastMCP.
How are policies configured?
Choose a rule type, condition and scope, then select Apply Guard rule. Each activation creates a version you can review or roll back.
How much latency does a check add?
Checks run in the request path, so each one adds time to the tool call. How much depends on the rules in scope. Measure it on your own workload during the beta.
How is data handled?
Rewrite rules can redact sensitive fields in a tool result before the agent reads it. Decision records are written to your lake, next to the agent trace.
What does the session-local loop rule cover?
Repeated calls to the same tool with the same arguments inside one session. It stops an agent looping on an identical call.
How does the argument-keyed time window extend that?
Choose a key, such as a stable refund operation ID (refund_op_id), and a window. The rule catches matching attempts across sessions even when other arguments differ. A match shows repeated attempts, not a completed payment. Payment telemetry confirms whether the refund went through.
How are guardrails different from evaluations?
Evaluations test behavior against your criteria. Guardrails check actions and results during execution. Use evaluations to test a proposed rule before you activate it.
Test a policy on your agent workflow.
See where the check runs and what the agent receives.
Live beta. From $499/month, plus usage.