Learning resourcesReviewed · Anthropic

Tool use with Claude

Tool use with Claude is Anthropic's guide for developers connecting Claude to external functions and services, with custom tools requiring execution code in their application. It explains client and server tools, the request-and-result exchange, tool selection controls and token overhead.

Researched 12 Nov 2026

In short.

Tool use with Claude is an integration guide for developers adding external capabilities to Claude applications, with custom operations still running in the developer's application. It explains tool definitions, structured calls, result submission and Anthropic-hosted alternatives through examples in several languages. The weather walkthrough uses a fixed result rather than a live lookup. Runtime reliability and exact monetary costs are not established.

Researched and written by an AI model and checked by a second AI model. How it works

Covers the complete supplied page at [https://platform.claude.com/docs/en/agents-and-tools/tool-use/overview.md], including examples, tool descriptions, pricing-token information and model-retirement notices. No explicit licence notice appears in the captured text. Linked pages and other folders are excluded. No code or API calls were executed; linked-tool details, runtime behavior, current compatibility and monetary rates remain unassessed.

The overview

Identity

This is Anthropic's documentation overview of tool use, also called function calling, in the Claude Messages API. The supplied source is [https://platform.claude.com/docs/en/agents-and-tools/tool-use/overview.md]. It explains how Claude requests operations implemented by an application or provided through Anthropic's infrastructure.

Assessment

The guide is useful for understanding who executes a tool and what an application must send back afterward. Its strongest teaching example shows the complete client-tool message exchange across two API requests. It also identifies simpler hosted-tool requests and an SDK tool runner that can automate the exchange.

It provides an integration starting point rather than evidence of operational reliability. Detailed error handling, individual tool requirements and monetary rates are delegated to linked documentation.

Users

Application developers can use this overview when connecting Claude to existing functions, external APIs, web search or other tools. Beginners receive a concrete explanation of the call-and-result sequence; experienced developers receive the relevant message blocks, execution boundaries and tool-choice controls.

Working through the examples requires programming and API familiarity. The client-tool walkthrough includes Python, TypeScript, C#, Go, Java, PHP and Ruby examples; the initial server-tool example also includes cURL and CLI forms.

Capabilities

The overview covers defining custom tools with input schemas, receiving structured calls, returning results and controlling whether Claude chooses or must use a tool. It describes strict tool use as enforcing schema conformance.

Its directory distinguishes application-executed tools, including memory, Bash, text editing, computer use and browser use, from hosted capabilities such as web search, web fetch, code execution, advisor consultation and tool discovery. It also introduces the MCP connector for remote Model Context Protocol servers. Detailed capabilities of those linked tools are not established by the overview alone.

Using it

Requirements

Executing the examples requires Anthropic API access, an API key and a suitable HTTP client, CLI or SDK environment. Custom tools additionally require an implementation that performs the requested operation and returns its result. Anthropic-defined client-tool schemas also require execution in the application's environment.

The page does not specify minimum SDK or runtime versions, a complete model-by-tool compatibility matrix, or account eligibility requirements.

Mechanism

For a client tool, the application sends a name, description and input_schema. Claude can respond with stop_reason set to tool_use and one or more tool_use blocks containing arguments. The application executes the operation, preserves the assistant response in the conversation and sends a tool_result whose tool_use_id matches the call. Claude then uses that result to answer.

Server tools execute on Anthropic's infrastructure and normally return results without an application handler. The page flags an exception when server and client tools appear together in a parallel group.

With tool_choice set to auto, Claude decides whether to call a tool. Prompts can influence that decision, while tool_choice provides explicit controls for requiring a call.

Setup

For the hosted-search example, configure API authentication and submit a Messages request containing the web-search tool definition and a user question. For a custom tool, define its schema, implement its operation and add handling for tool_use and tool_result messages.

The client examples set disable_parallel_tool_use to true to request at most one tool call per turn. The SDK tool runner is presented as an alternative to manually managing execution and result submission. Installation commands and detailed runner configuration are outside the supplied page.

Example

The client walkthrough defines get_weather with a required location string and asks about San Francisco. Claude supplies the tool arguments; the application returns a fixed value of 15 degrees Celsius with partly cloudy conditions; a second model request produces the final answer.

The fixed weather value is explicitly a placeholder for a real lookup. The displayed output illustrates the intended exchange and does not establish that a weather service was contacted. Separately, the server example asks about the Mars rover using Anthropic-hosted web search.

Assessment & evidence

Limitations

The guide warns that Claude may infer missing required arguments rather than ask for clarification. Its discussion of differences between Opus and Sonnet is qualitative and includes no measured error rates.

Strict schema conformance addresses argument structure; it does not establish that an inferred location or other value matches the user's intent. The examples also do not establish complete handling of absent calls, multiple calls, execution failures or mixed client/server parallel responses.

No code or API calls were executed. Correctness, latency, reliability and compatibility with a particular application remain unassessed.

Reasoning

The central architectural implication is that a tool's schema provider does not determine its execution location. Even Anthropic-defined Bash or editor schemas require the application to run the operation. This distinction helps developers estimate implementation work and identify which environment needs the relevant files, services or capabilities.

The missing-parameter warning also supports checking argument meaning separately from schema validity. A structurally valid call can still contain a guessed value. These are implications of the documented design, not measured outcomes.

Alternatives

Within the approaches named by the page, developers can manage the client-tool exchange manually or use the SDK tool runner. For remote MCP servers, the overview points to Anthropic's MCP connector and to guidance for building an MCP client.

It separately introduces Claude Managed Agents as providing a built-in session toolset and its own way to add custom tools. Those linked resources are outside the supplied scope; their detailed requirements, costs and comparative performance are not assessed.

Evidence

The evidence is a captured first-party Anthropic documentation page containing conceptual explanations, multilingual request examples, a client-tool walkthrough, illustrative output and a token-overhead table. It supports descriptions of the intended API behavior.

The page provides no independent execution logs, correctness benchmarks, latency measurements or measured comparison of implementation approaches. Links identify further documentation but do not establish the contents of those pages.

Access & freshness

Costs

API costs include input and output tokens, including tool definitions, tool_use blocks and submitted tool_result blocks. Tool use also adds a model-dependent system prompt. Server tools can add usage charges, such as charges per web search.

For example, the table lists 286 additional system-prompt tokens for Claude Opus 5.5 with auto or none when at least one tool is supplied. Its forced-tool entry is blank. With no tools supplied, tool_choice of none adds zero tool-use system-prompt tokens.

The page supplies no monetary rates or total example cost. Costs for external services and application hosting are also unknown. The weather walkthrough involves two model requests, which matters when estimating the complete interaction.

Rights

The captured page contains no explicit licence grant or redistribution notice for its prose or code examples. Permissions for copying, modifying or redistributing that material are therefore unknown from the supplied evidence. API service terms are not included.

Freshness

The supplied capture is dated 2026-11-12T11:52:35.312Z. The page itself gives no publication or last-updated date.

Its examples name claude-opus-5-5 and web_search_20260209; the cURL example sends anthropic-version: 2026-10-21. These are identifiers in the captured documentation, not independently confirmed availability or compatibility guarantees. The page directs readers to a separate tool reference for versions and beta headers.

Actions

Start with one required operation and decide where it must execute. For a custom integration, define its input schema, implement the operation and return a result linked to the original call ID. Replace the walkthrough's fixed weather string with an actual lookup before expecting current weather answers.

Check behavior when information is missing, when Claude answers without a tool and when execution fails. Use reported usage metrics to estimate token costs across the complete exchange. Before choosing a hosted tool, consult its specific documentation and the version reference at [https://platform.claude.com/docs/en/agents-and-tools/tool-use/tool-reference]; exact charges and compatibility remain unknown here.

Evidence for this report

selected-page.txtselected · checked 2026-11-12