https://retellai.com/?utm_source=discord&utm_medium=seo logo
In a conversation flow, I am using an MCP node to ...
# ❓・ai-evy-support
m
@AI Evy In a conversation flow, I am using an MCP node to call my custom MCP server. However, it's not passing any parameters to the tool call. How do I tell it what parameters to send to the MCP server?
a
Thanks for tagging me @mitzimoto. I'll look through relevant sources and get back to you shortly.
### Answer ## Passing Parameters to MCP Tools in Conversation Flow When using an MCP Node in Retell AI's Conversation Flow, the LLM automatically determines which parameters to pass to your MCP tool based on the conversation context and the tool's schema [(1) ]() . The parameters aren't manually specified in the node configuration—instead, the AI agent intelligently selects and populates them during the call [(2) ]() . ### How It Works 1. Add your MCP server with the endpoint URL [(1) ]() 2. Select the MCP Tool you want to use from your server 3. The LLM decides when to call the tool and what arguments to pass based on the conversation [(2) ]() You can optionally set query parameters that will be included in the request URL to your MCP server [(1) ]() . Additionally, you can define custom headers (like authorization tokens) to include with requests Retell sends to your MCP server [(1) ]() [(2) ]() . ### Using Dynamic Variables If you need to pass specific values collected during the conversation, you can use dynamic variables in your query parameters [(2) ]() . For example, if you've collected a user's age or zip code earlier in the conversation, you can reference these using the
{{variable_name}}
syntax in your query parameters [(1) ](
uild/conversation-flow/mcp-node) . ### Response Variables After the MCP tool executes, you can extract values from the response and save them as dynamic variables for later use in the conversation . For example, you might extract a user's name from the response and reference it later using
{{user_name}}
. If you're experiencing issues with parameters not being passed, ensure your MCP server's tool schema properly defines the expected parameters in the
input_schema
, as the LLM uses this to understand what arguments to provide [(3) ]() . **
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
​ 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] Мср](https://discord.com/channels/1186424376300679209/1408887968940167168) ​