Incorrect MCP definition in function docstring
The docstring of the function adk_to_mcp_tool_type in src/google/adk/tools/mcp_tool/conversion_utils.py incorrectly labels MCP as 'Model Control Plane' instead of 'Model Context Protocol.'
The function is as follows:
def adk_to_mcp_tool_type(tool: BaseTool) -> mcp_types.Tool:
"""Convert a Tool in ADK into MCP tool type.
This function transforms an ADK tool definition into its equivalent
representation in the MCP (Model Control Plane) system.
Args:
tool: The ADK tool to convert. It should be an instance of a class derived
from `BaseTool`.
Returns:
An object of MCP Tool type, representing the converted tool.
Examples:
# Assuming 'my_tool' is an instance of a BaseTool derived class
mcp_tool = adk_to_mcp_tool_type(my_tool)
print(mcp_tool)
"""
tool_declaration = tool._get_declaration()
if not tool_declaration:
input_schema = {}
else:
input_schema = gemini_to_json_schema(tool._get_declaration().parameters)
return mcp_types.Tool(
name=tool.name,
description=tool.description,
inputSchema=input_schema,
)
I did some brief research, and it looks like the acronym definition was changed in this commit.
Desktop:
- ADK version: 0.3.0
Thanks for catching it. Could you help fix it?
Hello! Can I take this up?
Hello! Can I take this up?
Go for it! My current corporate policy doesn't permit forks/PRs..
I hope it's still open, can I work on this?
got it