Learning resourcesReviewed · Anthropic

Anthropic Claude Server tools guide

Anthropic’s Server tools guide teaches developers how to use tools run by Anthropic with Claude, but applications still need to handle paused turns and mixed tool calls correctly. It explains response blocks, conversation state, domain restrictions and retention-related configuration.

Researched 24 Nov 2026

In short.

Anthropic’s Server tools guide helps developers build Claude applications with tools run by Anthropic, but preserving conversation state and returning client-tool results remain the developer’s responsibility. Its most useful detail is the distinction between pause_turn continuation and responses that combine server tools with tools run by application code. It also documents domain filtering, version-dependent Zero Data Retention eligibility, streaming and batch behavior. Prices, performance and reliability are not established, and no examples were executed.

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

Covers the complete selected documentation page at [https://platform.claude.com/docs/en/agents-and-tools/tool-use/server-tools.md], including its examples, notes, warnings, streaming discussion, batch discussion and next-step references. Linked pages are excluded. The original acquisition address and captured evidence identifier are preserved. Tool-specific behavior beyond this page, current availability, prices, performance and runtime correctness remain unassessed. No examples, commands or API requests were executed.

The overview

Identity

Server tools is an Anthropic documentation page about the shared behavior of tools executed within the Claude API. The supplied source address is [https://platform.claude.com/docs/en/agents-and-tools/tool-use/server-tools.md].

It is an integration guide rather than an installable tool or library. Its scope is the common protocol for server tools; detailed references for individual tools are linked separately.

Assessment

The guide is useful when an application needs Anthropic to execute tools while the application coordinates the surrounding conversation. It explains consequential edge cases, including deferred server calls, incomplete message histories and continuation requests that omit required tools.

Its value is implementation guidance. It supplies no measurements showing faster execution, lower cost or higher reliability. Beginners can learn the division of responsibilities, while experienced developers can use the precise response shapes and failure conditions when designing handlers.

Users

The intended readers are developers building Claude applications that search or fetch web content, use code execution, or combine hosted tools with application-defined operations. The batch discussion also applies to document checking, dataset enrichment and analysis over many files.

A beginner should be comfortable with API requests, JSON messages and basic control flow. Developers working on streaming interfaces, persistent conversations or retention-sensitive integrations will find additional protocol details here.

Capabilities

The page covers server_tool_use blocks, paused server-side loops, mixed server and client calls, allowed_callers, domain restrictions and dynamic filtering through code execution. It includes examples in cURL, the Anthropic CLI, Python, TypeScript, C#, Go, Java, PHP and Ruby.

It also describes streaming events and states that all server tools support batch processing. Batch execution uses a higher per-turn iteration limit than synchronous requests, although the numerical limits are not supplied.

Using it

Requirements

The examples use Anthropic’s Messages API with authentication, a model identifier and tool definitions. Supported model/tool combinations and minimum SDK versions are not fully established by this page.

The _20260209 web-tool versions default to the code-execution caller. Models without programmatic tool calling require allowed_callers set to ["direct"]. Dynamic filtering automatically provisions code execution; an explicitly included code-execution tool must use code_execution_20260120 or later.

Request-level allowed domains must fall within the organization’s allowed list and must not conflict with organization-level blocks. Conflicts cause validation errors.

Mechanism

A server_tool_use block identifies a server call with an ID beginning srvtoolu_. Anthropic executes the call, and its result refers back through tool_use_id. Ordinary completed server calls need no client-supplied tool_result. Pair calls and results by ID rather than their positions.

When server and client calls occur together, the API returns stop_reason of tool_use and defers the server call until client results arrive. An unmatched server-call ID identifies the pending operation. With programmatic tool calling, a similar response instead indicates code execution already paused while waiting for client results; returning those results resumes it.

Direct server calls stream through content_block_start and input_json_delta events. Their result blocks arrive complete in a content_block_start event without result deltas.

Setup

Handle pause_turn by appending the returned assistant content unchanged and sending another request with the same tools. Preserve every paused response in order, retain any returned container ID and cap repeated continuations. Dropping earlier content can lose work or cause a 400 error; omitting the container starts a new container without earlier files.

When client tools are waiting, append the assistant response and then a user message containing only tool_result blocks, one for every client tool_use ID. Preserve the tools array. Extra text, missing results or incorrect ordering can invalidate the exchange. Add further user input after the turn finishes.

Configure either allowed_domains or blocked_domains, without URL schemes. Parent domains include subdomains; specific subdomains narrow the scope. Search supports paths and path wildcards, while fetch matches domains only and never matches entries containing paths. Wildcards in domain names are invalid.

Example

One example combines web_fetch_20250910 with an application-defined run_command tool. Claude returns both calls with stop_reason of tool_use, but the web-fetch result is absent. The application supplies only the client tool’s result in the next user message and keeps both tool definitions. The deferred fetch result then arrives in the following assistant response.

The Python example supplies a fixed Linux output string for the client tool; it does not implement command execution. This illustrates the message sequence only. Neither that command nor any API request was executed for this report.

Assessment & evidence

Limitations

The page states that web_search_20250305 and web_fetch_20250910 are ZDR-eligible. The _20260209 and later versions are not eligible by default because dynamic filtering uses code execution. It instructs developers needing ZDR to disable dynamic filtering with allowed_callers set to ["direct"]. Website publishers may still retain parameters included in fetched URLs.

The page warns that Unicode lookalike domains can bypass domain filters and recommends ASCII-only entries and auditing existing lists. Domain restrictions therefore require careful input handling.

The page does not provide an exhaustive compatibility matrix, performance benchmarks or operational reliability measurements. Runtime behavior and example correctness were not assessed through execution.

Reasoning

The guide’s practical strength is its explanation of who must act next. A paused server loop needs preserved assistant content; a turn waiting for client tools needs their results. That distinction determines the next valid API request.

Delegating server-tool execution can reduce application code devoted to running those tools. The documented continuation requirements show that applications still need explicit state management. This makes the guide especially relevant to integrations that combine Anthropic tools with their own operations.

Alternatives

The page describes client tools for operations executed by application code. They return tool_use blocks and require corresponding tool_result blocks, giving developers a different division of execution responsibility from hosted server tools.

Within the web tools, direct-only calling offers an alternative to dynamic filtering through code execution. Setting allowed_callers to ["direct"] bypasses that filtering step and is the documented configuration for using later web-tool versions with ZDR. The page provides no comparative assessment of other providers or frameworks.

Evidence

The supporting material is the complete Anthropic Server tools page from [https://platform.claude.com/docs/en/agents-and-tools/tool-use/server-tools.md]. It contains protocol explanations, request and response examples, configuration rules and specific validation-error descriptions.

These support an account of documented behavior, rather than independently demonstrated behavior. Linked tool references, pricing information, retention documentation and troubleshooting pages supply no additional evidence here. No code or API requests were executed.

Access & freshness

Costs

The page provides no API prices, tool charges, code-execution charges or worked cost estimate. Those costs are unknown from this evidence.

Examples include max_tokens and max_uses settings and recommend bounding continuation loops. These settings describe limits rather than a monetary budget. Automatic provisioning of code execution does not establish whether additional charges apply.

Rights

The supplied page does not state a license or redistribution permission for its text or code examples. It also does not establish reuse rights for third-party content retrieved by web tools.

Zero Data Retention eligibility concerns data handling; it does not establish permission to republish documentation or retrieved material.

Freshness

The supplied copy was captured at 2026-11-24T23:05:27.943Z. No publication or last-updated date is supplied for the page.

Its examples use the claude-opus-5-5 model identifier and, in cURL requests, the anthropic-version header 2026-10-21. Tool behavior is distinguished by dated identifiers such as web_search_20250305, web_fetch_20250910 and the _20260209 versions. These are source example values; their current availability and compatibility were not independently verified.

Actions

Before implementation, confirm the intended model/tool combination, prices and retention requirements in the relevant Anthropic references. The page points to the tool reference at [https://platform.claude.com/docs/en/agents-and-tools/tool-use/tool-reference].

For an integration, build separate handling for pause_turn and client tool_use responses. Check repeated pauses, retained containers, complete conversation history, mixed calls and tool-result-only follow-ups. Validate domain settings against organization restrictions and inspect entries for Unicode lookalikes.

If streaming or batch processing is required, consult the linked feature-specific documentation for details beyond the shared behavior explained here.

Evidence for this report

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