https://retellai.com/?utm_source=discord&utm_medium=seo logo
what are MCPLibrary componentAgent component
# ❓・ai-evy-support
m
@AI Evy what are MCP Library component Agent component
a
Thanks for tagging me @manucmt_18551. I'll look through relevant sources and get back to you shortly.
### Answer ## MCP (Model Context Protocol) MCP allows your Retell AI agent to securely call external tools mid-conversation without compromising latency, reliability, or control [(1) ]() . It's a secure bridge between your voice agent and external services like Zapier, custom APIs, or cloud functions . Core components include : - **MCP Server**: The secure endpoint that mediates requests from your agent to your tools - **MCP Tool**: A function on the server you want your agent to access (e.g., Send Email, Lookup Contact) - **Retell AI Agent**: The client that initiates the request to MCP mid-call MCP lets you send structured requests from an agent to a tool, include headers and query params, use the result to dynamically shape the next prompt or decision, and do all of this while keeping conversations fluid and real-time . ## Library Components Library Components are account-level, shared components that can be reused across multiple agents [(2) ]() . They're stored in the Components tab under "Library Components" . Key characteristics : - Account-level and reusable across multiple agents - Edits sync to every agent that uses it - Great for universal steps you want consistent across agents - Can be converted to local components by turning off syncing ## Agent Components Agent Components are local to the current agent . They live only in that specific agent and edits affect only that agent . Key characteristics : - Local to the current agent - Edits affect this agent only - Can be converted to shared (library) components by turning on "Save component to library" Both component types are mini flows (groups of nodes) that you can reuse to keep agents maintainable and consistent . They help y
ou build once and drop into many agents and flows, maintain consistency across use cases, hide detailed logic inside focused sub-flows, and iterate faster by updating a shared component to improve every agent that uses it . **
​ 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] Components](https://docs.retellai.com/build/conversation-flow/components) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
m
@AI Evy How do MCP differ from functions?
a
Thanks for the follow-up, @manucmt_18551. I'll get back to you soon.
### Answer --- ## How MCP Differs from Functions *MCP (Model Context Protocol) * allows your agent to extend its capabilities by integrating external MCP servers and utilizing MCP tools [(1) ]() . MCP works by connecting your Retell AI agent to an external MCP server that hosts tools your agent can access during conversations [(2) ]() . Key Architecture of MCP: - **MCP Server**: Acts as a central hub managing communication between your agent and external tools [(3) ](

▾

) - **Host**: Where external tools or functions are actually run, such as cloud servers - **Client**: Your Retell AI agent, which sends requests to the server 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 . This setup keeps connections secure and organized, letting your agent access many services flexibly . MCP Setup Process: 1. Add an MCP server configuration with the server URL [(1) ]() [(3) ](

▾

) 2. Set optional request headers for authentication [(1) ]() 3. Define optional query parameters 4. Select the MCP tool from available tools 5. Configure response variables to extract values and save as dynamic variables *Functions (Traditional Tool Calling) *, on the other hand, refers to the standard function calling mechanism where the LLM outputs structured JSON to trigger actions directly within your Retell AI setup. The main difference is that **MCP provides a standardized protocol for connecting to external systems through a managed server architecture
** [(2) ]() , while traditional functions are typically direct integrations. MCP introduces a secure bridge between your voice agent and external tools like Zapier, custom APIs, or cloud functions . **Important Limitation**: MCP is not supported by realtime models [(4) ]() . Realtime models have restrictions and do not support MCP, knowledge bases, or voicemail detection .
​ 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] MCP not working with 'realtime' model](https://discord.com/channels/1186424376300679209/1417524403381473331) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
m
@AI Evy What is realtime model
a
Thanks for the follow-up, @manucmt_18551. I'll get back to you soon.
### Answer ## What is the Realtime Model? The realtime model refers to speech-to-speech (S2S) models available in Retell AI, specifically models like GPT-4o Realtime [(1) ]() . These models are designed for ultra-low-latency voice interactions and provide native speech-to-speech capabilities. ### Key Characteristics: **Model Configuration**: In Retell AI's LLM configuration, you can specify the realtime model using the
s2s_model
parameter . For example:
Copy code
javascript
{
  "model": "gpt-4.1",
  "s2s_model": "gpt-4o-realtime",
  "model_temperature": 0,
  "model_high_priority": true
}
**Performance**: Realtime models are optimized for conversational AI with minimal latency, enabling natural back-and-forth dialogue [(2) ]() . ### Important Limitations: **MCP Not Supported**: MCP (Model Context Protocol) is not supported by realtime models [(3) ]() . If you enable MCP with a realtime agent, the agent will not speak or function properly . **Short Phrase Recognition**: There have been reported issues where GPT-realtime models sometimes struggle to understand very short phrases like "yes" or "yes please" [(4) ]() . **Available Models**: Common realtime models include
gpt-4o-realtime
and
gpt-4o-mini
(realtime variant) [(3) ]() . If you need to use MCP functionality, you'll need to switch to a non-realtime model like GPT-4.1 .
​ To learn more, see the sources I considered: [[1] Update Retell LLM](https://docs.retellai.com/api-references/update-retell-llm) [[2] VAD vs. Turn-Taking Endpoints in Conversational AI | Retell AI](https://www.retellai.com/blog/vad-vs-turn-taking-end-point-in-conversational-ai) [[3] MCP not working with 'realtime' model](https://discord.com/channels/1186424376300679209/1417524403381473331) [[4] gpt-realtime doesn't understand short phrases](https://discord.com/channels/1186424376300679209/1427295105886191726) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.