Describe the problem/error/question
AI agent connected to MCP client. The tool has 3 arguments: one is marked required and the other two are optional.
If the model creates a tool call without ALL optional arguments the agent fails before calling the tool on this false validation.
I have managed to repro this in several ways:
- I changed the tool above to have all arguements required - the model calls the tools with all arguments, even if some are empty, and then the agent works fine.
- I wrote an instruction in the system prompt to ALWAYS pass all parameters to the tool, even if they are empty, and the tool works fine.
What is the error message (if any)?
[ERROR: Received tool input did not match expected schema]
Please share your workflow
Share the output returned by the last node
Information on your n8n setup
- n8n version: Version 1.115.3
- Database (default: SQLite):
- n8n EXECUTIONS_PROCESS setting (default: own, main): own
- Running n8n via (Docker, npm, n8n cloud, desktop app): docker and n8n cloud
- Operating system: MAC