Description
MCP Client session currently validates the output generated by MCP servers agains the reported json schema, and raises ValidationError.
This means that MCP server tools that have a not well maintained output schema, but are otherwise functional, are unusable.
The request is to add an option either at the ClientSession interface and/or the call_tool method so skip validation and return the result even if it does not conform to the output schemma
References
https://github.com/modelcontextprotocol/python-sdk/blob/main/src/mcp/client/session.py#L319-L349
Description
MCP Client session currently validates the output generated by MCP servers agains the reported json schema, and raises
ValidationError.This means that MCP server tools that have a not well maintained output schema, but are otherwise functional, are unusable.
The request is to add an option either at the
ClientSessioninterface and/or thecall_toolmethod so skip validation and return the result even if it does not conform to the output schemmaReferences
https://github.com/modelcontextprotocol/python-sdk/blob/main/src/mcp/client/session.py#L319-L349