API hub v1 API - Class McpTool (1.3.0)

public sealed class McpTool : IMessage<McpTool>, IEquatable<McpTool>, IDeepCloneable<McpTool>, IBufferMessage, IMessage

Reference documentation and code samples for the API hub v1 API class McpTool.

Details describing an MCP Tool.

Inheritance

object > McpTool

Namespace

Google.Cloud.ApiHub.V1

Assembly

Google.Cloud.ApiHub.V1.dll

Constructors

McpTool()

public McpTool()

McpTool(McpTool)

public McpTool(McpTool other)
Parameter
Name Description
other McpTool

Properties

Annotations

public ToolAnnotations Annotations { get; set; }

Optional. Optional annotations for the tool.

Property Value
Type Description
ToolAnnotations

Description

public string Description { get; set; }

Optional. Description of what the tool does.

Property Value
Type Description
string

InputSchema

public OperationSchema InputSchema { get; set; }

Optional. Input schema for the operation. This can be parsed only from MCP schema type.

Property Value
Type Description
OperationSchema

Name

public string Name { get; set; }

Required. The name of the tool, unique within its parent scope (version).

Property Value
Type Description
string

OutputSchema

public OperationSchema OutputSchema { get; set; }

Optional. Output schema for the operation. This can be parsed only from MCP schema type.

Property Value
Type Description
OperationSchema

Title

public string Title { get; set; }

Optional. Optional title for the tool.

Property Value
Type Description
string