https://retellai.com/?utm_source=discord&utm_medium=seo logo
If mapping a MCP Tool response to a dynamic variab...
# ❓・ai-evy-support
i
@AI Evy If mapping a MCP Tool response to a dynamic variable and save it, when access the same tool call block later, cannot see the variables mapped, it seems like there is no variables mapped and have to do it all again. Is this another issue or bug?
a
Thanks for tagging me @isaacpires. I'll look through relevant sources and get back to you shortly.
### Answer Based on the available documentation, I can confirm that MCP (Model Context Protocol) in Retell AI supports response variable mapping [(1) ]() . When you set up an MCP tool, you can extract values from the MCP tool response and save them as dynamic variables for use later in the conversation . For example, with a response body like:
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 . However, the specific issue you're describing about variables not persisting when accessing the same MCP tool block later isn't directly addressed in the available documentation. This could potentially be related to variable scoping or persistence within the agent builder interface. I'd recommend checking out these potentially useful sources for more detailed MCP configuration information: [Connect any AI Voice Agent to MCP with Retell AI MCP Node (Guide) ]() , [Dynamic Variables]() , [Function Calling Overview]() . For specific technical issues like this, you might want to visit [Contact Sales]() or [) . Would you like a general answer based on my knowledge instead?
​ To learn more, see the sources I considered: [[1] 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) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.