Package com.google.adk.tools.mcp
Class ConversionUtils
java.lang.Object
com.google.adk.tools.mcp.ConversionUtils
Static helpers for converting ADK tools to MCP tools.
-
Method Summary
Modifier and TypeMethodDescriptionstatic io.modelcontextprotocol.spec.McpSchema.TooladkToMcpToolType(BaseTool tool) Converts an ADK tool to an MCP tool.
-
Method Details
-
adkToMcpToolType
Converts an ADK tool to an MCP tool. Uses the declaration'sparametersJsonSchemawhen present and non-empty, falls back toparametersconverted to JSON Schema, and defaults to{"type": "object"}.
-