Skip to main content

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

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 with type 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

Once web_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:
Because the search runs entirely on the server, a single request may take longer than one without tools. Set your client timeout accordingly.

Notes

  1. Server Tools are in Beta; behavior and parameters may change at any time.
  2. Only the Anthropic Messages API supports Server Tools, and only the web_search tool is available.
  3. Make sure ANTHROPIC_BASE_URL is set to https://api.minimax.io/anthropic. See the Anthropic SDK documentation for details.
If you run into any issues, contact our technical support team at Model@minimaxi.com.