https://retellai.com/?utm_source=discord&utm_medium=seo logo
how to get mcp id to put in create llm api
# ❓・ai-evy-support
a
@AI Evy how to get mcp id to put in create llm api
a
Thanks for tagging me @ayushsharma5280. I'll look through relevant sources and get back to you shortly.
### Answer I don't have information about MCP ID or how to obtain it for the Create Retell LLM API in the available sources. The Create Retell LLM API documentation shows how to create an LLM using the TypeScript SDK [(1) ]() , but doesn't mention MCP ID as a parameter. Here's the basic create LLM example from the documentation:
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const llmResponse = await client.llm.create({ start_speaker: 'user' }) ;
console.log(llmResponse.llm_id) ;
Could you provide more context about what MCP ID refers to? This would help me give you a more specific answer if the information is available in other documentation.
​ To learn more, see the sources I considered: [[1] Create Retell LLM](https://docs.retellai.com/api-references/create-retell-llm) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
@AI Evy how to add mcp to my agent in retell via api
a
Thanks for the follow-up, @ayushsharma5280. I'll get back to you soon.
### Answer Based on the available sources, I can see information about MCP (Model Context Protocol) tools and how to retrieve them via API, but I don't have specific documentation about adding MCP to an agent through the API [(1) ]() [(2) ]() . The available API reference shows how to get MCP tools for a specific agent using this endpoint [(2) ]() :
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const mcpToolDefinitions = await client.mcpTool.getMcpTools('oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD', {
 mcp_id: 'mcp-server-1',
}) ;
console.log(mcpToolDefinitions) ;
This suggests that MCP tools are associated with agents using an
mcp_id
parameter, but the sources don't contain the specific API endpoint or method for adding MCP to an agent . The documentation mentions that MCP allows voice agents to call external tools mid-conversation and connect to any HTTP-based service, but the setup process appears to be primarily documented for the dashboard interface rather than direct API integration [(1) ]() . For the complete API documentation on adding MCP to agents, you may want to check: - [Get MCP Tools]() - [Connect any AI Voice Agent to MCP with Retell AI MCP Node (Guide) ]() 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] Get MCP Tools](https://docs.retellai.com/api-references/get-mcp-tools) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
@AI Evy how to attach mcp via api
a
Thanks for the follow-up, @ayushsharma5280. I'll get back to you soon.
### Answer Based on the available sources, I can see how to retrieve MCP tools from an agent, but I don't have specific documentation about the API endpoint for attaching MCP to an agent. The documentation shows how to get MCP tools for a specific agent using the Get MCP Tools endpoint [(1) ]() :
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const mcpToolDefinitions = await client.mcpTool.getMcpTools('oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD', {
 mcp_id: 'mcp-server-1',
}) ;
console.log(mcpToolDefinitions) ;
This suggests that MCP tools are associated with agents using an
mcp_id
parameter . The MCP functionality allows your voice agents to call external tools mid-conversation and securely interact with external services and tools [(2) ]() . However, the sources don't contain the specific API method for initially attaching or configuring MCP on an agent. The available documentation primarily covers: - How to retrieve existing MCP tools from an agent [(1) ]() - The conceptual overview of MCP capabilities [(2) ]() - Agent creation parameters (though MCP attachment isn't explicitly shown) [(3) ]() For the complete API documentation on attaching MCP to agents via API, I'd recommend: Check out these potentially useful sources: [Get MCP Tools]() , [Create Agent]() , [Connect any AI Voice Agent to MCP with Retell AI MCP Node (Guide) | Retell AI]() Would you like a general answer based on my knowledge instead?
​ To learn more, see the sources I considered: [[1] Get MCP Tools](https://docs.retellai.com/api-references/get-mcp-tools) [[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] Create Agent](https://docs.retellai.com/api-references/create-agent) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
@AI Evy research create llm api
a
Thanks for the follow-up, @ayushsharma5280. I'll get back to you soon.
### Answer The Create Retell LLM API is used to create a new Retell LLM Response Engine that can be attached to an agent [(1) ]() . Here's the comprehensive overview: ## Basic Usage
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const llmResponse = await client.llm.create({ start_speaker: 'user' }) ;
console.log(llmResponse.llm_id) ;
## Key Parameters Required: - `start_speaker`: Must be either 'user' or 'agent' Model Selection: - `model`: Choose from gpt-5, gpt-5-mini, gpt-5-nano, gpt-4o, gpt-4o-mini, gpt-4.1, gpt-4.1-mini, gpt-4.1-nano, claude-3.7-sonnet, claude-3.5-haiku, gemini-2.0-flash, gemini-2.0-flash-lite, gemini-2.5-flash, gemini-2.5-flash-lite - `s2s_model`: For speech-to-speech models like gpt-4o-realtime, gpt-4o-mini-realtime, gpt-realtime Configuration Options: - `model_temperature`: Controls randomness (0-1) , defaults to 0 - `model_high_priority`: Enables fast tier for lower latency (higher cost) - `tool_call_strict_mode`: Uses structured output for GPT-4o models ## Advanced Features States and Prompts: - `general_prompt`: System prompt for all states - `states`: Array of LLM states for complex workflows - `starting_state`: Required if states are defined Tools: - `general_tools`: Available across all states - Pre-defined tools like end_call, transfer_call, book_appointment_cal Dynamic Variables: - `default_dynamic_variables`: Key-value pairs injected into prompts ## Example Response The API returns an LLM object with details like:
Copy code
json
{
 "llm_id": "oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD",
 "version": 0,
 "is_published": false,
 "model": "gpt-4.1",
 "model_temperature": 0
}
## Retell LLM Benefits Retell LLM offers sub-800ms end-to-end latency and is fine-tuned for conversational voice interactions with reliable function calls [(2) ]() . You can create either single-prompt agents for simple tasks or stateful multi-prompt agents for complex workflows .
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] Create Retell LLM](https://docs.retellai.com/api-references/create-retell-llm) [[2] Introducing Retell LLM Beta](https://www.retellai.com/changelog/introducing-retell-llm-beta) ​