Tool Guardrails
UsetrackTool() when a model chooses or triggers an external action that should
participate in the same runtime control flow.
Guardrails are most useful when a tool can mutate data, call a third-party
system, or create an audit trail that someone may need to review later.
Tool policy
allowedToolsblockedToolsmaxCallsPerSessionrequireApprovalFor
Good guardrail patterns
- Start with a narrow allow-list for tools that are safe to run automatically.
- Put destructive or sensitive tools behind approval.
- Block unfinished tools explicitly instead of hoping they are never called.
- Keep tool names stable and descriptive so the trace reads like a logbook.
Tool tracking is how Captar keeps model output, tool execution, and policy
violations inside the same trace instead of splitting them across disconnected logs.
