A list of tools available on an MCP server.

interface McpListTools {
    error?: null | string;
    id: string;
    server_label: string;
    tools: OpenAIClient.Responses.ResponseItem.McpListTools.Tool[];
    type: "mcp_list_tools";
}

Properties

error?: null | string

Error message if the server could not list tools.

id: string

The unique ID of the list.

server_label: string

The label of the MCP server.

The tools available on the server.

type: "mcp_list_tools"

The type of the item. Always mcp_list_tools.