Retell AI

v0.4.2
io.github.mindstone/mcp-server-retell-ai Checked 4 days ago Published 2 days ago

Retell AI MCP server: voice agent phone calls, agent management, LLMs, and voice discovery

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

create_phone_call

Create an outbound phone call using a Retell AI voice agent. WHEN TO USE: User asks you to make, place, or initiate a phone call. WORKFLOW (typical sequence): 1. list_agents → find the right agent, note its agent_id 2. get_agent → check config, get its retell_llm_id 3. update_retell_llm → set the conversation prompt/instructions 4. Wait 2-3 seconds (let config propagate) 5. create_phone_call → initiate the call 6. Poll get_call every 5-10s until status is "ended" EXAMPLE: { "from_number": "+14155551234", "to_number": "+14155559876", "override_agent_id": "agent_xxx", "override_agent_…

ParameterTypeDescription
from_number *stringCaller phone number in E.164 format (e.g. +14155551234). Must be registered in Retell and have an outbound agent binding. Use list_phone_numbers to find available numbers.
to_number *stringRecipient phone number in E.164 format (e.g. +14155559876).
metadataobjectCustom metadata key-value pairs to attach to this call (for CRM IDs, campaign IDs, user context).
override_agent_idstringAgent ID to use for this call. If set, also pass override_agent_version for reliable routing. If omitted, uses the default agent assigned to from_number.
override_agent_versionAgent version: number (0, 1, 2...) or tag ("latest", "prod"). Use with override_agent_id for reliable routing to a published version.
retell_llm_dynamic_variablesobjectDynamic variables to inject into the prompt template (e.g. { customer_name: 'Jane', account_tier: 'pro' }). WARNING: These ONLY work if the LLM prompt already contains matching {{variable_name}} place…

create_web_call

Create a browser-based voice call session. Returns a web_call_link the user can open to talk to a Retell agent. WHEN TO USE: - User wants a voice call in their browser instead of their phone - Phone call route is blocked (e.g. phone number binding issue) - Testing or demoing an agent without using phone minutes EXAMPLE: { "agent_id": "agent_xxx", "agent_version": "latest", "retell_llm_dynamic_variables": { "customer_name": "Jane" } } COMMON MISTAKES: - Forgetting agent_version when testing a specific published version - Sharing an old web_call_link instead of creating a fresh session ERROR…

ParameterTypeDescription
agent_id *stringAgent ID to handle the web call. Use list_agents/get_agent to verify it first.
agent_versionAgent version to use: number (0, 1, 2...) or tag (e.g. "latest", "prod"). Pass this when validating a specific published version.
metadataobjectCustom metadata for this call (CRM IDs, test labels, scenario names).
retell_llm_dynamic_variablesobjectDynamic prompt variables used by the Retell LLM prompt template. WARNING: Only works if the LLM prompt contains matching {{variable_name}} placeholders. Unmatched variables are silently dropped. Check…

get_call

Get details of a specific call including status, transcript, recording URL, and duration. WHEN TO USE: - After create_phone_call or create_web_call to monitor progress - To retrieve the full transcript after a call ends - To check call status: "registered" (queued), "ongoing" (live), "ended" (complete), "error" (failed) WORKFLOW: Poll every 5-10 seconds after creating a call until status is "ended" or "error". ERROR RECOVERY: - 401: API key is missing or invalid → configure_retell_api_key - 404: call_id not found → check the ID returned by create_phone_call/create_web_call or use list_c…

ParameterTypeDescription
call_id *stringThe call ID returned by create_phone_call/create_web_call or found via list_calls.

list_calls

List calls with filtering and pagination. Returns recent calls by default (newest first). WHEN TO USE: - Browse call history - Find calls by agent, date range, or status - Verify recent call activity FILTERING: - agent_id accepts an array of one or more agent IDs - filter_criteria timestamps accept Unix milliseconds (number) or a parseable date string (e.g. "2026-01-01"); date strings are converted to milliseconds before the API call - Example: { "limit": 20, "agent_id": ["agent_xxx"], "filter_criteria": { "after_start_timestamp": 1735689600000 } } COMMON MISTAKES: - Passing one agent_id as…

ParameterTypeDescription
agent_idarrayFilter calls by one or more agent IDs. Must be an array, even for one agent: ["agent_xxx"].
filter_criteriaobjectTime-based filters for narrowing call results.
limitintegerMax results (1-1000). Default: 50.
pagination_keystringPagination key from previous response for the next page.
sort_orderstringSort by start time. Default: descending (newest first).

get_concurrency

Get your account's current call concurrency and limits. WHEN TO USE: - Before create_batch_call or a burst of create_phone_call calls, to check capacity headroom - To decide reserved_concurrency for a batch call (leave room for inbound traffic) - To diagnose 429/rate-limit or call-queuing issues HOW TO READ: concurrency_limit is the max simultaneous calls (base + purchased). current_concurrency is how many calls are live right now. Headroom = concurrency_limit - current_concurrency. If concurrency_burst_enabled, the account may exceed the normal limit up to concurrency_burst_limit with a sur…

stop_call

Stop an ongoing call immediately. WHEN TO USE: - User wants to end a call in progress - Call is stuck or behaving unexpectedly - Emergency stop COMMON MISTAKES: - Calling this on an already ended call; use get_call first if unsure ERROR RECOVERY: - 401: API key is missing or invalid → configure_retell_api_key - 404: call_id not found or no longer active → verify with list_calls/get_call RELATED TOOLS: - get_call: Check whether status is "ongoing" before stopping - list_calls: Find the active call_id RETURNS: ok, message. Retell returns HTTP 204 on success.

ParameterTypeDescription
call_id *stringThe call ID of the ongoing call to stop. Confirm status with get_call when possible.

create_batch_call

Create a batch of outbound phone calls (a calling campaign) from one from_number to many recipients. WHEN TO USE: - User asks to call a list of people (appointment reminders, follow-ups, re-engagement) - Scheduled outbound campaigns — trigger_timestamp defers the start, call_time_window restricts calling hours CRITICAL: Every task in the batch is a real, billed phone call to a real person. The MCP host MUST surface the full recipient list to the user and get explicit confirmation before invoking this tool. A mistake here rings N phones, not one. WORKFLOW: 1. get_concurrency → confirm th…

ParameterTypeDescription
from_number *stringCaller phone number in E.164 format (e.g. +14155551234). Must be registered in Retell with an outbound agent binding. Use list_phone_numbers to find available numbers.
tasks *arrayRecipients to call — one task per outbound call. Each needs to_number (E.164) and may carry per-call dynamic variables, metadata, and agent overrides.
call_time_windowobjectRestrict calling to specific hours/days in a timezone (e.g. business hours only). Calls outside the window wait for the next window.
namestringBatch name for your own reference (e.g. "March reminder campaign").
reserved_concurrencyintegerConcurrency slots to keep free for non-batch calls (e.g. inbound). Check get_concurrency before setting this.
trigger_timestampWhen to start the batch. Unix timestamp in milliseconds (number, e.g. 1735689600000) or a parseable date string (e.g. "2026-01-01"). Omit to start immediately.

get_agent

Get full configuration of a voice agent including voice, LLM, language, and versioning info. WHEN TO USE: - Before making a call, to check the agent's retell_llm_id (needed for update_retell_llm) - To verify which voice, language, or phone number an agent uses - To check the agent's current version and published state COMMON MISTAKES: - Updating the wrong LLM: use response_engine.llm_id from this tool before update_retell_llm - Assuming draft changes are live: use get_agent_versions/publish_agent to confirm ERROR RECOVERY: - 401: API key is missing or invalid → configure_retell_api_key -…

ParameterTypeDescription
agent_id *stringThe agent ID to look up. Use list_agents if you only know the name.

list_agents

List configured voice agents in your Retell account (paginated). WHEN TO USE: - Discover available agents before making calls - Find agent IDs by name - Inventory check NOTE: Returns summary records (agent_id, agent_name, channel, response_engine_type, voice_id, voice_name, tags, timestamps). Use get_agent for the full configuration of a specific agent. Results are filtered to voice agents; use list_chat_agents for chat agents. COMMON MISTAKES: - Guessing agent IDs from names; use the returned agent_id exactly - Expecting the full agent config here; the list endpoint returns summaries — c…

ParameterTypeDescription
limitintegerMax results (1-1000). Default: 50.
pagination_keystringPagination key from previous response for the next page.
sort_orderstringSort by last-modified time. Default: descending (most recently modified first).

create_agent

Create a new voice agent with specified voice, LLM, and language settings. WHEN TO USE: - Setting up a new voice agent from scratch - No existing agent fits the use case WORKFLOW: 1. list_voices → choose voice_id 2. create_retell_llm → create prompt/model config 3. create_agent → point response_engine.llm_id at that LLM 4. publish_agent → make the version live 5. update_phone_number → bind the agent for calls EXAMPLE: { "agent_name": "Sales qualifier", "voice_id": "11labs-Adrian", "response_engine": { "type": "retell-llm", "llm_id": "llm_xxx" }, "language": "en-US" } COMMON MISTA…

ParameterTypeDescription
agent_namestringDisplay name for the agent (e.g. "Sales qualifier").
languagestringLanguage code (e.g. "en-US", "es-ES"). Default: en-US.
response_engineobjectResponse engine configuration linking the agent to an LLM.
voice_idstringVoice to use. Get valid IDs from list_voices.

update_agent

Update an existing agent's configuration (voice, name, response engine, language, etc.). WHEN TO USE: - Change voice, language, response engine, responsiveness, or backchannel behavior - Point an agent at a different Retell LLM NOTE: This updates the agent's latest DRAFT version. To make changes live, call publish_agent afterward. COMMON MISTAKES: - Updating the agent and immediately calling without publish_agent - Switching response_engine.llm_id without checking the LLM config first ERROR RECOVERY: - 401: API key is missing or invalid → configure_retell_api_key - 404: agent_id/voice_id…

ParameterTypeDescription
agent_id *stringAgent ID to update. Use get_agent first when unsure.
agent_namestringNew display name.
ambient_soundstringBackground ambience sound.
boosted_keywordsarrayWords to boost in speech recognition (names, brands, etc.).
enable_backchannelbooleanWhether the agent says "yeah", "uh-huh" during user speech.
interruption_sensitivitynumberHow easily user can interrupt (0=never, 1=easy). Default: 1.
languagestringNew language code (e.g. "en-US", "es-ES").
response_engineobjectUpdated response engine config.
responsivenessnumberHow quickly the agent responds (0=slow, 1=fast). Default: 1.
voice_idstringNew voice ID. Get IDs from list_voices.
voice_speednumberSpeech rate (0.5=slow, 2=fast). Default: 1.

publish_agent

Publish a specific agent version, making it the active/live version. WHEN TO USE: - After updating an agent's config or LLM, to make changes live - When create_phone_call returns 404 because the agent version is unpublished - When you need to activate a specific version CRITICAL: Agent updates go to the latest DRAFT version. They are NOT live until published. If calls fail with 404, check get_agent_versions and publish the correct version. WORKFLOW: 1. update_agent or update_retell_llm → changes the draft 2. get_agent_versions → find the version number of the draft 3. publish_agent →…

ParameterTypeDescription
agent_id *stringAgent ID to publish. Use list_agents/get_agent if needed.
version *integerVersion number to publish. Get the exact number from get_agent_versions.
version_descriptionstringOptional description of this version (e.g. what prompt/config changed).

delete_agent

Permanently delete an agent and ALL of its versions. WHEN TO USE: - Removing a test/throwaway agent after experiments - Cleaning up agents that are no longer needed CRITICAL: This permanently deletes the agent and every version — there is no undo. Any phone numbers bound to it lose their agent binding. Confirm the agent_id with list_agents/get_agent first, and prefer deleting only after checking no phone number still routes to it (list_phone_numbers). ERROR RECOVERY: - 401: API key is missing or invalid → configure_retell_api_key - 404: agent_id not found → list_agents and retry with…

ParameterTypeDescription
agent_id *stringThe agent ID to permanently delete (deletes all versions). Confirm with list_agents/get_agent first.

get_agent_versions

List all versions of an agent, including draft and published versions. WHEN TO USE: - To check which version is currently published/live - To find the version number of a draft before publishing - To debug version mismatch issues causing 404 errors on calls COMMON MISTAKES: - Using override_agent_id without checking the matching override_agent_version here - Publishing/calling a stale version after updating the draft ERROR RECOVERY: - 401: API key is missing or invalid → configure_retell_api_key - 404: agent_id not found → list_agents and retry RELATED TOOLS: - publish_agent: Publish a…

ParameterTypeDescription
agent_id *stringAgent ID to list versions for. Use list_agents if unknown.

update_retell_llm

Update a Retell LLM response engine's prompt, model, or behavior settings. WHEN TO USE: - Before making a call, to set the conversation instructions/prompt - To change the LLM model or temperature - To update the agent's opening message CRITICAL: This is the #1 most important step before any phone call. The general_prompt controls what the agent says. If you skip this, the agent will use the PREVIOUS call's prompt. WORKFLOW: 1. get_agent → find the agent's retell_llm_id (in response_engine.llm_id) 2. update_retell_llm → set the prompt and behavior 3. get_agent_versions/publish_agent if…

ParameterTypeDescription
llm_id *stringThe LLM config ID to update. Get from get_agent → response_engine.llm_id or list_retell_llms.
begin_messagestringFirst message the agent speaks when the call connects (e.g. "Hi, this is Sarah from Acme Corp.").
general_promptstringSystem prompt/instructions for the voice agent. This controls what the agent says; update it before each call-specific scenario.
general_toolsarrayTools available to the LLM during calls (advanced). Must match Retell tool schema.
modelstringLLM model. Options: gpt-4.1, gpt-4.1-mini, gpt-5, gpt-5-mini, gpt-5.5, claude-4.5-sonnet, claude-4.6-sonnet, claude-4.5-haiku, gemini-2.5-flash-lite, gemini-3.0-flash, gemini-3.1-flash-lite.
model_temperaturenumberTemperature (0=deterministic, 2=creative). Default: varies by model.

get_retell_llm

Get details of a Retell LLM response engine (prompt, model, tools). WHEN TO USE: - Inspect current prompt/model before update_retell_llm - Confirm which prompt an agent will use before a call - Debug why an agent said the wrong thing COMMON MISTAKES: - Looking at the agent only; the actual call instructions live in the Retell LLM - Editing a different LLM than the one returned by get_agent.response_engine.llm_id ERROR RECOVERY: - 401: API key is missing or invalid → configure_retell_api_key - 404: llm_id not found → get_agent/list_retell_llms and retry RELATED TOOLS: - get_agent: Find…

ParameterTypeDescription
llm_id *stringThe Retell LLM config ID. Usually get this from get_agent → response_engine.llm_id.

create_retell_llm

Create a new Retell LLM response engine with prompt and model settings. WHEN TO USE: - Creating a new agent that needs its own prompt/model config - Separating a new call workflow from an existing agent's LLM - Testing a new prompt without overwriting a production LLM WORKFLOW: Create the LLM first, then create_agent with response_engine: { "type": "retell-llm", "llm_id": "<returned llm_id>" }. EXAMPLE: { "general_prompt": "You confirm appointment times and answer basic scheduling questions.", "begin_message": "Hi, I'm calling to confirm your appointment.", "model": "gpt-5.5" } MODEL OPTIO…

ParameterTypeDescription
begin_messagestringFirst message spoken when the call connects.
general_promptstringSystem prompt/instructions for the voice agent. Keep it call-ready and explicit.
modelstringLLM model. Options: gpt-4.1, gpt-4.1-mini, gpt-5, gpt-5-mini, gpt-5.5, claude-4.5-sonnet, claude-4.6-sonnet, claude-4.5-haiku, gemini-2.5-flash-lite, gemini-3.0-flash, gemini-3.1-flash-lite.

delete_retell_llm

Permanently delete a Retell LLM response engine and ALL of its versions. WHEN TO USE: - Removing a test/throwaway LLM config after experiments - Cleaning up unused LLM configs CRITICAL: This permanently deletes the LLM and every version — there is no undo. Any agent whose response_engine.llm_id points at it will break (calls will fail). Check which agents reference it via list_agents/get_agent before deleting. ERROR RECOVERY: - 401: API key is missing or invalid → configure_retell_api_key - 404: llm_id not found → list_retell_llms and retry with a returned ID RELATED TOOLS: - list_re…

ParameterTypeDescription
llm_id *stringThe Retell LLM config ID to permanently delete (deletes all versions). Confirm with list_retell_llms/get_retell_llm first.

list_retell_llms

List all Retell LLM response engine configurations. WHEN TO USE: - Find llm_id values before get_retell_llm/update_retell_llm - Inventory prompt/model configurations - Decide whether to reuse an LLM or create a new one COMMON MISTAKES: - Updating an arbitrary llm_id without checking which agent uses it - Assuming list order implies which LLM is active; use get_agent to confirm bindings ERROR RECOVERY: - 401: API key is missing or invalid → configure_retell_api_key - 422: invalid pagination params → keep limit between 1 and 1000 RELATED TOOLS: - get_retell_llm: Inspect one returned llm_…

ParameterTypeDescription
limitintegerMax results to return (default: 50, max: 1000).
pagination_keystringPagination key from the previous response for the next page.

list_voices

Browse all available TTS voices in Retell. WHEN TO USE: - Find voice IDs when creating or updating an agent - Compare providers/voice names before selecting a voice - Verify a voice_id still exists after a 404 from create_agent/update_agent COMMON MISTAKES: - Passing the display name instead of the exact voice_id - Reusing an old voice_id without checking it still exists ERROR RECOVERY: - 401: API key is missing or invalid → configure_retell_api_key RELATED TOOLS: - create_agent: Use a returned voice_id for a new agent - update_agent: Change an existing agent's voice_id RETURNS: voices,…

list_phone_numbers

List all phone numbers in your Retell account with their agent bindings. WHEN TO USE: - Before create_phone_call, to find available from_numbers - To check which agents are bound to which numbers - To verify outbound agent configuration TIP: The phone_number field (E.164 format) is what you pass as from_number in create_phone_call. The outbound_agents array shows which agent(s) are bound for outbound calls from this number. Check each outbound agent's agent_version before calling; version mismatches are a common 404 cause. COMMON MISTAKES: - Using a number that exists but has no outbound_ag…

ParameterTypeDescription
limitintegerMax results to return (default: 50, max: 1000).
pagination_keystringPagination key from the previous response for the next page.

get_phone_number

Get details of a specific phone number including its agent bindings. WHEN TO USE: - To check which agents are bound (inbound and outbound) to a specific number - To diagnose why create_phone_call returns 404 (missing outbound agent binding) - To confirm the bound agent_version before overriding call routing COMMON MISTAKES: - Checking only that the number exists; outbound calls require outbound_agents - Missing that the bound agent_version differs from the version you intend to use ERROR RECOVERY: - 401: API key is missing or invalid → configure_retell_api_key - 404: phone number not foun…

ParameterTypeDescription
phone_number *stringPhone number in E.164 format exactly as returned by list_phone_numbers (e.g. +14155551234).

update_phone_number

Update agent bindings and settings for a phone number. WHEN TO USE: - To bind an agent to a phone number for outbound/inbound calls - To fix "404 Not Found" errors on create_phone_call (the number needs an outbound agent) - To change which agent handles calls on a number CRITICAL: After Retell's March 2026 update, phone numbers use weighted agent lists. Each binding needs agent_id, weight (must sum to 1), and optionally agent_version. EXAMPLE — bind agent to outbound calls: { "phone_number": "+14155551234", "outbound_agents": [{ "agent_id": "agent_xxx", "agent_version": 1, "weight": 1 }]…

ParameterTypeDescription
phone_number *stringPhone number in E.164 format exactly as returned by list_phone_numbers.
inbound_agentsarrayAgents for inbound calls. Each item needs agent_id and weight; include agent_version when targeting a specific version. Weights must sum to 1.
nicknamestringHuman-readable label for this number.
outbound_agentsarrayAgents for outbound calls. Each item needs agent_id and weight; include agent_version to avoid version-binding mistakes. Weights must sum to 1.

delete_phone_number

Delete (release) a phone number from your Retell account. WHEN TO USE: - Releasing a number that is no longer needed (stops its recurring cost) - Cleaning up numbers purchased for a finished campaign CRITICAL: This releases the number back — there is no undo, and you may not be able to get the same number back. Any agents bound to it lose their routing immediately. Confirm with get_phone_number first. ERROR RECOVERY: - 401: API key is missing or invalid → configure_retell_api_key - 404: phone number not found → list_phone_numbers and use the exact E.164 value RELATED TOOLS: - list_ph…

ParameterTypeDescription
phone_number *stringPhone number in E.164 format exactly as returned by list_phone_numbers (e.g. +14155551234). The number is released permanently.

list_knowledge_bases

List all knowledge bases in your Retell account. WHEN TO USE: - Find knowledge_base_id values before attaching them to an agent or LLM - Check processing status of a recently created knowledge base (in_progress → complete) - Inventory check before creating a duplicate COMMON MISTAKES: - Creating a new knowledge base when a suitable one already exists; list first - Attaching a knowledge base whose status is still "in_progress" — wait for "complete" ERROR RECOVERY: - 401: API key is missing or invalid → configure_retell_api_key RELATED TOOLS: - get_knowledge_base: Inspect one knowledge…

get_knowledge_base

Get details of a specific knowledge base, including its sources and processing status. WHEN TO USE: - Check whether a knowledge base has finished processing (status "complete") - List the documents/URLs/texts a knowledge base contains - Verify a source was added before attaching the knowledge base to an agent ERROR RECOVERY: - 401: API key is missing or invalid → configure_retell_api_key - 404: knowledge_base_id not found → list_knowledge_bases and retry with a returned ID RELATED TOOLS: - list_knowledge_bases: Discover knowledge_base_id values - add_knowledge_base_sources: Add more doc…

ParameterTypeDescription
knowledge_base_id *stringThe knowledge base ID to look up. Use list_knowledge_bases if you only know the name.

create_knowledge_base

Create a knowledge base (documents/URLs/texts) that agents can ground their answers on via RAG. WHEN TO USE: - Ground a voice agent on company docs, FAQs, or policies - Collect source material before wiring knowledge_base_ids into a Retell LLM or agent WORKFLOW: 1. create_knowledge_base → with texts, URLs, and/or local files 2. Poll get_knowledge_base until status is "complete" 3. Attach the knowledge_base_id to the agent's Retell LLM (knowledge_base_ids) — attach via update_retell_llm general_tools/config or the Retell dashboard SOURCES (at least one recommended; a name-only knowledge…

ParameterTypeDescription
knowledge_base_name *stringName for the knowledge base (max 40 characters, e.g. "Support FAQ").
enable_auto_refreshbooleanRe-scrape the knowledge_base_urls every 12 hours. Default: false.
file_pathsarrayLocal files to upload (PDF, TXT, MD, etc.). When connected to a host that authorizes file reads, its path permission decision applies to each path. Standalone clients require every path to resolve ins…
knowledge_base_textsarrayInline text sources to add (title + full text).
knowledge_base_urlsarrayPublic URLs to scrape into the knowledge base (e.g. "https://example.com/faq").

add_knowledge_base_sources

Add new sources (texts, URLs, or local files) to an existing knowledge base. WHEN TO USE: - Extend a knowledge base with new documents without recreating it - Add a freshly written FAQ/policy file to the agent's grounding material NOTE: At least one of knowledge_base_texts, knowledge_base_urls, or file_paths is required. After adding, the knowledge base re-processes (status "refreshing_in_progress") — poll get_knowledge_base until "complete". ERROR RECOVERY: - 401: API key is missing or invalid → configure_retell_api_key - 404: knowledge_base_id not found → list_knowledge_bases and re…

ParameterTypeDescription
knowledge_base_id *stringThe knowledge base to add sources to. Use list_knowledge_bases if unknown.
file_pathsarrayLocal files to upload (PDF, TXT, MD, etc.). When connected to a host that authorizes file reads, its path permission decision applies to each path. Standalone clients require every path to resolve ins…
knowledge_base_textsarrayInline text sources to add (title + full text).
knowledge_base_urlsarrayPublic URLs to scrape into the knowledge base (e.g. "https://example.com/faq").

list_chat_agents

List configured chat agents in your Retell account (paginated). WHEN TO USE: - Discover chat agents before reading their chats - Find chat agent IDs by name NOTE: Returns summary records (agent_id, agent_name, channel, tags, timestamps). Results are filtered to chat agents; use list_agents for voice agents. ERROR RECOVERY: - 401: API key is missing or invalid → configure_retell_api_key RELATED TOOLS: - list_agents: List voice agents instead - list_chats/get_chat: Read chat transcripts for a returned agent_id RETURNS: agents, count, pagination_key, has_more. Each agent summary includes a…

ParameterTypeDescription
limitintegerMax results (1-1000). Default: 50.
pagination_keystringPagination key from previous response for the next page.
sort_orderstringSort by last-modified time. Default: descending (most recently modified first).

list_chats

List chat sessions with filtering and pagination. Returns recent chats by default (newest first). WHEN TO USE: - Browse chat history for a chat agent - Find a chat_id before reading its full transcript with get_chat - Review chat volume over a time range FILTERING: - agent_id accepts an array of one or more agent IDs - filter_criteria timestamps accept Unix milliseconds (number) or a parseable date string (e.g. "2026-01-01"); date strings are converted to milliseconds before the API call - Example: { "limit": 20, "agent_id": ["agent_xxx"], "filter_criteria": { "after_start_timestamp": 173568…

ParameterTypeDescription
agent_idarrayFilter chats by one or more agent IDs. Must be an array, even for one agent: ["agent_xxx"].
filter_criteriaobjectTime-based filters for narrowing chat results.
limitintegerMax results (1-1000). Default: 50.
pagination_keystringPagination key from previous response for the next page.
sort_orderstringSort by start time. Default: descending (newest first).

get_chat

Get details of a specific chat including full transcript, per-message breakdown, and analysis. WHEN TO USE: - After list_chats, to read one chat's full transcript - To review chat analysis (summary, sentiment, success) for quality checks ERROR RECOVERY: - 401: API key is missing or invalid → configure_retell_api_key - 404: chat_id not found → check the ID returned by list_chats RELATED TOOLS: - list_chats: Find chat IDs - get_call: Voice-call equivalent (transcript, recording, analysis) RETURNS: chat_id, chat_status, agent_id, transcript, message_with_tool_calls, chat_analysis, start/e…

ParameterTypeDescription
chat_id *stringThe chat ID returned by list_chats.

configure_retell_api_key

Host-managed setup only. The user adds the Retell AI API key in Settings → Connectors in the app. Do not ask for or accept the key in chat. WHERE TO GET A KEY: 1. Go to https://www.retellai.com/dashboard 2. Navigate to API Keys in settings 3. Create and copy your API key All other Retell AI tools require a valid API key to work.

ParameterTypeDescription
api_key *stringRetell AI API key.