class

OpenAI::MCPListToolsTool

Inherits JSON::Serializable < Reference < Object

A tool available on an MCP server.

Constructors

new(name : String = "", description : MCPListToolsToolDescription | Nil = nil, input_schema : Hash(String, JSON::Any) = Hash(String, JSON::Any).new, annotations : MCPListToolsToolAnnotations | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

annotations
Source
annotations=(annotations : MCPListToolsToolAnnotations | Nil)
Source
description
Source
description=(description : MCPListToolsToolDescription | Nil)
Source
input_schema

The JSON schema describing the tool's input.

Source
input_schema=(input_schema : Hash(String, JSON::Any))

The JSON schema describing the tool's input.

Source
name

The name of the tool.

Source
name=(name : String)

The name of the tool.

Source