I am getting the following error: An error occurred: Input validation error: '1.57' is not of type 'number' From what I understand, this happens before the MCP server is called: LangChain’s MCP adapter is validating the tool call arguments against the JSON Schema and the model is emitting "1.57" as a string instead of 1.57 as a number, so the validation fails. Is that understanding correct? And what’s the recommended way to deal with this when...
Originally asked by Aashishkumar on Stack Exchange (stackoverflow) (CC BY-SA 4.0).