Study FAQ
How should a Claude application authorize and approve a client tool action?
Also asked as 2
- What exactly should a user approve before a consequential Claude tool call runs?
- How do I keep a Claude tool request from becoming an unauthorized action?
Answer
Resolve Claude's proposed tool call through an allowlisted handler, validate the arguments and their meaning, and authorize the exact operation using authenticated application identity and current resource policy. When policy requires human approval, show the actual action, target, material arguments, and expected effect before dispatch. The authenticated application and its executor own that decision. How tool use works Mitigate jailbreaks and prompt injections
For example, before a client tool sends an approved notification template, resolve the recipient in the caller's tenant and check the allowed channel and current communication preference. Present the resolved recipient, template and channel for approval if required. Bind that decision to the actor, normalized parameters, resolved resource and operation version, expire it, and recheck current authority and state just before execution. Ask again if the effect materially changes. Building effective agents Mitigate jailbreaks and prompt injections
Use a handler identity with the smallest capability needed. For a consequential action, show relevant costs and whether the effect can be reversed. If the tool, arguments, authorization or required approval fails validation, block execution and return a safe reason. Audit the decision and reconcile the actual result independently. Handle tool calls Building effective agents
Full explanation
Implementing Claude Tools with Safe Execution and Approval Patterns
Study guide · CCDV-F
Read the full explanation