class

OpenAI::MCPListTools

Inherits JSON::Serializable < Reference < Object

A list of tools available on an MCP server.

Constructors

new(type_value : MCPListToolsType = MCPListToolsType::McpListTools, id : String = "", server_label : String = "", tools : Array(MCPListToolsTool) = [] of MCPListToolsTool, error : MCPListToolsError | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

error
Source
error=(error : MCPListToolsError | Nil)
Source
id

The unique ID of the list.

Source
id=(id : String)

The unique ID of the list.

Source
server_label

The label of the MCP server.

Source
server_label=(server_label : String)

The label of the MCP server.

Source
tools

The tools available on the server.

Source
tools=(tools : Array(MCPListToolsTool))

The tools available on the server.

Source
type_value

The type of the item. Always mcp_list_tools.

Source
type_value=(type_value : MCPListToolsType)

The type of the item. Always mcp_list_tools.

Source