Gemini Enterprise for Customer Experience V1 API - Class Google::Cloud::Ces::V1::McpTool (v0.1.0)

Reference documentation and code samples for the Gemini Enterprise for Customer Experience V1 API class Google::Cloud::Ces::V1::McpTool.

An MCP tool. See https://modelcontextprotocol.io/specification/2025-06-18/server/tools for more details.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#api_authentication

def api_authentication() -> ::Google::Cloud::Ces::V1::ApiAuthentication
Returns
  • (::Google::Cloud::Ces::V1::ApiAuthentication) — Optional. Authentication information required to execute the tool against the MCP server. For bearer token authentication, the token applies only to tool execution, not to listing tools. This requires that tools can be listed without authentication.

#api_authentication=

def api_authentication=(value) -> ::Google::Cloud::Ces::V1::ApiAuthentication
Parameter
  • value (::Google::Cloud::Ces::V1::ApiAuthentication) — Optional. Authentication information required to execute the tool against the MCP server. For bearer token authentication, the token applies only to tool execution, not to listing tools. This requires that tools can be listed without authentication.
Returns
  • (::Google::Cloud::Ces::V1::ApiAuthentication) — Optional. Authentication information required to execute the tool against the MCP server. For bearer token authentication, the token applies only to tool execution, not to listing tools. This requires that tools can be listed without authentication.

#custom_headers

def custom_headers() -> ::Google::Protobuf::Map{::String => ::String}
Returns
  • (::Google::Protobuf::Map{::String => ::String}) — Optional. The custom headers to send in the request to the MCP server. The values must be in the format $context.variables.<name_of_variable> and can be set in the session variables. See https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection for more details.

#custom_headers=

def custom_headers=(value) -> ::Google::Protobuf::Map{::String => ::String}
Parameter
  • value (::Google::Protobuf::Map{::String => ::String}) — Optional. The custom headers to send in the request to the MCP server. The values must be in the format $context.variables.<name_of_variable> and can be set in the session variables. See https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection for more details.
Returns
  • (::Google::Protobuf::Map{::String => ::String}) — Optional. The custom headers to send in the request to the MCP server. The values must be in the format $context.variables.<name_of_variable> and can be set in the session variables. See https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection for more details.

#description

def description() -> ::String
Returns
  • (::String) — Optional. The description of the MCP tool.

#description=

def description=(value) -> ::String
Parameter
  • value (::String) — Optional. The description of the MCP tool.
Returns
  • (::String) — Optional. The description of the MCP tool.

#input_schema

def input_schema() -> ::Google::Cloud::Ces::V1::Schema
Returns

#input_schema=

def input_schema=(value) -> ::Google::Cloud::Ces::V1::Schema
Parameter
Returns

#name

def name() -> ::String
Returns
  • (::String) — Required. The name of the MCP tool.

#name=

def name=(value) -> ::String
Parameter
  • value (::String) — Required. The name of the MCP tool.
Returns
  • (::String) — Required. The name of the MCP tool.

#output_schema

def output_schema() -> ::Google::Cloud::Ces::V1::Schema
Returns

#output_schema=

def output_schema=(value) -> ::Google::Cloud::Ces::V1::Schema
Parameter
Returns

#server_address

def server_address() -> ::String
Returns
  • (::String) — Required. The server address of the MCP server, e.g., "https://example.com/mcp/". If the server is built with the MCP SDK, the url should be suffixed with "/mcp/". Only Streamable HTTP transport based servers are supported. This is the same as the server_address in the McpToolset. See https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http for more details.

#server_address=

def server_address=(value) -> ::String
Parameter
  • value (::String) — Required. The server address of the MCP server, e.g., "https://example.com/mcp/". If the server is built with the MCP SDK, the url should be suffixed with "/mcp/". Only Streamable HTTP transport based servers are supported. This is the same as the server_address in the McpToolset. See https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http for more details.
Returns
  • (::String) — Required. The server address of the MCP server, e.g., "https://example.com/mcp/". If the server is built with the MCP SDK, the url should be suffixed with "/mcp/". Only Streamable HTTP transport based servers are supported. This is the same as the server_address in the McpToolset. See https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http for more details.

#service_directory_config

def service_directory_config() -> ::Google::Cloud::Ces::V1::ServiceDirectoryConfig
Returns

#service_directory_config=

def service_directory_config=(value) -> ::Google::Cloud::Ces::V1::ServiceDirectoryConfig
Parameter
Returns

#tls_config

def tls_config() -> ::Google::Cloud::Ces::V1::TlsConfig
Returns

#tls_config=

def tls_config=(value) -> ::Google::Cloud::Ces::V1::TlsConfig
Parameter
Returns