ayushsharma5280
10/21/2025, 6:41 AMAI Evy
10/21/2025, 6:41 AMAI Evy
10/21/2025, 6:41 AMjavascript
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.AI Evy
10/21/2025, 6:41 AMAI Evy
10/21/2025, 6:41 AMayushsharma5280
10/21/2025, 6:42 AMAI Evy
10/21/2025, 6:42 AMAI Evy
10/21/2025, 6:42 AMjavascript
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?AI Evy
10/21/2025, 6:42 AMAI Evy
10/21/2025, 6:42 AMayushsharma5280
10/21/2025, 6:53 AMAI Evy
10/21/2025, 6:53 AMAI Evy
10/21/2025, 6:54 AMjavascript
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) ;AI Evy
10/21/2025, 6:54 AMmcp_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?AI Evy
10/21/2025, 6:54 AMAI Evy
10/21/2025, 6:54 AMayushsharma5280
10/21/2025, 6:54 AMAI Evy
10/21/2025, 6:54 AMAI Evy
10/21/2025, 6:54 AMjavascript
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:
json
{
"llm_id": "oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD",
"version": 0,
"is_published": false,
"model": "gpt-4.1",
"model_temperature": 0
}AI Evy
10/21/2025, 6:54 AMAI Evy
10/21/2025, 6:55 AMAI Evy
10/21/2025, 6:55 AM