diff --git a/src/google/adk/tools/mcp_tool/mcp_tool.py b/src/google/adk/tools/mcp_tool/mcp_tool.py index 49ee80af039..7892f45cb40 100644 --- a/src/google/adk/tools/mcp_tool/mcp_tool.py +++ b/src/google/adk/tools/mcp_tool/mcp_tool.py @@ -430,6 +430,7 @@ async def run_async( " ToolConfirmation payload." ), ) + tool_context.actions.skip_summarization = True return { "error": ( "This tool call requires confirmation, please approve or" diff --git a/tests/unittests/tools/mcp_tool/test_mcp_tool.py b/tests/unittests/tools/mcp_tool/test_mcp_tool.py index 4e8564dce17..0b39bbe5abd 100644 --- a/tests/unittests/tools/mcp_tool/test_mcp_tool.py +++ b/tests/unittests/tools/mcp_tool/test_mcp_tool.py @@ -1056,6 +1056,7 @@ async def test_run_async_require_confirmation_true_no_confirmation(self): ) } tool_context.request_confirmation.assert_called_once() + assert tool_context.actions.skip_summarization is True @pytest.mark.asyncio async def test_run_async_require_confirmation_true_rejected(self):