Reference documentation and code samples for the API hub V1 API class Google::Cloud::ApiHub::V1::McpTool.
Details describing an MCP Tool.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#annotations
def annotations() -> ::Google::Cloud::ApiHub::V1::ToolAnnotations
Returns
- (::Google::Cloud::ApiHub::V1::ToolAnnotations) — Optional. Optional annotations for the tool.
#annotations=
def annotations=(value) -> ::Google::Cloud::ApiHub::V1::ToolAnnotations
Parameter
- value (::Google::Cloud::ApiHub::V1::ToolAnnotations) — Optional. Optional annotations for the tool.
Returns
- (::Google::Cloud::ApiHub::V1::ToolAnnotations) — Optional. Optional annotations for the tool.
#description
def description() -> ::String
Returns
- (::String) — Optional. Description of what the tool does.
#description=
def description=(value) -> ::String
Parameter
- value (::String) — Optional. Description of what the tool does.
Returns
- (::String) — Optional. Description of what the tool does.
#input_schema
def input_schema() -> ::Google::Cloud::ApiHub::V1::OperationSchema
Returns
- (::Google::Cloud::ApiHub::V1::OperationSchema) — Optional. Input schema for the operation. This can be parsed only from MCP schema type.
#input_schema=
def input_schema=(value) -> ::Google::Cloud::ApiHub::V1::OperationSchema
Parameter
- value (::Google::Cloud::ApiHub::V1::OperationSchema) — Optional. Input schema for the operation. This can be parsed only from MCP schema type.
Returns
- (::Google::Cloud::ApiHub::V1::OperationSchema) — Optional. Input schema for the operation. This can be parsed only from MCP schema type.
#name
def name() -> ::String
Returns
- (::String) — Required. The name of the tool, unique within its parent scope (version).
#name=
def name=(value) -> ::String
Parameter
- value (::String) — Required. The name of the tool, unique within its parent scope (version).
Returns
- (::String) — Required. The name of the tool, unique within its parent scope (version).
#output_schema
def output_schema() -> ::Google::Cloud::ApiHub::V1::OperationSchema
Returns
- (::Google::Cloud::ApiHub::V1::OperationSchema) — Optional. Output schema for the operation. This can be parsed only from MCP schema type.
#output_schema=
def output_schema=(value) -> ::Google::Cloud::ApiHub::V1::OperationSchema
Parameter
- value (::Google::Cloud::ApiHub::V1::OperationSchema) — Optional. Output schema for the operation. This can be parsed only from MCP schema type.
Returns
- (::Google::Cloud::ApiHub::V1::OperationSchema) — Optional. Output schema for the operation. This can be parsed only from MCP schema type.
#title
def title() -> ::String
Returns
- (::String) — Optional. Optional title for the tool.
#title=
def title=(value) -> ::String
Parameter
- value (::String) — Optional. Optional title for the tool.
Returns
- (::String) — Optional. Optional title for the tool.