McpToolConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)A tool exposed by the MCP server. Each tool wraps exactly one API Hub operation under a caller-supplied identifier.
Attributes |
|
|---|---|
| Name | Description |
tool_id |
str
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. |
description |
str
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. |
operation |
google.cloud.apihub_v1.types.OperationConfig
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. |