retell_list_conversation_flows
Retrieve all conversation flows from Retell AI's platform to manage AI phone and chat agents.
Instructions
List all conversation flows.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:1219-1220 (handler)Handler implementation within the executeTool switch statement. Executes a GET request to the Retell API's /list-conversation-flows endpoint using the shared retellRequest helper, with no arguments required.case "retell_list_conversation_flows": return retellRequest("/list-conversation-flows", "GET");
- src/index.ts:840-847 (registration)Tool registration entry in the tools array exported for MCP's listTools handler. Defines the tool name, description, and empty input schema (no parameters required).{ name: "retell_list_conversation_flows", description: "List all conversation flows.", inputSchema: { type: "object", properties: {} } },
- src/index.ts:843-846 (schema)Input schema definition for the tool, specifying an empty object (no input parameters).inputSchema: { type: "object", properties: {} }
- src/index.ts:23-57 (helper)Shared helper function that performs authenticated HTTP requests to the Retell API. Handles authentication with RETELL_API_KEY, JSON serialization, error handling, and response parsing. Used by all Retell tool handlers including this one.async function retellRequest( endpoint: string, method: string = "GET", body?: Record<string, unknown> ): Promise<unknown> { const apiKey = getApiKey(); const headers: Record<string, string> = { "Authorization": `Bearer ${apiKey}`, "Content-Type": "application/json", }; const options: RequestInit = { method, headers, }; if (body && method !== "GET") { options.body = JSON.stringify(body); } const response = await fetch(`${RETELL_API_BASE}${endpoint}`, options); if (!response.ok) { const errorText = await response.text(); throw new Error(`Retell API error (${response.status}): ${errorText}`); } // Handle 204 No Content if (response.status === 204) { return { success: true }; } return response.json(); }