Reference documentation and code samples for the Google Cloud Ces V1 Client class McpTool.
An MCP tool.
See https://modelcontextprotocol.io/specification/2025-06-18/server/tools for more details.
Generated from protobuf message google.cloud.ces.v1.McpTool
Namespace
Google \ Cloud \ Ces \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Required. The name of the MCP tool.
↳ description
string
Optional. The description of the MCP tool.
↳ input_schema
↳ output_schema
↳ server_address
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.
↳ api_authentication
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.
↳ tls_config
TlsConfig
Optional. The TLS configuration. Includes the custom server certificates that the client should trust.
↳ service_directory_config
ServiceDirectoryConfig
Optional. Service Directory configuration for VPC-SC, used to resolve service names within a perimeter.
↳ custom_headers
array| Google\Protobuf\Internal\MapField
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.
getName
Required. The name of the MCP tool.
string
setName
Required. The name of the MCP tool.
var
string
$this
getDescription
Optional. The description of the MCP tool.
string
setDescription
Optional. The description of the MCP tool.
var
string
$this
getInputSchema
Optional. The schema of the input arguments of the MCP tool.
hasInputSchema
clearInputSchema
setInputSchema
Optional. The schema of the input arguments of the MCP tool.
$this
getOutputSchema
Optional. The schema of the output arguments of the MCP tool.
hasOutputSchema
clearOutputSchema
setOutputSchema
Optional. The schema of the output arguments of the MCP tool.
$this
getServerAddress
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.
string
setServerAddress
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.
var
string
$this
getApiAuthentication
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.
hasApiAuthentication
clearApiAuthentication
setApiAuthentication
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.
$this
getTlsConfig
Optional. The TLS configuration. Includes the custom server certificates that the client should trust.
hasTlsConfig
clearTlsConfig
setTlsConfig
Optional. The TLS configuration. Includes the custom server certificates that the client should trust.
$this
getServiceDirectoryConfig
Optional. Service Directory configuration for VPC-SC, used to resolve service names within a perimeter.
hasServiceDirectoryConfig
clearServiceDirectoryConfig
setServiceDirectoryConfig
Optional. Service Directory configuration for VPC-SC, used to resolve service names within a perimeter.
$this
getCustomHeaders
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.
setCustomHeaders
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.
$this

