When the tool output does not include an outputSchema, the _validate_tool_result during call_tool becomes ineffective.
|
inputSchema=info.inputSchema, |
t is necessary to add outputSchema=info.outputSchema, otherwise the output structure validation will never be triggered."
async def _list_tmp_tools(self) -> list[Tool]:
"""List all available tools."""
return [
Tool(
name=info.name,
description=info.description,
inputSchema=info.inputSchema,
outputSchema=info.outputSchema,
)
for info in list(self._tmp_tools.values()) if self.is_tool_enabled(
info.name)
]
When the tool output does not include an outputSchema, the _validate_tool_result during call_tool becomes ineffective.
nacos-mcp-wrapper-python/nacos_mcp_wrapper/server/nacos_server.py
Line 104 in f24f12c
t is necessary to add outputSchema=info.outputSchema, otherwise the output structure validation will never be triggered."