https://retellai.com/?utm_source=discord&utm_medium=seo logo
mcp tool variables not extracted
# ❓・bug-report
a
steps to reproduce add an mcp node in a conversation flow agent and choose a tool define a response variable to extract from the tool call define a transition to node A based on this variable existing define a transition to node B based on this variable not existing expected the node transitions to node A the variable appears in collected_dynamic_variables in the webhook payload actual the node transitions to node B the variable does not appear in collected_dynamic_variables in the webhook payload
f
I can help you fix this issue — it seems the variable from the MCP tool isn’t being captured before the transition logic runs. I’ll check your node setup, response mapping, and webhook payload to find where it breaks. I can also help you adjust the flow so the tool output is stored correctly before transitions trigger. Could you confirm if this is happening with a custom MCP tool or a built-in one? @ahutna
a
Hey thanks for the response, this is using the Retell mcp node linked to make.com MCP server using the /stream protocol
Might be something to do with the way make is returning, will test another MCP server over the weekend
ok so i checked this with a different mcp server and got the same result thinking it could have something to do with the mcp returning a stringified response? looking at the logs a regular custom function returns like this: Tool Result tool_call_id: tool_call_c749e0 {"customer_id":"6229"} whereas the MCP returns like this: Tool Result tool_call_id: mcp_28677a "{\"customer_id\": 12345}" @shahretell