API hub v1 API - Class McpServerConfig.Types.McpToolConfig (1.3.0)

public sealed class McpServerConfig.Types.McpToolConfig : IMessage<McpServerConfig.Types.McpToolConfig>, IEquatable<McpServerConfig.Types.McpToolConfig>, IDeepCloneable<McpServerConfig.Types.McpToolConfig>, IBufferMessage, IMessage

Reference documentation and code samples for the API hub v1 API class McpServerConfig.Types.McpToolConfig.

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

Inheritance

object > McpServerConfig.Types.McpToolConfig

Namespace

Google.Cloud.ApiHub.V1

Assembly

Google.Cloud.ApiHub.V1.dll

Constructors

McpToolConfig()

public McpToolConfig()

McpToolConfig(McpToolConfig)

public McpToolConfig(McpServerConfig.Types.McpToolConfig other)
Parameter
Name Description
other McpServerConfigTypesMcpToolConfig

Properties

Description

public string Description { get; set; }

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.

Property Value
Type Description
string

Operation

public OperationConfig Operation { get; set; }

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.

Property Value
Type Description
OperationConfig

ToolId

public string ToolId { get; set; }

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.

Property Value
Type Description
string