Describe the problem/error/question
I’m trying to set up a workflow that I can reuse as a Tool inside another workflow that uses the MCP Server Trigger. I want to pass inputs to this second workflow using the Call n8n Workflow Tool node.
The goal is to build an AI tool that generates and executes SQL queries (based on user instructions) via an LLM and returns a formatted CSV result — all inside the MCP framework.
I’ve set up the second workflow (the one to be called as a tool) with the MCP Trigger node, but I’m having trouble getting the inputs to pass correctly, and the execution doesn’t seem to trigger or return expected outputs.
What exactly needs to be modified in the workflow I want to call (the tool)?
- Do I need to connect the
MCP Triggernode to other nodes manually? - Is it correct to use
{{$json.instruccion}}in the LLM prompt? - Do I need to return data from a specific node at the end for the output to be sent back?
- Do I still need a Webhook node to do this?
Thanks!
Please share your workflow
Share the output returned by the last node
Information on your n8n setup
- n8n version: 1.101.1
- Database (default: SQLite):
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via (Docker, npm, n8n cloud, desktop app): npm
- Operating system: Windows