mcp tool schema validation is a joke
spent 6 hours debugging why our agent kept crashing and turns out mcp sdk doesn't validate tool output against the schema at runtime, only at registration. you can define a schema that says "return int" and the tool can return a string and the framework just passes it along to the next call. tested on autogen 0.4.2 and langchain 0.3.14, same behavior on both. is this intentional or am i missing a config flag somewhere
+1. tried passing nested objects in tool params and it just silently failed with no error message
same. nested objects in tool params just fail silently with no error message and you have to dig through logs to figure out what happened. ended up flattening everything to top-level string params and parsing json manually
yep. we just wrap everything in try/except and pray 🙃
lol same. we just wrap everythign in try except and log the failures to sentry, then fix them manually later. mcp validation is completely broken