https://retellai.com/?utm_source=discord&utm_medium=seo logo
MCP response variable not being stored
# ❓・ai-evy-support
m
@AI Evy MCP response variable not being stored
a
Thanks for tagging me @minus.ace. I'll look through relevant sources and get back to you shortly.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
### Answer This appears to be a known issue with MCP response variables in Conversation Flow agents [(1) ]() . Based on community reports, the problem seems to occur specifically when testing in chat mode or batch testing, where the MCP tool is invoked correctly and returns the expected results, but the response variables aren't being used in subsequent conversation nodes . However, the same functionality works properly when testing with voice calls . To configure MCP response variables correctly, you need to [(2) ]() : 1. Extract values from the MCP tool response and save them as dynamic variables for use later in the conversation 2. For example, you can extract a user's name from the response and reference it later using
{{user_name}}
Example response body structure :
Copy code
json
{
 "properties": {
 "user": {
 "name": "John Doe",
 "age": 26
 }
 }
}
You can save
properties.user.name
as a variable like
user_name
and use it in follow-ups [(3) ]() . If you're experiencing this issue, try testing with voice calls instead of chat mode to verify the functionality works as expected [(1) ]() . There may also be an issue where editing an existing MCP tool shows the form as if adding a new tool and doesn't display previously saved response variables . For troubleshooting, ensure your response variable syntax matches Retell's MCP specification exactly and check browser dev tools during chat testing for JavaScript errors or failed API calls related to MCP tools .
​ To learn more, see the sources I considered: [[1] Conversation Flow Agent - MCP Response Variables not working](https://discord.com/channels/1186424376300679209/1406261286270144564) [[2] MCP](https://docs.retellai.com/build/single-multi-prompt/mcp) [[3] Connect any AI Voice Agent to MCP with Retell AI MCP Node (Guide) | Retell AI](https://www.retellai.com/blog/connect-any-ai-voice-agent-to-mcp-with-retell-ai-mcp-node) ​
m
Do I need to extract variables after calling the mcp and getting the response variable or will it automatically be stored as a dynamic variable?
@AI Evy Do I need to extract variables after calling the mcp and getting the response variable or will it automatically be stored as a dynamic variable?
a
Thanks for the follow-up, @minus.ace. I'll get back to you soon.
### Answer For MCP response variables, you need to explicitly configure them to be stored as dynamic variables [(1) ]() . They don't automatically become available - you must set up the response variables during MCP node configuration . When configuring your MCP node, you can set response variables to extract values from the MCP tool response and save them as dynamic variables for use later in the conversation . For example, you can extract a user's name from the response and reference it later using
{{user_name}}
. Here's how the process works: 1. Configure response variables in your MCP node settings 2. Extract specific values from the MCP tool response 3. Save them with variable names you define 4. Reference them later using the dynamic variable syntax like
{{variable_name}}
For example, with a response body like:
Copy code
json
{
"properties": {
 "user": {
 "name": "John Doe",
 "age": 26
    }
  }
}
[(2) ]() You can save
properties.user.name
as a variable like
user_name
, and use it in follow-ups . This is different from the Extract Dynamic Variables tool [(3) ]() , which is used to extract variables from user responses during conversation, not from MCP tool responses.
​ To learn more, see the sources I considered: [[1] MCP Node](https://docs.retellai.com/build/conversation-flow/mcp-node) [[2] Connect any AI Voice Agent to MCP with Retell AI MCP Node (Guide) | Retell AI](https://www.retellai.com/blog/connect-any-ai-voice-agent-to-mcp-with-retell-ai-mcp-node) [[3] Extract Dynamic Variables](https://docs.retellai.com/build/single-multi-prompt/extract-dv) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.