Tool calling chain with local Ollama models (7b/14b) - 2nd tool never executed
Describe the problem/error/question
Tool calling chain with local Ollama models (7b/14b) - 2nd tool never executed.
I’m building a multi-agent workflow in n8n with an AI Agent node using Ollama
(tested with qwen2.5:7b, qwen2.5:14b, qwen2.5:32b, llama3.1:8b, mistral:7b, mistral-small:24b).
The AI agent has 4 tools: agent_bdd, agent_api, agent_redacteur, synthese_vocale.
I tested each tool individually they all work perfectly.
I also tested linking all 4 tools without AI Agent using sequential Execute Workflow nodes it works perfectly too.
But when I use the AI Agent to orchestrate the system (with 7b/8b/14b and 24b models):
- Tool 1 (agent_bdd) is called correctly and the output is the good output
- Tool 2 (agent_api) is not executed the agent writes “Calling agent_api with input: {…}” as plain text in its response .
Notes: - I put Temperature at 0.0.
- The tools are properly configured (Call n8n Workflow, published, correct inputs)
- The issue persists regardless of prompt length or structure
- qwen2.5:32b works correctly and is the only model that executes all 4 tools correctly, but is too slow for our use case. I want to use a 7b or 8b model. I think the structure is pretty basic, so I don’t understand why I need a 32b model just to call 4 tools…
Has anyone successfully chained 3+ tool calls with a 7b/14b local model in n8n?
Any prompt engineering tips or model recommendations?
Thank you
n8n version: 2.10.3 (self-hosted)
Models tested: qwen2.5:7b, qwen2.5:14b, qwen2.5:32b, llama3.1:8b, mistral:7b, mistral-small:24b
What is the error message (if any)?
Please share your workflow
(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)
Share the output returned by the last node
Information on your n8n setup
- n8n version:
- Database (default: SQLite):
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via (Docker, npm, n8n cloud, desktop app):
- Operating system: