Use this option to force the model to call a specific tool on a remote MCP server.

interface ToolChoiceMcp {
    name?: null | string;
    server_label: string;
    type: "mcp";
}

Properties

name?: null | string

The name of the tool to call on the server.

server_label: string

The label of the MCP server to use.

type: "mcp"

For MCP tools, the type is always mcp.