Skip to main content
Glama

retell_delete_phone_number

Remove a phone number from your Retell AI account to release it from service, ensuring proper management of communication resources.

Instructions

Delete/release a phone number from your account.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
phone_numberYesThe phone number in E.164 format to delete

Implementation Reference

  • The execution handler for the tool within the switch statement in executeTool function. It makes a DELETE request to the Retell API endpoint `/delete-phone-number/{phone_number}` using the helper retellRequest.
    case "retell_delete_phone_number": return retellRequest(`/delete-phone-number/${encodeURIComponent(args.phone_number as string)}`, "DELETE");
  • src/index.ts:388-400 (registration)
    The tool registration in the tools array, including name, description, and input schema. This array is returned by the ListTools handler to register all available tools.
    name: "retell_delete_phone_number", description: "Delete/release a phone number from your account.", inputSchema: { type: "object", properties: { phone_number: { type: "string", description: "The phone number in E.164 format to delete" } }, required: ["phone_number"] } },
  • Input schema definition for the retell_delete_phone_number tool, specifying the required phone_number parameter.
    name: "retell_delete_phone_number", description: "Delete/release a phone number from your account.", inputSchema: { type: "object", properties: { phone_number: { type: "string", description: "The phone number in E.164 format to delete" } }, required: ["phone_number"] } },

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