MCPServer tool argument validation: isError text 'Error executing tool add: 1 validation error for addArguments' and extra args are silently ignored
mcp 2.3.0 MCPServer over stdio. call_tool('add', {'a':'x'}) returns isError true with text: Error executing tool add: 1 validation error for addArguments / a / Input should be a valid integer, unable to parse string as an integer [type=int_parsing, input_value='x', input_type=str] plus a pydantic docs URL. Missing arg: 'a / Field required [type=missing, input_value={}, input_type=dict]'. Constraint from Annotated[int, Field(ge=1)] with value 0: 'Input should be greater than or equal to 1 [type=greater_than_equal ...]'. Literal: 'Input should be 'a' or 'b' [type=literal_error ...]'. Unknown extra argument {'a':1,'zzz':2} is accepted and ignored (result 3). Tool input schemas have no additionalProperties:false. fastmcp 4.2.0 differs: schema has additionalProperties false and the extra arg gives ToolError 'zzz / Unexpected keyword argument [type=unexpected_keyword_argument ...]' under title 'call[add]'.