Skip to main content
Glama

retell_update_phone_number

Modify phone number settings in Retell AI, including assigned agents for inbound and outbound calls, and update the nickname.

Instructions

Update settings for a phone number including assigned agents.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
phone_numberYesThe phone number in E.164 format to update
inbound_agent_idNoNew agent ID for inbound calls (null to remove)
outbound_agent_idNoNew agent ID for outbound calls (null to remove)
nicknameNoNew nickname for the phone number

Implementation Reference

  • src/index.ts:361-386 (registration)
    Tool registration in the tools array, defining name, description, and input schema for retell_update_phone_number
    { name: "retell_update_phone_number", description: "Update settings for a phone number including assigned agents.", inputSchema: { type: "object", properties: { phone_number: { type: "string", description: "The phone number in E.164 format to update" }, inbound_agent_id: { type: "string", description: "New agent ID for inbound calls (null to remove)" }, outbound_agent_id: { type: "string", description: "New agent ID for outbound calls (null to remove)" }, nickname: { type: "string", description: "New nickname for the phone number" } }, required: ["phone_number"] } },
  • Input schema definition for validating tool arguments
    inputSchema: { type: "object", properties: { phone_number: { type: "string", description: "The phone number in E.164 format to update" }, inbound_agent_id: { type: "string", description: "New agent ID for inbound calls (null to remove)" }, outbound_agent_id: { type: "string", description: "New agent ID for outbound calls (null to remove)" }, nickname: { type: "string", description: "New nickname for the phone number" } }, required: ["phone_number"] }
  • Handler logic in executeTool switch statement: extracts phone_number from args, encodes it, and sends PATCH request to Retell API's /update-phone-number endpoint with remaining update data.
    case "retell_update_phone_number": { const { phone_number, ...phoneUpdateData } = args; return retellRequest(`/update-phone-number/${encodeURIComponent(phone_number as string)}`, "PATCH", phoneUpdateData as Record<string, unknown>); }

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