Bug Description
Maybe this post i’ts will be a little bit longer so sorry about that.
I’m trying to use a http tool in mcp trigger like that :
this http’s call workflows from other n8n instance.
in body for example i’m passing this values :
and in Placeholder , that values :
but when i try to execute i get this error :
{
“errorMessage”: “Received tool input did not match expected schema”,
“errorDetails”: {},
“n8nDetails”: {
“n8nVersion”: “1.89.2 (Self Hosted)”,
“binaryDataMode”: “default”,
“stackTrace”: [
“Error: Received tool input did not match expected schema”,
" at Proxy.call (/usr/local/lib/node_modules/n8n/node_modules/@langchain/core/dist/tools/index.cjs:105:19)“,
" at processTicksAndRejections (node:internal/process/task_queues:95:5)”,
" at /usr/local/lib/node_modules/n8n/node_modules/langchain/dist/agents/executor.cjs:486:27",
" at async Promise.all (index 0)“,
" at AgentExecutor._call (/usr/local/lib/node_modules/n8n/node_modules/langchain/dist/agents/executor.cjs:478:30)”,
" at AgentExecutor.invoke (/usr/local/lib/node_modules/n8n/node_modules/langchain/dist/chains/base.cjs:58:28)“,
" at ExecuteContext.toolsAgentExecute (/usr/local/lib/node_modules/n8n/node_modules/@n8n/n8n-nodes-langchain/dist/nodes/agents/Agent/agents/ToolsAgent/execute.js:247:24)”,
" at ExecuteContext.execute (/usr/local/lib/node_modules/n8n/node_modules/@n8n/n8n-nodes-langchain/dist/nodes/agents/Agent/Agent.node.js:430:14)“,
" at WorkflowExecute.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/workflow-execute.js:681:27)”,
" at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/workflow-execute.js:915:51",
" at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/workflow-execute.js:1246:20"
]
}
}
If i change a little the way that i fill the fields deleting all the placeholders and filling the fileds automatically by AI model like that :
i got the same error:
{
“errorMessage”: “Received tool input did not match expected schema”,
“errorDetails”: {},
“n8nDetails”: {
“n8nVersion”: “1.89.2 (Self Hosted)”,
“binaryDataMode”: “default”,
“stackTrace”: [
“Error: Received tool input did not match expected schema”,
" at Proxy.call (/usr/local/lib/node_modules/n8n/node_modules/@langchain/core/dist/tools/index.cjs:105:19)“,
" at processTicksAndRejections (node:internal/process/task_queues:95:5)”,
" at /usr/local/lib/node_modules/n8n/node_modules/langchain/dist/agents/executor.cjs:486:27",
" at async Promise.all (index 0)“,
" at AgentExecutor._call (/usr/local/lib/node_modules/n8n/node_modules/langchain/dist/agents/executor.cjs:478:30)”,
" at AgentExecutor.invoke (/usr/local/lib/node_modules/n8n/node_modules/langchain/dist/chains/base.cjs:58:28)“,
" at ExecuteContext.toolsAgentExecute (/usr/local/lib/node_modules/n8n/node_modules/@n8n/n8n-nodes-langchain/dist/nodes/agents/Agent/agents/ToolsAgent/execute.js:247:24)”,
" at ExecuteContext.execute (/usr/local/lib/node_modules/n8n/node_modules/@n8n/n8n-nodes-langchain/dist/nodes/agents/Agent/Agent.node.js:430:14)“,
" at WorkflowExecute.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/workflow-execute.js:681:27)”,
" at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/workflow-execute.js:915:51",
" at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/workflow-execute.js:1246:20"
]
}
}
But if i send only 1 field filled by AI, all works fine …
but here is the problem. I need to send alot of fields to my http tool , but i can’t… I try do that with Json to instead " using fields bellow" e get the same … someone has some tips about how to fix it ?
Observation: i use n8n in queue mode self hosted , but to test all the possibilities i made an account in n8n cloud e try to do the same , and i get the exactly same result so i really belive that isn’t the n8n instance. and yes some bug or wrong use of this functionality ( i search alot to understando why yhis happens but unfortunatelly i didn’t found nothing about it )
To Reproduce
all the specifications to repoduce are on the text above
Expected behavior
all the specifications to repoduce are on the text above
Operating System
ubuntu linux 22.04
n8n Version
1.88.0
Node.js Version
18.16.0
Database
PostgreSQL
Execution mode
queue