Skip to main content
Glama

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
NameRequiredDescriptionDefault
call_idYesThe unique identifier of the call to retrieve

Implementation Reference

  • 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");
  • 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"] } },
  • 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(); }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/itsanamune/retellsimp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server