Study FAQ
Who executes Claude API tools, and where should authorization happen?
Also asked as 2
- How do client and server tool execution affect where a Claude app checks authority?
- Which executor should handle a Claude tool call and check whether an application write is allowed?
Answer
Your application executes client tools requested through the Claude Messages API. Anthropic executes supported server tools on its infrastructure. For application-owned effects, your executor and the destination service must authorize the identified user or service before acting. A model-generated request supplies proposed arguments and provides no proof of authority.
For a client tool, register a capability with the API, inspect Claude's tool_use, and route the request to the registered executor. Before a write, independently check the caller's authority, target ownership, allowed operation and business rules. For example, a well-formed order ID can still belong to a different tenant. Scope the credential used by the executor and record the authorization decision and observed outcome.
With a server tool, confirm that the tool is available on your model and platform, then follow that tool's own configuration and continuation rules. Decide which data your application may send and which tool it may expose. Keep application authorization on operations your application owns, including any downstream write triggered after a server tool returns.
Full explanation
Designing Claude Tool Interfaces and Execution Contracts
Study guide · CCAR-F
Read the full explanation