fix: Undo adding MCP tools output schema to FunctionDeclaration

Co-authored-by: Xuan Yang <xygoogle@google.com>
PiperOrigin-RevId: 827557144
This commit is contained in:
Xuan Yang
2025-11-03 10:31:58 -08:00
committed by Copybara-Service
parent a02f321f1b
commit 92a7d19573
2 changed files with 0 additions and 45 deletions
@@ -121,13 +121,10 @@ class McpTool(BaseAuthenticatedTool):
"""
input_schema = self._mcp_tool.inputSchema
parameters = _to_gemini_schema(input_schema)
output_schema = self._mcp_tool.outputSchema
response = _to_gemini_schema(output_schema)
function_decl = FunctionDeclaration(
name=self.name,
description=self.description,
parameters=parameters,
response=response,
)
return function_decl