Skip to content

Commit 645871f

Browse files
committed
improve log message
1 parent 2843e0a commit 645871f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/mcp/client/session.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,8 +321,7 @@ async def _validate_tool_result(self, name: str, result: types.CallToolResult) -
321321
if name in self._tool_output_schemas:
322322
output_schema = self._tool_output_schemas.get(name)
323323
else:
324-
num_tools = len(self._tool_output_schemas)
325-
logger.warning(f"Tool {name} not listed by server when refreshing schema cache ({num_tools} tools listed)")
324+
logger.warning(f"Tool {name} not listed by server, cannot validate any structured content")
326325

327326
if output_schema is not None:
328327
if result.structuredContent is None:

0 commit comments

Comments
 (0)