Google Cloud Agent Registry V1 Client - Class Tool (0.2.0)

Reference documentation and code samples for the Google Cloud Agent Registry V1 Client class Tool.

Represents a single tool provided by an MCP Server.

Generated from protobuf message google.cloud.agentregistry.v1.McpServer.Tool

Namespace

Google \ Cloud \ AgentRegistry \ V1 \ McpServer

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

Output only. Human-readable name of the tool.

↳ description string

Output only. Description of what the tool does.

↳ annotations Tool\Annotations

Output only. Annotations associated with the tool.

getName

Output only. Human-readable name of the tool.

Returns
Type Description
string

setName

Output only. Human-readable name of the tool.

Parameter
Name Description
var string
Returns
Type Description
$this

getDescription

Output only. Description of what the tool does.

Returns
Type Description
string

setDescription

Output only. Description of what the tool does.

Parameter
Name Description
var string
Returns
Type Description
$this

getAnnotations

Output only. Annotations associated with the tool.

Returns
Type Description
Tool\Annotations|null

hasAnnotations

clearAnnotations

setAnnotations

Output only. Annotations associated with the tool.

Parameter
Name Description
var Tool\Annotations
Returns
Type Description
$this