retell_get_call
Retrieve call details including transcript, recording URL, duration, and analysis for specific calls in the Retell AI platform.
Instructions
Retrieve details of a specific call including transcript, recording URL, duration, and analysis.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| call_id | Yes | The unique identifier of the call to retrieve |
Implementation Reference
- src/index.ts:1127-1128 (handler)Handler implementation for the retell_get_call tool. It extracts the call_id from arguments and makes a GET request to the Retell API endpoint /v2/get-call/{call_id} using the shared retellRequest helper.case "retell_get_call": return retellRequest(`/v2/get-call/${args.call_id}`, "GET");
- src/index.ts:117-126 (schema)Input schema definition for the retell_get_call tool, specifying that a string 'call_id' is required.inputSchema: { type: "object", properties: { call_id: { type: "string", description: "The unique identifier of the call to retrieve" } }, required: ["call_id"] }
- src/index.ts:114-127 (registration)Tool registration entry in the 'tools' array, which is returned by the ListToolsRequest handler in the MCP server.{ name: "retell_get_call", description: "Retrieve details of a specific call including transcript, recording URL, duration, and analysis.", inputSchema: { type: "object", properties: { call_id: { type: "string", description: "The unique identifier of the call to retrieve" } }, required: ["call_id"] } },
- src/index.ts:23-57 (helper)Generic HTTP client helper for Retell API requests, handling authentication, JSON serialization, error handling, and response parsing. Used by the tool handler.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(); }