How it works
The app sends the model a list of tools. Each tool has a name, a description and an input schema. The model reads the descriptions. It calls a tool when the user's request matches what the tool does.
Who runs the function
The model does not run the function. It returns a request, and the app runs it. The app then sends the result back to the model in a new message.
Anthropic runs some tools itself, such as web search. Those are server tools. The tools that the app runs are client tools.
How a sandbox becomes a tool
A sandbox provider can offer a tool such as run_code. The model passes the code as an argument. The app sends the code to the sandbox, and then returns the output to the model. A coding agent uses the same loop.
What to check
- Whether the provider documents the tool's input and output format.
- Whether the provider offers an MCP server with the same tools.