Paco
02/06/2026, 10:06 AMAI Evy
02/06/2026, 10:06 AMAI Evy
02/06/2026, 10:06 AM{"customer_id":"6229"}
- An MCP tool returns: "{\"customer_id\": 12345}" (stringified)
This stringified response format may prevent the response variable extraction from working properly, causing the variable to not appear in collected_dynamic_variables and transitions based on that variable to fail.
What you can try:
1. Verify your MCP server is returning properly formatted JSON (not double-stringified)
2. Check your response variable mapping in the MCP node configuration—you can extract values from the MCP tool response and save them as dynamic variables for use later in the conversation
[(2) ]()
3. Ensure the variable name matches exactly what you're using in your prompts or transitions (case-sensitive)
[(3) ]()
If the agent is speaking the variable name (like {{first_name}}) instead of the actual value, this typically indicates the variable wasn't properly extracted before being referenced.
[(4) ]()
This appears to be a known issue that may require adjustment on the MCP server side or a fix from Retell. You may want to reach out to support for further assistance.AI Evy
02/06/2026, 10:06 AMAI Evy
02/06/2026, 10:06 AM