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

Declare web_search in the tools array using the format for your interface:
The Anthropic Messages API uses the versioned type identifier web_search_20250305; the OpenAI Responses API uses the web_search tool type. Use the format that matches the interface you call.

Example

cURL

Response

Anthropic Messages API

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:

OpenAI Responses API

Once web_search is enabled, the server completes the search and response generation within a single request; you do not need to return tool results. The response’s output array contains the search call and model reply. Read the top-level output_text field to get the final answer directly.
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. web_search is currently the only available Server Tool. It can be called through the Anthropic Messages API and the OpenAI Responses API.
  3. The Anthropic Messages API Base URL is https://api.minimax.io/anthropic; the OpenAI Responses API endpoint is https://api.minimax.io/v1/responses. See the Anthropic SDK and Responses API documentation for details.
If you run into any issues, contact our technical support team at Model@minimaxi.com.