API hub V1 API - Class Google::Cloud::ApiHub::V1::McpServerConfig::McpToolConfig (v1.3.0)

Reference documentation and code samples for the API hub V1 API class Google::Cloud::ApiHub::V1::McpServerConfig::McpToolConfig.

A tool exposed by the MCP server. Each tool wraps exactly one API Hub operation under a caller-supplied identifier.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#description

def description() -> ::String
Returns
  • (::String) — Required. Description of what the tool does and how it is used. Description serves as key reference for the agent to know about the tool capabilities.

#description=

def description=(value) -> ::String
Parameter
  • value (::String) — Required. Description of what the tool does and how it is used. Description serves as key reference for the agent to know about the tool capabilities.
Returns
  • (::String) — Required. Description of what the tool does and how it is used. Description serves as key reference for the agent to know about the tool capabilities.

#operation

def operation() -> ::Google::Cloud::ApiHub::V1::OperationConfig
Returns
  • (::Google::Cloud::ApiHub::V1::OperationConfig) — Required. The API Hub operation this tool exposes. Each tool wraps exactly one operation; callers that want to expose multiple operations should declare multiple tools.

#operation=

def operation=(value) -> ::Google::Cloud::ApiHub::V1::OperationConfig
Parameter
  • value (::Google::Cloud::ApiHub::V1::OperationConfig) — Required. The API Hub operation this tool exposes. Each tool wraps exactly one operation; callers that want to expose multiple operations should declare multiple tools.
Returns
  • (::Google::Cloud::ApiHub::V1::OperationConfig) — Required. The API Hub operation this tool exposes. Each tool wraps exactly one operation; callers that want to expose multiple operations should declare multiple tools.

#tool_id

def tool_id() -> ::String
Returns
  • (::String) — Required. Caller-supplied identifier for the tool; each tool must have a unique identifier. This will be by used by agents to invoke the tool. Tool ID must be unique across all tools in the given MCP server configuration.

#tool_id=

def tool_id=(value) -> ::String
Parameter
  • value (::String) — Required. Caller-supplied identifier for the tool; each tool must have a unique identifier. This will be by used by agents to invoke the tool. Tool ID must be unique across all tools in the given MCP server configuration.
Returns
  • (::String) — Required. Caller-supplied identifier for the tool; each tool must have a unique identifier. This will be by used by agents to invoke the tool. Tool ID must be unique across all tools in the given MCP server configuration.