Skip to main content
Glama

retell_get_concurrency

Check current concurrent call limits and usage for your Retell AI account to monitor agent capacity and plan scaling.

Instructions

Check the current concurrent call limits and usage for your account.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Defines the tool name, description, and input schema (empty, no parameters required). This object is part of the tools array used for tool listing.
    { name: "retell_get_concurrency", description: "Check the current concurrent call limits and usage for your account.", inputSchema: { type: "object", properties: {} } },
  • The switch case in executeTool function that handles execution of retell_get_concurrency by calling the retellRequest helper with the specific API endpoint.
    case "retell_get_concurrency": return retellRequest("/get-concurrency", "GET");
  • Generic HTTP request helper that authenticates with Retell API key and makes requests to specified endpoints. This implements the core API call logic for the tool.
    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(); }
  • src/index.ts:1283-1285 (registration)
    Registers the request handler for listing all tools, which includes retell_get_concurrency via the tools array.
    server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools }; });
  • src/index.ts:1287-1313 (registration)
    Registers the general tool execution handler that dispatches to executeTool based on tool name, handling retell_get_concurrency among others.
    // Register tool execution handler server.setRequestHandler(CallToolRequestSchema, async (request) => { const { name, arguments: args } = request.params; try { const result = await executeTool(name, args as Record<string, unknown>); return { content: [ { type: "text", text: JSON.stringify(result, null, 2), }, ], }; } catch (error) { const errorMessage = error instanceof Error ? error.message : String(error); return { content: [ { type: "text", text: `Error: ${errorMessage}`, }, ], isError: true, }; } });

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