https://retellai.com/?utm_source=discord&utm_medium=seo logo
What is MCP and how is it different from using reg...
# ❓・ai-evy-support
a
What is MCP and how is it different from using regular webhooks/ functions? Make examples of use cases @AI Evy
a
Thanks for tagging me @anton333_50203. I'll look through relevant sources and get back to you shortly.
### Answer ## What is MCP? MCP (Model Context Protocol) allows you to extend your agent's capabilities by integrating external MCPs and utilize MCP tools [(1) ]() . It's a secure bridge between your voice agent and external HTTP-based services like Zapier workflows, AWS Lambda, or any custom APIs [(2) ]() . MCP has three main components [(3) ](

▾

) : - **MCP Server**: Acts as a central hub managing communication between your agent and external tools - **Host**: Where external tools or functions are actually run, such as cloud servers - **Client**: Your Retell AI agent, which sends requests to the server ## MCP vs Regular Webhooks/Functions ### Key Differences: **MCP**: - Allows your agent to call external tools mid-conversation without compromising latency, reliability, or control [(2) ]() - Uses a standardized protocol for agent-to-tool communication, eliminating the N×M integration problem - Provides real-time intelligence - agents can request live information during calls from CRM lookups, payment checks, to eligibility verification - Shows 25% lower memory usage and 15% lower CPU utilization compared to traditional custom integration patterns **Regular Webhooks**: - Primarily used for event-driven notifications after call events occur [(4) ]() - Send structured call event data to external platforms when calls start/end, get analyzed, etc. - Enable automated triggers & workflow activation based on call outcomes **Regular Functions**: - Built-in tools available to all users with configurable triggers an
d parameters [(5) ]() - Include predefined capabilities like ending calls, transferring calls, pressing digits, checking availability, and booking calendar ## Use Case Examples ### MCP Use Cases: 1. **Real-time CRM Integration**: Connect to Salesforce or HubSpot to log conversations, retrieve user details, or update records mid-call [(2) ]() 2. **Dynamic Scheduling**: Integrate with Calendly or custom booking tools to offer real-time availability and book appointments 3. **Payment Processing**: Check balances, verify billing status, or initiate refund workflows during the conversation 4. **Healthcare**: Verify patient eligibility, surface appointment history, or trigger refill approvals 5. **Logistics**: Track packages, update delivery windows, or escalate to live dispatcher ### Webhook Use Cases: 1. **Real-time Analytics**: Track call statistics, monitor call volumes, and trigger alerts for specific call outcomes [(4) ]() 2. **System Integration**: Update CRM records when calls complete, trigger workflow automations based on call analysis 3. **Call Monitoring**: Get notified of failed or transferred calls, track call duration and completion status ### Function Use Cases: 1. **Call Management**: End calls, transfer calls, press digits [(5) ]() 2. **Appointment Systems**: Check availability, book calendar appointments 3. **Custom Business Logic**: User-defined functions with custom signatures and configurable speech behavior The main advantage of MCP is that it enables live intelligence during conversations, while webhooks handle post-call automation and regular functions p
rovide built-in call management capabilities [(2) ]() [(4) ]() [(5) ]() .
​ To learn more, see the sources I considered: [[1] MCP](https://docs.retellai.com/build/single-multi-prompt/mcp) [[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] Retell MCP Node Tutorial](

https://www.youtube.com/watch?v=efmWhp8Pd5I▾

) [[4] Retell AI Webhooks | AI Voice Agents With Live Data | Retell AI](https://www.retellai.com/blog/retell-ai-webhooks-feature) [[5] Function Calling Overview](https://docs.retellai.com/build/single-multi-prompt/function-calling) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
Can I use n8n webhooks for MCP? @AI Evy
a
Thanks for the follow-up, @anton333_50203. I'll get back to you soon.
### Answer Yes, you can use n8n with MCP in Retell AI [(1) ]() . The MCP (Model Context Protocol) allows your voice agent to securely call any HTTP-based service, including n8n workflows . Here's how it works with n8n: MCP Integration with n8n: - MCP can connect to n8n workflows as HTTP endpoints - You can trigger n8n automations during live conversations - The agent can receive structured responses from n8n and use them dynamically in the call flow Configuration Process: When setting up MCP with n8n, you can 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}} . Community Experience: Based on Discord discussions, users have successfully integrated n8n webhooks with Retell AI [(2) ]() [(3) ]() . One user mentioned that "You'll do a toolcall/push to webhook the number and sms contents via Retell. That webhook triggers the n8n node and sends sms. You push a webhook response if needed back to Retell" [(3) ]() . Key Benefits: - Secure by Design: Only approved agents can access specific tools [(1) ]() - Lightning Fast: Built to maintain sub-second latency - Extremely Flexible: Integrate anything with an HTTP endpoint - Dynamic: Capture inputs, send structured requests, and use results to personalize dialogue The main difference from regular webhooks is th
at MCP allows your agent to call external tools mid-conversation without compromising latency, while webhooks are primarily for post-call event notifications [(1) ]() [(4) ]() .
​ 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) [[2] Calling n8n webhook from custom function not working](https://discord.com/channels/1186424376300679209/1391268662849306656) [[3] Discord message from @conect242004 on 2025-06-12](https://discord.com/channels/1186424376300679209/1294891368505937952/1382637567165468732) [[4] Retell AI Webhooks | AI Voice Agents With Live Data | Retell AI](https://www.retellai.com/blog/retell-ai-webhooks-feature) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
For some reason "Select Tools" in MCP menu is not loading anything, how to set it up properly? @AI Evy
a
Thanks for the follow-up, @anton333_50203. I'll get back to you soon.
### Answer The "Select Tools" not loading in MCP menu is a known issue that other users have experienced [(1) ]() . Based on the proper MCP setup process, here's how to configure it correctly: ## MCP Setup Steps For Single/Multi Prompt Agents: 1. **Add MCP Server**: First, you need to connect your agent to the MCP server [(2) ]() 2. **Set request headers (optional) **: Define custom headers to include with the request Retell sends to your MCP Server 3. **Set query parameters (optional) **: Define query parameters to include in the request URL that Retell appends to your MCP Server Endpoint 4. **Select Tool**: Select the MCP tool from the list of tools available 5. **Set response variables (optional) **: Extract values from the MCP tool response and save them as dynamic variables For Conversation Flow: 1. **Add MCP server**: To create a MCP node, you first need to add MCP server [(3) ]() 2. **Set request headers (optional) **: Define custom headers 3. **Set query parameters (optional) **: Define query parameters 4. **Add MCP Tool**: Select MCP Tool 5. **Set response variables (optional) **: Extract values and save as dynamic variables ## Common Issues and Solutions Based on community reports, users have encountered similar problems where the MCP configuration doesn't save properly [(1) ]() . One support response indicated that users should "refresh after clicking save button" and that the MCP server should be added . Some users have reported 401 Unauthorized errors, which can be related to webhook signature verification using the x-retell-signature header and ensuring the response structure for MC
P function is in the correct schema . ## Troubleshooting Steps If the "Select Tools" menu isn't loading: 1. Ensure your MCP server endpoint is properly configured and accessible 2. Verify that your MCP server is responding correctly to requests 3. Check that request headers and authentication are properly set up 4. Try refreshing the page after configuration changes If you continue experiencing issues with the MCP setup not loading tools properly, I'd recommend: Visit [Contact Sales]() or [) Would you like a general answer based on my knowledge instead?
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
What are the exact steps that I need to do to set up that MCP with a Retell agent and n8n? @AI Evy
a
Thanks for the follow-up, @anton333_50203. I'll get back to you soon.
### Answer Here are the exact steps to set up MCP with a Retell agent and n8n: ## Step 1: Set Up n8n MCP Server First, install the Retell AI Community Node in n8n [(1) ]() : - Open your n8n dashboard - Go to Settings → Community Nodes - Search for Retell AI and click Install - Confirm the installation when prompted ## Step 2: Configure MCP in Retell AI Dashboard ### For Single/Multi Prompt Agents: 1. Add MCP Server [(2) ]() : - In your agent settings, find the MCP dropdown - Click "Add MCP Server" - Name it (e.g., "n8n-mcp") - Paste your n8n MCP server URL - Set timeout (default is 10,000 ms) 2. *Set Headers (Optional) * [(3) ]() : - Add custom HTTP headers like authorization tokens if needed 3. *Add Query Parameters (Optional) * : - Use dynamic variables like age, zip code, or order number - Configure query parameters with dynamic variables 4. Select the MCP Tool : - Once your server is added, define the specific tool your agent will call - Examples: SendEmail, CheckBalance, or CreateCase - You can add multiple tools to the same server 5. *Set Response Variables (Optional) * : - Extract values from the MCP tool response and save them as dynamic variables Example response body structure [(2) ]() :
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) ]() . ### For Conversation Flow: 1. Add MCP Server [(2) ]() : - Create a new MCP node in your conversation flow - Connect to your n8n MCP server 2. Configure Node Settings : - Set request headers (optional) - Set query parameters (optional) - Add MCP Tool - Set response variables (optional) ## Step 3: Test the Integration Based on the tutorial [(4) ](

▾

) , you can test by: - Creating a simple agent with MCP functionality - Testing the connection to ensure your n8n workflows trigger properly - Verifying that responses return to your Retell agent correctly ## Common Issues to Watch For: - Scanning Loop Issue [(5) ]() : If you get stuck in a scanning loop when adding tools, verify that your n8n MCP server endpoint is accessible and check the MCP server URL format and authentication - Webhook Delivery [(6) ]() : In production, ensure the second webhook reaches n8n properly - you may need to split into two workflows or use a Switch node to handle different webhook types separately The key advantage is that MCP allows your agent to call external tools mid-conversation without compromising latency, reliability, or control [(3) ]() .
​ To learn more, see the sources I considered: [[1] Connect AI call agent to n8n](https://www.retellai.com/integrations/n8n) [[2] MCP Node](https://docs.retellai.com/build/conversation-flow/mcp-node) [[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) [[4] Retell MCP Node Tutorial](

https://www.youtube.com/watch?v=efmWhp8Pd5I▾

) [[5] MCP server connection issue](https://discord.com/channels/1186424376300679209/1401934359182708857) [[6] Custom n8n Functions Stopped Working](https://discord.com/channels/1186424376300679209/1360106227560087552) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
so are you saying that with MCP I can actually have all of my functions in the same scenario? So rather than creating a separate workflow for each (eg. check_availability, book_appointment etc.) I would build all of them in the same workflow and then route them via Switch node in n8n?
so are you saying that with MCP I can actually have all of my functions in the same scenario? So rather than creating a separate workflow for each (eg. check_availability, book_appointment etc.) I would build all of them in the same workflow and then route them via Switch node in n8n? @AI Evy
a
Thanks for the follow-up, @anton333_50203. I'll get back to you soon.
### Answer Yes, exactly! With MCP in Retell AI, you can consolidate multiple functions into a single n8n workflow using a Switch node for routing [(1) ]() . This is actually one of the key advantages of the MCP approach. ## How It Works When you configure MCP in Retell AI, you can add multiple tools to the same MCP server [(2) ]() . Each tool can represent different functions like
check_availability
,
book_appointment
, etc., but they all route to the same n8n workflow endpoint. ## Single Workflow Architecture In your n8n workflow, you would: 1. Use a Switch node to route different function calls based on the tool name or parameters sent from Retell AI 2. Handle multiple functions in branches of the same workflow 3. Return appropriate responses for each function type This approach is supported by the community experience where users have mentioned using Switch nodes to handle different webhook types separately [(3) ]() . ## Benefits of This Approach - **Reduced complexity**: Instead of maintaining separate workflows for each function, you have one centralized workflow - **Better maintenance**: All your Retell AI integrations are in one place - **Consistent error handling**: Shared error handling logic across all functions - **Simplified authentication**: One set of headers and authentication for all tools ## Configuration in Retell AI You would still configure each tool separately in the Retell AI dashboard (check_availability, book_appointment, etc.) , but they all point to the same MCP server URL [(2) ]() . The differentiation happens within your n8n workflow using the Switch
node to route to the appropriate logic based on the incoming request. This consolidation approach eliminates the N×M integration problem that MCP was designed to solve [(1) ]() .
​ 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) [[2] MCP](https://docs.retellai.com/build/single-multi-prompt/mcp) [[3] Custom n8n Functions Stopped Working](https://discord.com/channels/1186424376300679209/1360106227560087552) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
But how is that different from using the old webhook system and just routing them with Switch? I don't see the difference. Also, if i would define each tool separately in the dashboard, the wha is that tools selection in the MCp menu?
But how is that different from using the old webhook system and just routing them with Switch? I don't see the difference. Also, if i would define each tool separately in the dashboard, the wha is that tools selection in the MCp menu? @AI Evy
a
Thanks for the follow-up, @anton333_50203. I'll get back to you soon.
### Answer ## Key Differences Between MCP and Regular Webhooks You're right to question this - the fundamental difference lies in when and how they're executed: MCP (Model Context Protocol) : - Enables your agent to call external tools mid-conversation without compromising latency, reliability, or control [(1) ](

▾

) - The agent makes synchronous calls during the conversation and waits for responses to continue the dialogue - Provides real-time intelligence - agents can request live information during calls Regular Webhooks: - Are event-driven notifications that trigger after call events occur [(2) ]() - Send structured data to external platforms when calls start/end, get analyzed, etc. [(3) ]() - Enable automated triggers & workflow activation based on call outcomes The key distinction is that MCP allows live data retrieval during the conversation, while webhooks handle post-call automation [(2) ]() . ## MCP Tools Selection Menu Regarding the tools selection in the MCP menu, based on the documentation: When you add an MCP server, you can select MCP tools from the available tools on that server [(4) ]() . The MCP node is used to call tools on your MCP server . The process is: 1. Add MCP server 2. Add MCP Tool - Select MCP Tool from the available options 3. Set response variables (optional) So the tools selection menu should populate with the available tools from your connected MCP server endpoint. If it's not loading, this suggests a connection issue with your MCP server. Visit [Contact Sales]() or [
//github.com/RetellAI/) Would you like a general answer based on my knowledge instead?
​ To learn more, see the sources I considered: [[1] Retell MCP Node Tutorial](

https://www.youtube.com/watch?v=efmWhp8Pd5I▾

) [[2] Webhook](https://www.retellai.com/glossary/webhook) [[3] Retell AI Webhooks | AI Voice Agents With Live Data | Retell AI](https://www.retellai.com/blog/retell-ai-webhooks-feature) [[4] MCP Node](https://docs.retellai.com/build/conversation-flow/mcp-node) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
First of all, after adding MCP server I do not see any tools available in the list, although I have set up the two webhooks that send data back to retell: "initialize" and the other one "tool/something". Secondly, you say "Enables your agent to call external tools mid-conversation" but I was already using functions to process data in-call then respond via webhook back to the agent during a conversation
First of all, after adding MCP server I do not see any tools available in the list, although I have set up the two webhooks that send data back to retell: "initialize" and the other one "tool/something". Secondly, you say "Enables your agent to call external tools mid-conversation" but I was already using functions to process data in-call then respond via webhook back to the agent during a conversation @AI Evy
a
Thanks for the follow-up, @anton333_50203. I'll get back to you soon.
### Answer I'll address both issues you're experiencing. ## Issue 1: MCP Tools Not Loading This is a known issue that other users have encountered [(1) ]() . Based on community troubleshooting, your MCP server needs to expose specific endpoints : -
/list_tools
endpoint returning available tools -
/call_tool
endpoint for tool execution - Proper error handling and response formats You can test your server configuration with this command :
Copy code
curl -X POST [your-replit-mcp-endpoint]/list_tools
The issue might be that some MCP servers support the older SSE (Server-Sent Events) style format, whereas newer MCP servers rely on
/mcp
URL endpoints . Some older MCP integrations haven't been upgraded yet to support two-way
/mcp
communication . ## Issue 2: MCP vs Functions - Key Differences You're correct that you can already process data mid-conversation using functions. Here's the distinction: MCP (Model Context Protocol) : - Acts as a central hub that manages communication between your agent and external tools [(2) ](

▾

) - The MCP server forwards requests to the host, gets the result, and sends it back to the agent - This setup keeps connections secure and organized, which lets your agent access many services flexibly Regular Functions: - Built-in capabilities that can be called during conversations - Process data and respond back via webhooks as you're currently doing The main advantage of MCP is the standardized protocol for agent-to-tool communication, eliminating the N×M integration problem entirely [(3) ]() . MCP servers have shown 25% lower memory usage and 15% lower CPU utilization compared to traditional custom integration patterns . However, if your current function-based approach is working well for your use case, MCP may not provide significant additional benefits beyond the architectural advantages. For your tools loading issue, I'd recommend checking your MCP server endpoints and ensuring they follow the standard format outlined in the troubleshooting steps above.
​ To learn more, see the sources I considered: [[1] MCPs not loading](https://discord.com/channels/1186424376300679209/1400851768027385950) [[2] Retell MCP Node Tutorial](

https://www.youtube.com/watch?v=efmWhp8Pd5I▾

) [[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) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
I am using n8n as my MCP. Is the problem with that? @AI Evy
a
Thanks for the follow-up, @anton333_50203. I'll get back to you soon.
### Answer Using n8n as your MCP server might be contributing to the issue [(1) ]() . The documentation confirms that MCP can connect to n8n workflows as HTTP endpoints and you can trigger n8n automations during live conversations . However, there are specific requirements for MCP servers that might not be fully met by standard n8n webhook setups: MCP Server Requirements: - MCP servers need to expose specific endpoints for tool discovery and execution [(2) ]() - The server must handle authentication and connection setup properly - Response formats need to follow MCP protocol specifications [(3) ]() n8n Compatibility: The documentation indicates that MCP allows you to integrate with n8n workflows, but it requires proper MCP server implementation [(1) ]() . Standard n8n webhooks might not automatically provide the MCP-compliant endpoints that Retell AI expects for tool discovery. Potential Solutions: 1. Verify your n8n workflow exposes the required MCP endpoints [(2) ]() 2. Check that your MCP server URL format is correct [(3) ]() 3. Ensure proper authentication headers are configured [(2) ]() [(3) ]() When setting up MCP, you should be able to extract values from the MCP tool response and save them as dynamic variables for use later in the conversation . If the tools aren't loading, it suggests the MCP server isn't responding with the expecte
d tool list format. For specific n8n MCP integration issues, I'd recommend: 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) [[2] MCP](https://docs.retellai.com/build/single-multi-prompt/mcp) [[3] MCP Node](https://docs.retellai.com/build/conversation-flow/mcp-node) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
I don't understand what are "MCP Tools," how do i define, create them? Are they defined in n8n workflows by creating nodes, or am I supposed to create them in Retell? @AI Evy
a
Thanks for the follow-up, @anton333_50203. I'll get back to you soon.
### Answer I can't find specific information about how MCP Tools are defined or created in the available sources. The n8n integration documentation mentions the general setup process for connecting Retell AI to n8n [(1) ]() , but doesn't provide detailed information about MCP Tool definition or creation. Based on the available information, the n8n integration involves installing the Retell AI Community Node and adding it to your workflow , but the specific process for defining MCP Tools isn't clearly documented in the sources I have access to. For detailed guidance on MCP Tool creation and definition, I'd recommend: 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 AI call agent to n8n](https://www.retellai.com/integrations/n8n) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
Do people actually use several MCP functions, or they try to have all of the tools running via 1 MCP url? I also wonder about the use cases for this MCP. For example, it is obvious that this could be useful for live calendar availability checks, but how about if I have two functions or even three like -- in-call address verification, "flagged_enquiry" (which runs if ai agent is being asked a question that it doesn't know the answer to since it's not mentioned in the knowledge base). How would one have several functions running through the same "custom_function" that is set up as MCP in n8n? @AI Evy
a
Thanks for the follow-up, @anton333_50203. I'll get back to you soon.
### Answer Based on the documentation, both approaches are commonly used: ## Single MCP URL with Multiple Tools You can add multiple tools to the same MCP server [(1) ]() . This is the recommended approach because it consolidates your integrations. When you configure MCP in Retell AI, you can select multiple MCP tools from the list of tools available on your server . ## How Multiple Functions Work Through One MCP URL For your specific use cases (address verification, flagged_enquiry, calendar checks) , you would: 1. Set up one MCP server URL pointing to your n8n workflow 2. Configure multiple tools in Retell AI, each representing a different function 3. Use a Switch node in n8n to route different function calls based on the tool name or parameters ## MCP vs Custom Functions Architecture The key difference is architectural. With custom functions, you'd create separate endpoints for each function [(2) ]() . With MCP, you can consolidate everything through one server that manages multiple tools [(3) ]() . ## Configuration Process When setting up MCP, you can: - Set request headers and query parameters [(1) ]() - Select specific MCP tools from your server - Extract values from responses and save them as dynamic variables for later use For example, you can extract a user's name from the response and reference it later using
{{user_name}}
. ## Use Case Benefits MCP is particularly powerful because it allows your agent to access many services flexibly while keeping connections secure and organized [(4) ](

▾

) . This eliminates the N×M integrat
ion problem where you'd otherwise need separate integrations for each function [(3) ]() . Your specific use cases (address verification, flagged enquiries, calendar checks) would all route through the same MCP server but trigger different logic branches in your n8n workflow based on which tool the agent calls.
​ To learn more, see the sources I considered: [[1] MCP](https://docs.retellai.com/build/single-multi-prompt/mcp) [[2] Integrate any system with custom function](https://docs.retellai.com/build/single-multi-prompt/custom-function) [[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) [[4] Retell MCP Node Tutorial](

https://www.youtube.com/watch?v=efmWhp8Pd5I▾

) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
But what would I write in the function's description so that AI would understand? "Trigger this function to verify clients address ?" @AI Evy
a
Thanks for the follow-up, @anton333_50203. I'll get back to you soon.
### Answer ### Answer For MCP function descriptions, you need to be specific about when the AI should trigger the function. The documentation provides a clear example of how to structure prompts for function calling [(1) ]() . ## Best Practice for Function Descriptions The documentation recommends explicitly including in the prompt when is the best time to invoke the MCP tool . For example:
Copy code
When user states his name and phone number, please call tool `verify_user` function.
## For Your Address Verification Use Case Based on this pattern, for address verification you would write something like: **Function Description**: "Call this function when the user provides their complete address (street, city, state/province, postal code) and you need to verify if the address exists and is valid." **In Your Agent Prompt**: "When the user provides their full address including street, city, and postal code, call the
verify_address
function to validate the address before proceeding." ## Key Points for Effective Function Descriptions 1. Be specific about triggers - clearly state what user input or conversation state should trigger the function 2. Include context - explain what information needs to be gathered before calling the function 3. Define the purpose - make it clear what the function accomplishes The documentation emphasizes that it's best to include in the prompt explicitly when is the best time to invoke the MCP tool , so your function descriptions should work in conjunction with your agent's main prompt to create clear trigger conditions.
​ To learn more, see the sources I considered: [[1] MCP](https://docs.retellai.com/build/single-multi-prompt/mcp) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
Ahhhh.... now I see. So I am actually creating everything as before, "the old way," but the difference is that all of the webhook will now be pointing to the same MCP URL, right? @AI Evy
a
Thanks for the follow-up, @anton333_50203. I'll get back to you soon.
### Answer Yes, you're absolutely correct! You've grasped the key concept perfectly [(1) ]() . With MCP, you're essentially consolidating your existing webhook-based functions into a single MCP server endpoint . Instead of having separate webhook URLs for each function (check_availability, book_appointment, verify_address, etc.) , all your functions now route through one MCP URL . ## The Architecture Change Before (Traditional Webhooks) : - Function 1 → Webhook URL 1 - Function 2 → Webhook URL 2 - Function 3 → Webhook URL 3 With MCP: - All Functions → Single MCP Server URL → Switch/Route logic in n8n ## How It Works in Practice 1. You add one MCP server to your Retell agent 2. You select multiple MCP tools from that same server 3. Each tool represents a different function (verify_address, check_calendar, etc.) 4. All tools point to the same MCP URL but with different tool identifiers 5. Your n8n workflow uses a Switch node to route based on which tool was called The MCP server acts as a central hub that manages communication between your agent and external tools [(2) ](

▾

) . When the agent needs to use a tool, it asks the server, which forwards requests to the host, gets the result, and sends it back to the agent . So yes, you're building the same functionality as before, but now it's all organized through one MCP endpoint with better management and routing [(1) ]() .
​ To learn more, see the sources I considered: [[1] MCP](https://docs.retellai.com/build/single-multi-prompt/mcp) [[2] Retell MCP Node Tutorial](

https://www.youtube.com/watch?v=efmWhp8Pd5I▾

) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
h
@AI Evy To claify, in Converstaion Flow agents, each MCP node can call one and only one mcp tool and you have to add an mcp and tool at each step in the workflow whenever it's needed? Also, the node does not support HTTP Streamable or SSE, so what is the advantage in a conversation flow over a normal custom function?
a
Thanks for the follow-up, @Huggy. I'll get back to you soon.
### Answer I'll address your questions about MCP nodes in Conversation Flow agents. ## MCP Node Tool Limitations Yes, you're correct about the constraint. The MCP node is used to call tools on your MCP server [(1) ]() . Each MCP node appears to be designed to call one specific MCP tool at a time . When you add an MCP node, you need to select an MCP tool from your server . ## MCP Node Setup Process The process for each MCP node involves : 1. Add MCP server 2. Set request headers (optional) 3. Set query parameters (optional) 4. Add MCP Tool - Select MCP Tool 5. Set response variables (optional) You can 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}}
. ## MCP vs Custom Functions in Conversation Flow Regarding the advantages of MCP over custom functions in Conversation Flow, the documentation indicates that MCP nodes are not intended for having a conversation with the user, but agents can still talk while in this node if needed . The key architectural difference is that MCP introduces a standardized protocol for agent-to-tool communication, eliminating the N×M integration problem entirely [(2) ]() . MCP servers have shown 25% lower memory usage and 15% lower CPU utilization compared to traditional custom integration patterns . However, you raise a valid point about HTTP streaming/SSE support limitations. The sources don't provide specific details about the technical advantages of MCP nodes over custom functions in Conversation Flow beyond the standardization benefits. For more detailed technical comparisons and streaming capabilities: Visit [Conta
ct Sales]() or [) Would you like a general answer based on my knowledge instead?
​ 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) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
ok, how do you use the MCP Tools? Are they Agent level in multi-prompt agent or how do you call them? What's the difference between standard "Functions" and Tools in MCP? @AI Evy
a
Thanks for the follow-up, @anton333_50203. I'll get back to you soon.
### Answer ## MCP Tools Usage in Multi-Prompt Agents Based on the available sources, I can clarify the differences between standard Functions and MCP Tools: ## Standard Functions vs MCP Tools Standard Functions: - These are traditional function calling capabilities that allow your voice agent to perform actions by calling external APIs, executing specific functions, and managing call flow operations [(1) ]() - The LLM intelligently decides when to call these functions by outputting structured JSON objects containing the necessary arguments - Functions can be added at both the agent level and at individual node levels in multi-prompt agents [(2) ]() MCP Tools: - MCP (Model Context Protocol) allows your agent to act as a client that securely calls a tool hosted elsewhere, like a Zapier workflow, AWS Lambda, or any HTTP endpoint [(3) ]() - MCP acts as a secure bridge between your voice agent and the tools you already use to run your business - The MCP server forwards requests to the host, gets the result, and sends it back to the agent ## Function Placement in Multi-Prompt Agents According to community guidance, there are best practices for function placement [(2) ]() : - General functions (like end call functions) should be kept in the main prompt at the agent level - Functions that you want to call multiple times should be placed in the main prompt or general prompt - State-specific functions are limited to that specific state/node ## MCP Node Configuration For MCP specifically, the MCP node is used to c
all tools on your MCP server and is not intended for having a conversation with the user, but the agent can still talk while in this node if needed [(4) ]() The MCP node setup process involves : 1. Add MCP server 2. Set request headers (optional) 3. Set query parameters (optional) 4. Add MCP Tool - Select MCP Tool 5. Set response variables (optional) You can extract values from the MCP tool response and save them as dynamic variables for use later in the conversation ## Key Architectural Difference The main difference is that MCP introduces a standardized protocol for agent-to-tool communication, eliminating the N×M integration problem entirely [(3) ]() . This allows you to consolidate multiple functions through one MCP server endpoint rather than having separate webhook URLs for each function.
​ To learn more, see the sources I considered: [[1] Function Calling Overview](https://docs.retellai.com/build/single-multi-prompt/function-calling) [[2] Discord message from @_superwhale on 2025-01-24](https://discord.com/channels/1186424376300679209/1294891368505937952/1332171997744205925) [[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) [[4] MCP Node](https://docs.retellai.com/build/conversation-flow/mcp-node) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
I don't really understand... If I have a function called "address_check" and the agent is instructed to call it when it received the full address from the user. Do I use "address_check" that I created in functions or I need to create a tool in MCP, call it "address_check" and then add it to the MCp tools? @AI Evy The documentation does not explain anything
a
Thanks for the follow-up, @anton333_50203. I'll get back to you soon.
### Answer You have two different approaches for your "address_check" function: ## Option 1: Use Your Existing Custom Function If you already created "address_check" as a custom function, you can continue using it exactly as before [(1) ]() . Custom functions allow you to extend your agent's capabilities by integrating external APIs . You would: 1. Keep your existing custom function configuration 2. Add the endpoint URL where Retell will send the request to execute your custom function 3. Define the parameters using JSON schema format ## Option 2: Migrate to MCP Tools To use MCP, you would need to recreate "address_check" as an MCP tool [(2) ]() . This involves: 1. Adding your MCP server to Retell 2. Creating the "address_check" tool on your MCP server (in n8n) 3. Selecting that MCP tool from the list of tools available ## Key Difference The fundamental difference is architectural [(3) ]() . With MCP, you can add multiple tools to the same server and restrict which ones your agent can access . MCP acts as a secure bridge between your voice agent and the tools you already use to run your business . ## Recommendation Since you already have a working "address_check" function, you don't need to migrate to MCP unless you want the architectural benefits. The documentation states that when setting up MCP, it's best to include in the prompt explicitly when is the best time to invoke the MCP tool [(2) ]() :
Copy code
When user states his name and phone number, please call tool `verify_user` function.
For your address verification, you would update this to reference your MCP tool instead of your custom function if you choose to migrate.
​ To learn more, see the sources I considered: [[1] Integrate any system with custom function](https://docs.retellai.com/build/single-multi-prompt/custom-function) [[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) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
right... but my original question also was -- the "address_check" function was created as a tool in a node, does it mean that MCP tools can be activated at any point in the conversation, unlike old tools? @AI Evy
a
Thanks for the follow-up, @anton333_50203. I'll get back to you soon.
### Answer The key difference lies in when and where these tools can be activated: ## MCP Tools in Single/Multi-Prompt Agents In single/multi-prompt agents, MCP tools can be activated at any point during the conversation [(1) ]() . The LLM intelligently decides when to call these functions by outputting structured JSON objects containing the necessary arguments [(2) ]() . You add MCP tools at the agent level, and they remain available throughout the entire conversation [(1) ]() . ## Function Nodes vs MCP Nodes in Conversation Flow However, in Conversation Flow agents, there's a structural difference: Function Nodes: - Function nodes are used to call a function and are not intended for having a conversation with the user [(3) ]() - The function associated with the node will be called when entering that specific node - These are tied to specific points in your conversation flow MCP Nodes: - MCP nodes are used to call tools on your MCP server and are also not intended for having a conversation with the user [(4) ]() - Each MCP node calls one specific MCP tool when the conversation reaches that node - Like function nodes, these are also tied to specific flow positions ## The Key Distinction The main difference isn't between "old tools" and MCP tools regarding availability - it's between agent-level functions (available anytime) and node-specific functions (available only when that node is reached) . In your case, if your "address_check" was created as a tool in a specific node, it means it only activates when the conversation flow reaches t
hat particular node. This applies to both traditional function nodes and MCP nodes in Conversation Flow [(4) ]() [(3) ]() . For tools that need to be available at any point in the conversation, community guidance suggests keeping general functions at the main agent level rather than in specific nodes [(5) ]() .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
So, the "address_check" function should exist only either in Tools inside of the node OR as a tool in MCP, right?
So, the "address_check" function should exist only either in Tools inside of the node OR as a tool in MCP, right? @AI Evy
a
Thanks for the follow-up, @anton333_50203. I'll get back to you soon.
### Answer ### Answer Yes, you're correct. The "address_check" function should exist in only one place - either as a traditional function/tool inside a node OR as an MCP tool [(1) ]() [(2) ]() . ## The Two Options Are: Option 1: Traditional Function Node - Your existing "address_check" function remains as a tool within a specific function node - It gets called when the conversation flow reaches that particular node Option 2: MCP Tool - You recreate "address_check" as an MCP tool on your MCP server [(1) ]() - You add it through the MCP node configuration process: 1. Add MCP server 2. Set request headers (optional) 3. Set query parameters (optional) 4. Add MCP Tool - Select MCP Tool 5. Set response variables (optional) ## Why Not Both? Having the same function in both places would create redundancy and potential conflicts. The MCP approach consolidates your integrations - you can add multiple tools to the same MCP server and restrict which ones your agent can access [(2) ]() . ## Key Architectural Difference MCP introduces a standardized protocol for agent-to-tool communication, eliminating the N×M integration problem entirely . Instead of separate endpoints for each function, all your functions route through one MCP URL with better management and routing. So yes, choose one approach - either keep your existing function node setup or migrate to MCP tools, but not both simultaneously.
​ 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) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
what is "N×M integration problem" @AI Evy
a
Thanks for the follow-up, @anton333_50203. I'll get back to you soon.
### Answer The N×M integration problem refers to the exponential complexity that occurs when you need to connect multiple systems together using traditional custom integrations [(1) ]() . ## The Problem Explained Traditional automation systems force you to build and maintain custom integrations for each tool and use case . When you have N different tools/services and M different systems that need to connect to them, you end up needing N×M separate integrations - each unique connection requires its own custom-built integration . ## How MCP Solves This MCP changes that by introducing a standardized protocol for agent-to-tool communication, eliminating the N×M integration problem entirely . Instead of maintaining a growing web of custom-built integrations, MCP provides a standardized way to connect voice agents with external systems . ## Real-World Impact This reduction in complexity offers significant benefits: - Early-stage users have cut development time by up to 30% and reduced maintenance costs by 25% - Often reaching full payback in under 90 days and unlocking long-term ROI through scalable, low-latency automation - MCP servers have shown 25% lower memory usage and 15% lower CPU utilization compared to traditional custom integration patterns The standardization means instead of building separate integrations for every possible connection, you build once to the MCP standard and can connect to any MCP-compatible system .
​ 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.
a
by "integrations" you mean workflows/scenarios where the tools are being executed? @AI Evy
a
Thanks for the follow-up, @anton333_50203. I'll get back to you soon.
### Answer Based on the sources available, I don't have specific information about MCP (Model Context Protocol) or how it compares to regular webhooks/functions in the context of Retell AI [(1) ]() [(2) ]() [(3) ]() [(4) ]() . The available documentation focuses on LLM WebSocket connections, AI agent building guides, workflow automation, and certified partners, but doesn't contain detailed information about MCP integration patterns or the N×M integration problem you're referencing. The Discord message mentions someone looking into webhooks and custom connections, but doesn't provide technical details about MCP [(5) ]() . For detailed information about MCP implementation and integration patterns with Retell AI: Visit [Contact Sales]() or [) Would you like a general answer based on my knowledge instead?
​ To learn more, see the sources I considered: [[1] LLM WebSocket](https://docs.retellai.com/api-references/llm-websocket) [[2] Building AI Agents: The Ultimate Guide for Non-Programmers | Retell AI](https://www.retellai.com/blog/how-to-build-ai-agents-for-beginners) [[3] 7 High-Volume Customer-Service Workflows You Can Fully Automate with Retell's Voice↔SMS Super-Agent in 2025 (Password Resets to Upsell Surveys)](https://www.retellai.com/resources/7-high-volume-customer-service-workflows-automate-retell-voice-sms-agent) [[4] Find a Certified Partner | Retell AI](https://www.retellai.com/partners) [[5] Discord message from @towelie0976 on 2025-02-16](https://discord.com/channels/1186424376300679209/1294891368505937952/1340555203270807604) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
I can see that MCP is always sending data as "query". I guess there's no way to define it? @AI Evy
a
Thanks for the follow-up, @anton333_50203. I'll get back to you soon.
### Answer Based on the documentation, you actually have flexibility in how data is sent with MCP tools in Retell AI. ## MCP Data Configuration Options When setting up MCP tools, you can configure how data is sent through multiple methods [(1) ]() [(2) ]() : ### 1. Query Parameters (Optional) You can define query parameters to include in the request URL that Retell appends to your MCP Server Endpoint . Query parameter values can be static or include dynamic variables [(3) ]() . ### 2. Request Headers (Optional) You can define custom headers to include with the request Retell sends to your MCP Server [(1) ]() [(2) ]() . For example, to pass an auth token securely [(4) ]() . ### 3. Response Variables (Optional) You can extract values from the MCP tool response and save them as dynamic variables for use later in the conversation [(1) ]() [(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
 }
 }
}
## Dynamic Variables Usage You can save properties like
properties.user.name
as a variable like
user_name
, and use it in follow-ups [(4) ]() . This allows you to capture inputs, send structured requests, and use results to personalize dialogue . So while the default behavior might appear to send data as "query," you have control over the data transmission format through headers, query parameters, and response variable extraction based on your MCP server configuration.
​ To learn more, see the sources I considered: [[1] MCP](https://docs.retellai.com/build/single-multi-prompt/mcp) [[2] MCP Node](https://docs.retellai.com/build/conversation-flow/mcp-node) [[3] Integrate any system with custom function](https://docs.retellai.com/build/single-multi-prompt/custom-function) [[4] 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.
a
I keep getting this error while executing the MCP tool: "Cannot read properties of undefined (reading 'find')" @AI Evy
a
Thanks for the follow-up, @anton333_50203. I'll get back to you soon.
### Answer The "Cannot read properties of undefined (reading 'find') " error indicates there's likely an issue with the data structure your MCP server is receiving or how it's processing the request from Retell AI [(1) ]() . Based on the Discord discussion, this type of error often relates to webhook configuration issues . Here are the key areas to check: ## MCP Server Configuration Ensure your MCP server is properly configured with the correct response structure [(2) ]() . The MCP tool response should follow the expected schema format . ## Webhook Signature Verification From the Discord discussion, one common issue is webhook signature verification using the
x-retell-signature
header [(1) ]() . Make sure your MCP server is correctly handling the signature verification that Retell requires . ## Response Structure Your MCP tool should return a properly structured response that can be parsed correctly [(2) ]() [(3) ]() . The example response structure should look like:
Copy code
json
{
 "properties": {
 "user": {
 "name": "John Doe",
 "age": 26
 }
 }
}
## Troubleshooting Steps 1. Verify your MCP server endpoint is accessible and check the MCP server URL format and authentication [(4) ]() 2. Check your webhook configuration to ensure it's correct as Retell requires webhook signature verification [(1) ]() 3. Validate your response structure for the MCP function to ensure it matches the correct schema If you continue experiencing issues, you may want to test your MCP server independently to ensure it's returning the expected data structure before the Retell integration calls it.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
The JSOn body that I am sending is: [ { "json": { "address_response": {{ $json.address_response }} } } ] and there are no settings in MCP besides URL and Timeout that can be adjusted @AI Evy
a
Thanks for the follow-up, @anton333_50203. I'll get back to you soon.
### Answer The JSON structure you're sending appears to be the issue. Based on the Retell AI documentation, your MCP server should expect and return specific formats [(1) ]() [(2) ]() . ## Expected MCP Response Format According to the documentation, the MCP tool response should follow this structure :
Copy code
json
{
 "properties": {
 "user": {
 "name": "John Doe",
 "age": 26
 }
 }
}
## Your Current Structure Issue Your current JSON structure:
Copy code
json
[
  {
    "json": {
      "address_response": {{ $json.address_response }}
    }
  }
]
This appears to be an array containing an object, which may not match what Retell AI's MCP implementation expects. The "Cannot read properties of undefined (reading 'find') " error suggests the code is trying to call
.find()
on something that's undefined, likely because it's expecting a different data structure. ## Troubleshooting Steps 1. **Check MCP Server Endpoints**: Your MCP server should expose
/list_tools
endpoint returning available tools and
/call_tool
endpoint for tool execution with proper error handling and response formats [(3) ]() . 2. **Verify Response Structure**: Ensure your MCP server returns a properly structured JSON object (not an array) that matches the expected schema [(1) ]() [(2) ]() . 3. **Test Server Independently**: You can test your MCP server with this command:
curl -X POST [your-mcp-endpoint]/list_tools
[(3) ]() . ## Recommended JSON Structure Try restructuring your response to match the expected format:
Copy code
json
{
  "properties": {
    "address_response": "your_address_data_here"
  }
}
The documentation indicates you can then extract values from the MCP tool response and save them as dynamic variables for use later in the conversation [(1) ]() [(2) ]() .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
another question. What's the common practice for "booking" functions? What I am wondering is -- I currently have a function called "final_booking" that sends stuff via webhook to create a calendar event and then send a notification to the owner that a job has been booked. Do people in the community typically run these functions as a post-call function or in-call? What is more reliable to route booked/not-booked calls in post-call or during? @AI Evy
a
Thanks for the follow-up, @anton333_50203. I'll get back to you soon.
### Answer ### Answer Based on the community discussions in the sources, there are different approaches to handling booking functions, each with their own trade-offs: ## In-Call Function Execution From the community discussions, some developers prefer calling booking functions during the call [(1) ]() . One approach mentioned is to "call the function on the fly as user confirms appointment time" . However, this can create challenges - as one user noted: "if they confirm then change their mind, my agent can't adjust it" . ## Post-Call Processing Approach Other community members prefer handling bookings post-call . One developer explained their reasoning: "post call for us also contains multiple further steps like sending confirmations adding to CRM etc. so we prefer handling data afterwards" . ## Hybrid Approach with Session Tracking A suggested best practice from the community involves tracking booking state during the session . One developer recommended: "it's not super onerous to track if they have made a booking already within a session (don't even need a db; just use a relatively short expiry Redis key or something) ... store the call_id and appt. details. check if the key exists when you enter your tool call" . ## Reliability Considerations For routing booked/not-booked calls, the community suggests using session state tracking rather than relying solely on post-call analysis . This allows for real-time decision making while maintaining the ability to handle complex post-call workflows. ## Function Calling Best Practices The documentation shows that when implementing booking functions, you can define them with specific parameters [(2) ]() . For example, when creating an end call function, you wo
uld define it with a message parameter so the LLM can communicate with the user when calling the function . The community also emphasizes the importance of clear prompting to ensure reliable function calls [(3) ]() . One suggestion is to explicitly state when functions should be called and include confirmation steps in your prompts .
​ To learn more, see the sources I considered: [[1] Discord message from @rohan9700 on 2025-02-01](https://discord.com/channels/1186424376300679209/1294891368505937952/1335166683517685821) [[2] Integrate Function Calling](https://docs.retellai.com/integrate-llm/integrate-function-calling) [[3] Custom LLM (GPT 4 Turbo) Function Calling Syncronization](https://discord.com/channels/1186424376300679209/1227360951683252244) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
How would the booking scenario work with MCP? For eaxmple, if I have several tools "address_check", "number_type_check", etc. added to the MCP. Would I use traditional webhook for booking? @AI Evy
a
Thanks for the follow-up, @anton333_50203. I'll get back to you soon.
### Answer ### Answer For booking scenarios with MCP, you have multiple architectural options depending on your workflow complexity: ## MCP for All Functions Including Booking You can absolutely add your booking function to the same MCP server alongside your other tools like "address_check" and "number_type_check" [(1) ]() . MCP allows you to add multiple tools to the same server and restrict which ones your agent can access . The MCP setup process would include all your tools: 1. Add MCP server 2. Set request headers (optional) 3. Set query parameters (optional) 4. Add MCP Tools - Select all your tools including booking 5. Set response variables (optional) ## Hybrid Approach: MCP + Traditional Webhooks You could also use MCP for validation tools ("address_check", "number_type_check") and traditional webhooks for final booking [(2) ]() . Webhooks are event-driven messages that can trigger follow-up actions like booking appointments directly in scheduling tools . ## MCP Booking Workflow Example With MCP, your booking workflow could work like this: - Agent calls "address_check" MCP tool during conversation - Agent calls "number_type_check" MCP tool for validation - Agent calls "final_booking" MCP tool to complete the booking - MCP tool returns structured data that can be saved as dynamic variables [(1) ]() For example, you can extract booking confirmation details from the response and reference them later using dynamic variables like
{{booking_id}}
. ## Benefits of MCP for Booking MCP enables your agent to securely interact with external services autonomously while staying in the flow of the call . This means all your booking logic can
happen mid-conversation without compromising latency, reliability, or control . The choice between MCP-only or hybrid approach depends on your specific workflow complexity and whether you need the booking to happen during the call or as a post-call process.
​ 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) [[2] Webhook](https://www.retellai.com/glossary/webhook) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
I have another question then. How does Retell understand what information should be sent to what tool? BEcause there's no JSON schema, and I am not entering any variables anywhere, so how does it understand? @AI Evy
a
Thanks for the follow-up, @anton333_50203. I'll get back to you soon.
### Answer ### Answer For custom functions in Retell AI, you actually do need to define parameters using JSON schema format to tell Retell what information to send to your tools [(1) ]() [(2) ]() . ## Parameter Definition Required When creating custom functions, you must define parameters using JSON schema format . Here's the process: 1. **Define Parameters**: You need to specify the parameters for the custom function using JSON schema format or JSON form 2. **JSON Schema Example**: The documentation provides this example parameter schema [(1) ]() :
Copy code
json
{
 "type": "object",
 "properties": {
 "city": {
 "type": "string",
 "description": "The city of the weather"
 }
 },
 "required": [
 "city"
 ]
}
## How Retell Sends Information When your custom function is called, Retell sends a structured request to your endpoint with this format [(1) ]() [(3) ]() :
Copy code
json
{
  "call": {
    "call_type": "phone_call",
    "from_number": "+12137771234",
    "to_number": "+12137771235",
    "direction": "inbound",
    "call_id": "Jabr9TXYYJHfvl6Syypi88rdAHYHmcq6",
    "agent_id": "oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD",
    "call_status": "registered",
    "metadata": {},
    "retell_llm_dynamic_variables": {
      "customer_name": "John Doe"
    },
    "opt_out_sensitive_data_storage": true
  },
  "name": "get_weather",
  "args": {
    "city": "New York"
  }
}
## LLM Decision Making The LLM intelligently decides when to call these functions by outputting structured JSON objects containing the necessary arguments [(4) ]() . The function description and parameter schema you provide helps the LLM understand: - When to call the function - What arguments to extract from the conversation - How to structure the data ## Best Practice It's recommended to include in the prompt explicitly when is the best time to invoke the custom function [(1) ]() . For example:
Copy code
When user provided the city name, please get the weather for that city by calling the `get_weather` function.
So you do need to define the JSON schema for your parameters - this is how Retell understands what information to send to each tool.
​ To learn more, see the sources I considered: [[1] Integrate any system with custom function](https://docs.retellai.com/build/single-multi-prompt/custom-function) [[2] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) [[3] Discord message from @bimal.patel on 2024-11-17](https://discord.com/channels/1186424376300679209/1294891368505937952/1307604643517304842) [[4] Function Calling Overview](https://docs.retellai.com/build/single-multi-prompt/function-calling) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
No, I am talking about MCP tools @AI Evy
a
Thanks for the follow-up, @anton333_50203. I'll get back to you soon.
### Answer ### Answer For MCP tools specifically, Retell AI uses a different approach than traditional custom functions [(1) ]() . With MCP, the tool definitions and parameter schemas are managed by your MCP server, not configured directly in Retell's interface [(2) ]() . ## How MCP Tool Information Flow Works When you add an MCP server to Retell AI, the system automatically discovers available tools through the MCP server's
/list_tools
endpoint [(3) ]() . Your MCP server should expose: -
/list_tools
endpoint returning available tools -
/call_tool
endpoint for tool execution ## MCP Server Responsibilities Your MCP server handles the tool definitions, including: - Tool names and descriptions - Parameter schemas - Input validation - Response formatting [(2) ]() The MCP server acts as a central hub that manages communication between your agent and external tools [(4) ](

▾

) . When the agent needs to use a tool, it asks the server, which forwards requests to the host, gets the result, and sends it back to the agent . ## Retell's MCP Configuration In Retell's MCP node configuration, you only need to specify [(1) ]() : 1. MCP server URL 2. Timeout (default is 10,000 ms) 3. Optional custom headers like authorization tokens 4. Optional query parameters 5. Select which MCP tools to enable from those available on your server ## LLM Decision Making with MCP The LLM makes decisions about when and how to call MCP tools based on the tool descriptions provided by your M
CP server [(2) ]() . The agent can securely call any tool hosted on your MCP server and use the response to guide the conversation . So unlike custom functions where you define JSON schemas in Retell's interface, MCP tools rely on your MCP server to provide all the tool definitions and parameter handling.
​ 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] MCPs not loading](https://discord.com/channels/1186424376300679209/1400851768027385950) [[4] Retell MCP Node Tutorial](

https://www.youtube.com/watch?v=efmWhp8Pd5I▾

) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
question, where do you define the name of the variable that will be sent to the MCP? Because right now Retell just sends the data as "query": @AI Evy
a
Thanks for the follow-up, @anton333_50203. I'll get back to you soon.
### Answer Based on the documentation, the variable names sent to MCP tools are controlled by your MCP server's tool definitions, not configured directly in Retell's interface [(1) ]() [(2) ]() . ## MCP Tool Parameter Definition Unlike custom functions where you define JSON schemas in Retell, MCP tools rely on your MCP server to provide the tool definitions and parameter schemas . Your MCP server should expose a
/list_tools
endpoint that returns available tools with their parameter definitions. ## Current Limitation with Dynamic Variables From the Discord discussion, there's a known limitation with passing dynamic variables to MCP tools [(3) ]() . As one community member noted: "you can't set up dynamic variables in the call directly (not yet) , you have to use custom function, and extract it using JSON parameters" . The issue you're experiencing where Retell sends data as "query" suggests that the variable doesn't have a value at the moment the request is sent . When a dynamic variable like
{{customer_searched_name}}
has no value, it gets sent literally as the string rather than the extracted value . ## Workaround Approach Based on the community discussion, the current workaround is : 1. Use a custom function to extract the data using JSON parameters 2. Send the extracted data back to the call as a dynamic variable 3. Then use that dynamic variable in subsequent MCP tool calls ## MCP Server Responsibility Your MCP server needs to define the parameter names and schemas that determine what variable names are expected [(2) ]() . The LLM makes decisions about whe
n and how to call MCP tools based on the tool descriptions provided by your MCP server . For now, you may need to structure your MCP server to handle the current data format that Retell sends, or use the custom function workaround mentioned in the community discussion.
​ To learn more, see the sources I considered: [[1] MCP](https://docs.retellai.com/build/single-multi-prompt/mcp) [[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] How to pass query URL parameters from conversation to GET request](https://discord.com/channels/1186424376300679209/1384523020110008420) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
Look the retell sends this via mcp: { "name": "Anton", "phone_number": "074545451", "address": "170 Dog Road, R2 6XX", "job_summary": "Sofa leg repair", "urgency": true } but the n8n receives: [ {} ] ? @AI Evy why
a
Thanks for the follow-up, @anton333_50203. I'll get back to you soon.
### Answer Based on the issue you're describing, there are several potential causes for why n8n is receiving an empty array instead of your structured data. ## MCP Server Configuration Issues From the Discord discussions, there are known issues with MCP server compatibility [(1) ]() . One community member noted that some MCP integrations haven't been upgraded to support the newer two-way
/mcp
communication format, particularly with make.com and similar platforms that still use the older SSE (Server-Sent Events) style MCP server format . ## MCP Server Endpoint Requirements Your MCP server should expose the correct endpoints : -
/list_tools
endpoint returning available tools -
/call_tool
endpoint for tool execution - Proper error handling and response formats You can test your MCP server independently with this command :
Copy code
bash
curl -X POST [your-mcp-endpoint]/list_tools
## Response Format Issues Based on the community discussion about agent ignoring MCP tool responses, the issue might be related to how your MCP server is structuring the response [(2) ]() . The agent can ignore MCP tool responses when: - The output is plain text, not structured JSON - The agent isn't explicitly told to use the response - The response format doesn't match what Retell expects ## Troubleshooting Steps 1. **Verify MCP Server Format**: Check if your n8n MCP server supports the newer
/mcp
communication format rather than the older SSE style [(1) ]() 2. **Check Response Structure**: Ensure your MCP server returns properly structured JSON that matches the expected schema [(3) ]() [(4) ]() :
Copy code
json
{
  "properties": {
    "user": {
      "name": "John Doe",
      "age": 26
    }
  }
}
3. **Test Server Endpoints**: Verify your MCP server configuration and ensure it's accessible [(1) ]() The empty array
[{}]
response suggests there's a communication issue between Retell's MCP implementation and your n8n server, likely related to endpoint compatibility or response formatting.
​ To learn more, see the sources I considered: [[1] MCPs not loading](https://discord.com/channels/1186424376300679209/1400851768027385950) [[2] Agent Ignores MCP Tool Response – How to Handle Text-Based Output in MCP?](https://discord.com/channels/1186424376300679209/1400785012671909889) [[3] MCP](https://docs.retellai.com/build/single-multi-prompt/mcp) [[4] MCP Node](https://docs.retellai.com/build/conversation-flow/mcp-node) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
Retell sends only "query" to n8n via MCP @aiq760731 @AI Evy
a
Thanks for the follow-up, @anton333_50203. I'll get back to you soon.
### Answer ### Answer The issue where Retell sends only "query" to n8n via MCP is likely related to how the MCP tool parameters are being defined and processed by your MCP server [(1) ]() [(2) ]() . ## MCP Parameter Handling With MCP tools, the parameter definitions and schemas are managed by your MCP server, not configured directly in Retell's interface [(2) ]() . Your MCP server should expose: -
/list_tools
endpoint returning available tools -
/call_tool
endpoint for tool execution [(3) ]() ## Tool Definition Requirements Your MCP server needs to properly define the tool parameters that determine what variable names and data structure are expected [(4) ]() . The LLM makes decisions about when and how to call MCP tools based on the tool descriptions provided by your MCP server . ## Query Parameters Configuration In Retell's MCP configuration, you can define query parameters to include in the request URL that Retell appends to your MCP Server Endpoint [(1) ]() [(2) ]() . However, if these aren't properly configured or if your MCP server isn't correctly defining the expected parameters, Retell may default to sending generic "query" data. ## Troubleshooting Steps 1. **Verify MCP Server Endpoints**: Test your MCP server with this command:
curl -X POST [your-mcp-endpoint]/list_tools
[(3) ]() 2. **Check Tool Definitions**: Ensure your n8n MCP server pro
perly defines the expected parameters for each tool in the
/list_tools
response 3. **Server Compatibility**: Some MCP integrations haven't been upgraded to support the newer two-way
/mcp
communication format . N8N may need to support the current MCP protocol that Retell uses. The "query" parameter suggests that either your MCP server isn't defining specific parameter names, or there's a compatibility issue between Retell's MCP implementation and n8n's MCP server format.
​ To learn more, see the sources I considered: [[1] MCP](https://docs.retellai.com/build/single-multi-prompt/mcp) [[2] MCP Node](https://docs.retellai.com/build/conversation-flow/mcp-node) [[3] MCPs not loading](https://discord.com/channels/1186424376300679209/1400851768027385950) [[4] 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.
a
Has the community actually started using Retell's MCP tool vi self-hosted n8n? Right now I see more limitations than benefits. It just doesn't work for me @aiq760731 @AI Evy
a
Thanks for the follow-up, @anton333_50203. I'll get back to you soon.
### Answer Based on the community discussions in the sources, there are indeed challenges with using Retell's MCP feature with self-hosted n8n [(1) ]() [(2) ]() [(3) ]() . ## Community Experience with n8n and MCP The community has reported several issues with n8n MCP integration [(1) ]() . One user noted that their MCP server "does not seem to work but it still sends some sort of request to replit. It does not load the MCP inside the tools" . ## Known Compatibility Issues There are compatibility challenges between different MCP server implementations . As one community member explained: "this server supports old sse style mcp server whereas new mcp server relies on /mcp url" . They noted that "a number of older mcp integrations will not have been upgraded yet to support two way /mcp communication yet, e.g. make.com which i imagine a large number of your clients may be using" . ## n8n Community Node Usage The community does use the n8n-nodes-retellai package [(2) ]() , but this is different from MCP integration. One user mentioned they "got it going except for passing of JSON parameters from n8n to Retell" . The community guidance for this package is to "use the API endpoints to pass params" and reference the API documentation . ## Function Calling Issues There have been reports of n8n custom functions stopping working [(3) ]() . One user reported that their "agents to be able to call a custom function in n8n to check calendar availability" stopped working,
with agents saying "I don't seem to be able to get that information" . ## MCP Server Requirements For MCP to work properly, your server should expose [(1) ]() : -
/list_tools
endpoint returning available tools -
/call_tool
endpoint for tool execution - Proper error handling and response formats You can test your server with:
curl -X POST [your-mcp-endpoint]/list_tools
. ## Current State Based on the community discussions, it appears that while MCP is a powerful feature in theory [(4) ]() , the practical implementation with self-hosted n8n faces several technical hurdles that the community is still working through.
​ To learn more, see the sources I considered: [[1] MCPs not loading](https://discord.com/channels/1186424376300679209/1400851768027385950) [[2] Are there any support docs for community node n8n retell "n8n-nodes-retellai" ?](https://discord.com/channels/1186424376300679209/1399586379150786581) [[3] Custom n8n Functions Stopped Working](https://discord.com/channels/1186424376300679209/1360106227560087552) [[4] 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.
a
Quick unrelated question -- if I am sending back specific variables back to retell, do I need to specifically add them to the "Post-Call Analysis"? Or they will be rpesent as part of the Post-call payload?
Quick unrelated question -- if I am sending back specific variables back to retell, do I need to specifically add them to the "Post-Call Analysis"? Or they will be rpesent as part of the Post-call payload? @AI Evy
a
Thanks for the follow-up, @anton333_50203. I'll get back to you soon.
### Answer ### Answer Dynamic variables and post-call analysis are separate features that serve different purposes [(1) ]() [(2) ]() . ## Dynamic Variables vs Post-Call Analysis Dynamic Variables are used during the call to inject personalized data into prompts, tool descriptions, and other parts of your agent [(1) ]() . These variables can be: - Set at the beginning of calls via the API - Extracted during calls using the Extract Dynamic Variables tool [(3) ]() - Used in real-time during conversations Post-Call Analysis extracts specific data points after the call ends for business intelligence and insights [(2) ]() . You must explicitly define what data to extract by configuring analysis categories. ## Post-Call Analysis Configuration Required You need to specifically add variables to your Post-Call Analysis configuration if you want them analyzed [(2) ]() [(4) ]() . Post-call analysis supports these data types [(2) ]() : - Boolean (True/False) - Simple yes/no determinations - Text (String) - Detailed textual information - Number (Numerical value) - Quantitative measurements - Selector (Enum) - Categorization from a fixed list ## Important Limitation Post-call analysis fields will not be populated for non-connected calls and calls where no conversation happened . The system will not automatically include dynamic variables in post-call analysis unless you explicitly con
figure them. ## Community Experience From community discussions, post-call analysis variables can be nullable and are not guaranteed to be filled [(5) ]() . The LLM will try to fill the variables, but there's no guarantee all fields will be populated. So to answer your question directly: Yes, you need to specifically add variables to Post-Call Analysis configuration - they won't automatically appear in the post-call payload just because they exist as dynamic variables during the call.
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[2] Post Call Analysis Overview](https://docs.retellai.com/features/post-call-analysis-overview) [[3] Extract Dynamic Variables](https://docs.retellai.com/build/single-multi-prompt/extract-dv) [[4] Get Agent Versions](https://docs.retellai.com/api-references/get-agent-versions) [[5] Post Call Data Analysis - Nullable Variables](https://discord.com/channels/1186424376300679209/1376599913621885099) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
Is it possible to add to Post-Call Analysis dynamic variables that were reiceved to Retell during workflow executions during a call? @AI Evy
a
Thanks for the follow-up, @anton333_50203. I'll get back to you soon.
### Answer Yes, you can include dynamic variables that were collected during the call in your Post-Call Analysis configuration [(1) ]() . ## Dynamic Variables in Post-Call Analysis When you configure post-call analysis data extraction, you can reference dynamic variables that were collected during workflow executions . In the post-call analysis data configuration, you can define fields that extract information from dynamic variables that were set during the call . ## Example Configuration Based on the API documentation, you can configure post-call analysis to extract dynamic variables like this :
Copy code
json
"post_call_analysis_data": [
  {
    "type": "string",
    "name": "customer_name",
    "description": "The name of the customer.",
    "examples": [
      "John Doe",
      "Jane Smith"
    ]
  }
]
## How It Works Dynamic variables can be collected during the call through various methods [(2) ]() : - Set initially via API calls in
retell_llm_dynamic_variables
- Collected during workflow executions and function calls - Added through tool responses during the conversation The post-call analysis system can then reference these collected dynamic variables when extracting data after the call ends [(1) ]() . You need to explicitly configure which dynamic variables or data points you want included in the post-call analysis - they won't automatically appear just because they exist as dynamic variables [(3) ]() . ## Community Experience From community discussions, there can be inconsistencies with dynamic variable capture [(4) ]() . Sometimes dynamic variables are captured in the Data tab but not used as expected in functions or analysis . The LLM will try to fill the post-call analysis variables, but there's no guarantee all fields will be populated [(3) ]() .
​ To learn more, see the sources I considered: [[1] Create Agent](https://docs.retellai.com/api-references/create-agent) [[2] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[3] Post Call Data Analysis - Nullable Variables](https://discord.com/channels/1186424376300679209/1376599913621885099) [[4] dynamic variables are not being used even though in data tab it was captured](https://discord.com/channels/1186424376300679209/1380529470468919320) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.