I’ve been struggling to pass anything to a MCP server that isn’t anything but a simple string (which is then passed to the tool in the server) as a {placeholder}.
When I pass a string it works fine, but part of the api tool payload is an array of objects, and I can’t seem to figure out how to properly map it in the tool. The input to the tool looks correct actually, perfect, but the server rejects it.
What is the error message (if any)?
Please share your workflow
here is a sample of the API json for the MCP Server HTTP Tool
I am speaking from Brazil, so forgive me if my English is a bit confusing, especially because I use a translation tool (both to translate what you need, and then I translate from Portuguese to English to answer you).
I found an adjustment that needs to be made in the cuts field:
Replace input Data.video_url and input Data.cuts with the correct placeholders linked to the previous node.
Check that cuts is being treated as raw JSON (array) and not string
I hope these two suggestions can bring the expected result.
Feel free to continue the conversation Mr. StephenGPope
Hi Stephen GPope, could you kindly mark my previous post as the solution (blue box with check mark) so that this ongoing discussion does not distract others who want to find out the answer to the original question? Thanks.
This isn’t quite right though – there is no “previous node” as this is a MCP Server, the requests are coming from a Agent Tool.
the {video_url} isn’t really the problem, that part is working.
It’s the cuts, which are a {placeholder} coming from the client, not exactlly like the previous nodes {{ $json }}
The placeholders are defined in the server and are referenced with { }
The server is getting the currect data in string format, I can see it, but its not being properly mapped into the server {cuts} placeholder. In my previous screenshot you can see all the data.