What are Server Tools
Server Tools are built-in tools hosted and executed automatically by MiniMax on the server side. Unlike traditional Function Calls (client-side tools), you don’t need to implement the tool’s execution logic or manually return tool results across multiple turns—the model automatically invokes the tool, retrieves the result, and continues generating within a single API request.This capability is currently in Beta; behavior and parameters may change.
Client-side tools (Function Call)
The model returns
tool_use, your code executes it, and you pass tool_result back. Requires multiple round trips.Server Tools
The model executes the tool and retrieves the result on MiniMax’s servers, all within a single request. You only read the final reply.
Availability
| Capability | Support |
|---|---|
| Interface | Anthropic Messages API only (/anthropic/v1/messages) |
| Available tools | web_search |
| How to use | Declare the server tool in the request’s tools array |
web_search
web_search lets the model search the web automatically while generating a reply, fetch real-time information, and answer based on the search results. It’s ideal for time-sensitive questions that require the latest facts (news, market data, documentation lookups, etc.).
Declare the tool
Add a tool withtype set to web_search_20250305 to your tools array:
web_search_20250305 is the versioned type identifier of this server tool, following Anthropic’s official naming convention: web_search is the tool name, and the 20250305 suffix (i.e. 2025-03-05) marks the tool’s release version. When the tool’s capabilities change, Anthropic ships a new version under a new date suffix — always use the type declared here.Example
Response
Onceweb_search is enabled, the model executes the search on the server side and uses the results to generate its final reply. You don’t need to handle tool_use / tool_result round trips—just read the text content blocks in message.content to get the answer.
message.content returns multiple content blocks in the order the model executed them. A complete search-and-answer flow typically includes the following types:
| Block type | Description |
|---|---|
text | Text generated by the model. Both the lead-in before searching and the final answer after searching use this type |
server_tool_use | The tool call the model issued on the server side. name is web_search, and input.query is the actual search query |
web_search_tool_result | The search results returned by the server. content is a list of web_search_result items with fields such as title, url, page_age, and content |
Full response example
Full response example
Notes
- Server Tools are in Beta; behavior and parameters may change at any time.
- Only the Anthropic Messages API supports Server Tools, and only the
web_searchtool is available. - Make sure
ANTHROPIC_BASE_URLis set tohttps://api.minimax.io/anthropic. See the Anthropic SDK documentation for details.