retell_list_conversation_flows
Retrieve and view all conversation flows configured in the Retell AI platform for managing voice 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)Switch case in the executeTool function that handles execution of retell_list_conversation_flows by calling the Retell API endpoint /list-conversation-flows via GET request.case "retell_list_conversation_flows": return retellRequest("/list-conversation-flows", "GET");
- src/index.ts:840-847 (schema)Tool schema definition specifying the name, description, and empty input schema for the retell_list_conversation_flows tool.{ name: "retell_list_conversation_flows", description: "List all conversation flows.", inputSchema: { type: "object", properties: {} } },
- src/index.ts:1283-1285 (registration)MCP server request handler for listing tools, which returns the tools array containing the schema for retell_list_conversation_flows.server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools }; });
- src/index.ts:23-57 (helper)Generic retellRequest helper function that makes authenticated HTTP requests to the Retell API, used by the tool handler to fetch the list of conversation flows.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(); }