Google Cloud Ces V1 Client - Class McpToolOverride (0.3.0)

Reference documentation and code samples for the Google Cloud Ces V1 Client class McpToolOverride.

Overrides associated with a given tool in a Toolset.

This enables "pinning" or "overriding" of tool definitions from the external dynamic server.

Generated from protobuf message google.cloud.ces.v1.McpToolOverride

Namespace

Google \ Cloud \ Ces \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ tool string

Required. The original name of the tool as it is emitted by the MCP server.

↳ name_override string

Optional. If present, this tool uses this name in the Agent instead of the original name. This is primarily used as an alias if the MCP server offers poorly named tools.

↳ description_override string

Optional. If present, this tool uses this description instead of the original description from the server.

↳ snapshot McpToolDefinition

Output only. If present, this tool is "Pinned" and uses the snapshot values as fallbacks if the server becomes temporarily unavailable or if no Override is present.

getTool

Required. The original name of the tool as it is emitted by the MCP server.

Returns
Type Description
string

setTool

Required. The original name of the tool as it is emitted by the MCP server.

Parameter
Name Description
var string
Returns
Type Description
$this

getNameOverride

Optional. If present, this tool uses this name in the Agent instead of the original name. This is primarily used as an alias if the MCP server offers poorly named tools.

Returns
Type Description
string

setNameOverride

Optional. If present, this tool uses this name in the Agent instead of the original name. This is primarily used as an alias if the MCP server offers poorly named tools.

Parameter
Name Description
var string
Returns
Type Description
$this

getDescriptionOverride

Optional. If present, this tool uses this description instead of the original description from the server.

Returns
Type Description
string

setDescriptionOverride

Optional. If present, this tool uses this description instead of the original description from the server.

Parameter
Name Description
var string
Returns
Type Description
$this

getSnapshot

Output only. If present, this tool is "Pinned" and uses the snapshot values as fallbacks if the server becomes temporarily unavailable or if no Override is present.

Returns
Type Description
McpToolDefinition|null

hasSnapshot

clearSnapshot

setSnapshot

Output only. If present, this tool is "Pinned" and uses the snapshot values as fallbacks if the server becomes temporarily unavailable or if no Override is present.

Parameter
Name Description
var McpToolDefinition
Returns
Type Description
$this