N8N doesn’t work well with tools, sometimes it doesn’t call for some obscure reason, because the tests of the same system prompt in openrouter for example regardless of LLM, the function appears, but n8n ignores it after a few loops, if you for example have 10 questions to ask, and with each answer, a function call to write a spreadsheet for example, on the third or fourth answer, it no longer calls the tool. It seems like it gets lost, I’ve done EVERYTHING. I’ve changed the prompt several times, I’ve redone it with the help of several LLM, and I’ve come to the conclusion that the problem is in N8N. I’ve tested Dify and it works first time with all calls and iterations. N8N was not made for this, very weak.
Other failed attempts:
I have already tried to create an MCP server, I have already described the tool in detail, I have already modified the structure of the agent’s output, I have already tried to inject something into the user input.