Twilio MCP Server for Cloudflare Workers
Test Twilio tools directly in your browser. Select a tool and provide inputs to see the results.
Create a free account to test Twilio tools interactively. No credit card required.
twilio_get_accountGet details of the current Twilio account. Args: - format: Response format ('json' or 'markdown') Returns: Account details including status, type, and friendly name.
twilio_update_accountUpdate the current Twilio account settings. Args: - friendlyName: (Optional) New friendly name for the account - status: (Optional) Account status - 'active', 'suspended', or 'closed' Returns: The updated account object.
twilio_list_subaccountsList all subaccounts under the main account. Args: - format: Response format ('json' or 'markdown') Returns: List of subaccounts with their details.
twilio_create_subaccountCreate a new subaccount under the main account. Subaccounts allow you to segment usage, phone numbers, and billing. Args: - friendlyName: A descriptive name for the subaccount Returns: The created subaccount object with its own SID and auth token.
twilio_make_callMake an outbound phone call via Twilio. Args: - to: Destination phone number in E.164 format - from: Your Twilio phone number in E.164 format - url: (Optional) TwiML URL for call instructions - twiml: (Optional) Inline TwiML for call instructions - timeout: (Optional) Seconds to wait for answer (default: 60) - record: (Optional) Whether to record the call - machineDetection: (Optional) 'Enable' or 'DetectMessageEnd' for AMD - statusCallback: (Optional) URL for call status webhooks Note: Either 'url' or 'twiml' must be provided. Returns: The created call object with SID and status.
twilio_list_callsList voice calls from your Twilio account. Args: - to: (Optional) Filter by destination number - from: (Optional) Filter by caller number - status: (Optional) Filter by status (queued, ringing, in-progress, completed, busy, failed, no-answer, canceled) - startTimeAfter: (Optional) Filter calls started after this date (YYYY-MM-DD) - startTimeBefore: (Optional) Filter calls started before this date - pageSize: Number of calls to return (default: 20, max: 1000) - format: Response format ('json' or 'markdown') Returns: Paginated list of calls.
twilio_get_callGet details of a specific call by SID. Args: - callSid: The call SID (starts with CA) - format: Response format ('json' or 'markdown') Returns: The call object with all details.
twilio_update_callModify an in-progress call or cancel a queued call. Args: - callSid: The call SID to modify - status: (Optional) Set to 'canceled' or 'completed' to end the call - url: (Optional) New TwiML URL for call instructions - twiml: (Optional) New inline TwiML Returns: The updated call object.
twilio_list_conversationsList all conversations in your account. Args: - format: Response format ('json' or 'markdown') Returns: List of conversations with their details.
twilio_create_conversationCreate a new conversation. Args: - friendlyName: (Optional) A descriptive name - uniqueName: (Optional) A unique identifier - messagingServiceSid: (Optional) Messaging Service for SMS participants - state: (Optional) Initial state - 'active', 'inactive', or 'closed' Returns: The created conversation object.
twilio_get_conversationGet details of a specific conversation. Args: - conversationSid: The conversation SID (starts with CH) - format: Response format ('json' or 'markdown') Returns: The conversation object with all details.
twilio_update_conversationUpdate a conversation. Args: - conversationSid: The conversation SID to update - friendlyName: (Optional) New descriptive name - uniqueName: (Optional) New unique identifier - state: (Optional) New state - 'active', 'inactive', or 'closed' Returns: The updated conversation object.
twilio_delete_conversationDelete a conversation. WARNING: This will delete all messages and participants. Args: - conversationSid: The conversation SID to delete Returns: Confirmation of deletion.
twilio_list_conversation_participantsList participants in a conversation. Args: - conversationSid: The conversation SID - format: Response format ('json' or 'markdown') Returns: List of participants in the conversation.
twilio_redact_messageRedact the body of a message (set to empty for compliance). Args: - messageSid: The message SID to redact Returns: The updated message with redacted body.
twilio_add_conversation_participantAdd a participant to a conversation. Args: - conversationSid: The conversation SID - identity: (Optional) Chat user identity - messagingBindingAddress: (Optional) SMS participant phone number - messagingBindingProxyAddress: (Optional) Twilio phone for SMS proxy For SMS participants, provide both messagingBindingAddress and messagingBindingProxyAddress. For chat participants, provide identity. Returns: The created participant object.
twilio_remove_conversation_participantRemove a participant from a conversation. Args: - conversationSid: The conversation SID - participantSid: The participant SID to remove Returns: Confirmation of removal.
twilio_list_conversation_messagesList messages in a conversation. Args: - conversationSid: The conversation SID - format: Response format ('json' or 'markdown') Returns: List of messages in the conversation.
twilio_send_conversation_messageSend a message to a conversation. Args: - conversationSid: The conversation SID - body: The message text - author: (Optional) Message author identity Returns: The created message object.
twilio_lookupLook up information about a phone number. Args: - phoneNumber: Phone number to lookup (E.164 or national format) - fields: (Optional) Data packages to include: - 'line_type_intelligence': Carrier and line type info - 'caller_name': Caller ID name (US only) - 'sim_swap': Recent SIM swap detection - 'call_forwarding': Call forwarding status - 'sms_pumping_risk': SMS fraud risk score - 'reassigned_number': Number reassignment check - countryCode: (Optional) Country code for national format numbers - format: Response format ('json' or 'markdown') Note: Some fields incur additional charges. Basic validation is free. Returns: Phone number details with requested intelligence data.
twilio_validate_phone_numberValidate a phone number format (free operation). Args: - phoneNumber: Phone number to validate - countryCode: (Optional) Country code for national format numbers - format: Response format ('json' or 'markdown') Returns: Validation result with E.164 and national format.
twilio_get_line_typeGet line type and carrier information for a phone number. Args: - phoneNumber: Phone number to lookup - format: Response format ('json' or 'markdown') Returns: Line type (mobile, landline, VoIP, etc.) and carrier details.
twilio_check_sms_pumping_riskCheck if a phone number has SMS pumping fraud risk. Args: - phoneNumber: Phone number to check - format: Response format ('json' or 'markdown') Returns: SMS pumping risk score and carrier risk category.
twilio_send_smsSend an SMS or MMS message via Twilio. Args: - to: Destination phone number in E.164 format (e.g., +15551234567) - from: Your Twilio phone number in E.164 format - body: The message text - mediaUrl: (Optional) URL(s) of media to send (for MMS) - messagingServiceSid: (Optional) Messaging Service SID instead of from number - statusCallback: (Optional) URL to receive status webhooks Returns: The created message object with SID and status.
twilio_list_messagesList SMS/MMS messages from your Twilio account. Args: - to: (Optional) Filter by destination number - from: (Optional) Filter by sender number - dateSent: (Optional) Filter by date sent (YYYY-MM-DD) - pageSize: Number of messages to return (default: 20, max: 1000) - format: Response format ('json' or 'markdown') Returns: Paginated list of messages.
twilio_get_messageGet details of a specific message by SID. Args: - messageSid: The message SID (starts with SM or MM) - format: Response format ('json' or 'markdown') Returns: The message object with all details.
twilio_delete_messageDelete a message from your account. Args: - messageSid: The message SID to delete Returns: Confirmation of deletion.
twilio_list_phone_numbersList all phone numbers in your Twilio account. Args: - format: Response format ('json' or 'markdown') Returns: List of your Twilio phone numbers with capabilities and configuration.
twilio_get_phone_numberGet details of a specific phone number by SID. Args: - phoneNumberSid: The phone number SID (starts with PN) - format: Response format ('json' or 'markdown') Returns: The phone number object with all configuration details.
twilio_search_phone_numbersSearch for available phone numbers to purchase. Args: - countryCode: ISO country code (e.g., 'US', 'GB', 'CA') - type: Number type - 'Local', 'TollFree', or 'Mobile' - areaCode: (Optional) Filter by area code - contains: (Optional) Pattern to match (e.g., '*FLOWERS*') - smsEnabled: (Optional) Filter by SMS capability - mmsEnabled: (Optional) Filter by MMS capability - voiceEnabled: (Optional) Filter by voice capability - inRegion: (Optional) Filter by state/region - inPostalCode: (Optional) Filter by postal code - nearNumber: (Optional) Find numbers near this number - pageSize: Number of results (default: 20) Returns: List of available phone numbers matching criteria.
twilio_purchase_phone_numberPurchase a phone number for your account. Args: - phoneNumber: The phone number to purchase in E.164 format - friendlyName: (Optional) A descriptive name for the number - voiceUrl: (Optional) URL to fetch TwiML for incoming calls - smsUrl: (Optional) URL to fetch TwiML for incoming SMS - statusCallback: (Optional) URL for status webhooks Returns: The purchased phone number object.
twilio_update_phone_numberUpdate configuration for a phone number. Args: - phoneNumberSid: The phone number SID to update - friendlyName: (Optional) New descriptive name - voiceUrl: (Optional) New TwiML URL for calls - voiceFallbackUrl: (Optional) Fallback TwiML URL - smsUrl: (Optional) New TwiML URL for SMS - smsFallbackUrl: (Optional) Fallback SMS URL - statusCallback: (Optional) New status webhook URL Returns: The updated phone number object.
twilio_release_phone_numberRelease (delete) a phone number from your account. WARNING: This action cannot be undone. The number will be released back to the pool. Args: - phoneNumberSid: The phone number SID to release Returns: Confirmation of release.
twilio_list_recordingsList voice recordings from your account. Args: - callSid: (Optional) Filter by call SID - conferenceSid: (Optional) Filter by conference SID - dateCreatedAfter: (Optional) Filter recordings after date (YYYY-MM-DD) - dateCreatedBefore: (Optional) Filter recordings before date - pageSize: Number of recordings to return (default: 20, max: 1000) - format: Response format ('json' or 'markdown') Returns: Paginated list of recordings.
twilio_get_recordingGet details of a specific recording. Args: - recordingSid: The recording SID (starts with RE) - format: Response format ('json' or 'markdown') Returns: The recording object with details and media URL.
twilio_delete_recordingDelete a recording from your account. WARNING: This action cannot be undone. Args: - recordingSid: The recording SID to delete Returns: Confirmation of deletion.
twilio_list_usage_recordsGet usage records for your Twilio account. Args: - category: (Optional) Filter by category: - 'calls': Voice calls - 'sms': SMS messages - 'mms': MMS messages - 'phonenumbers': Phone number charges - 'recordings': Recording storage - 'transcriptions': Transcription charges - 'totalprice': Total charges (Many more categories available) - startDate: (Optional) Start date for usage period (YYYY-MM-DD) - endDate: (Optional) End date for usage period - includeSubaccounts: (Optional) Include subaccount usage - pageSize: Number of records to return (default: 20) - format: Response format ('json' or 'markdown') Returns: Usage records with counts, usage amounts, and prices.
twilio_get_sms_usageGet SMS usage records for your account. Args: - startDate: (Optional) Start date (YYYY-MM-DD) - endDate: (Optional) End date (YYYY-MM-DD) - format: Response format ('json' or 'markdown') Returns: SMS usage with count and pricing.
twilio_get_voice_usageGet voice call usage records for your account. Args: - startDate: (Optional) Start date (YYYY-MM-DD) - endDate: (Optional) End date (YYYY-MM-DD) - format: Response format ('json' or 'markdown') Returns: Voice usage with minutes and pricing.
twilio_get_total_usageGet total usage and costs for your account. Args: - startDate: (Optional) Start date (YYYY-MM-DD) - endDate: (Optional) End date (YYYY-MM-DD) - includeSubaccounts: (Optional) Include subaccount usage - format: Response format ('json' or 'markdown') Returns: Total usage across all categories with pricing.
twilio_send_verificationSend a verification code to a phone number or email. Args: - serviceSid: Verify Service SID (starts with VA) - to: Destination phone number (E.164) or email address - channel: Delivery channel - 'sms', 'call', 'email', or 'whatsapp' - locale: (Optional) Locale for message (e.g., 'en', 'es', 'fr') - customCode: (Optional) Custom verification code (if enabled) Returns: The verification object with SID and status.
twilio_check_verificationCheck a verification code submitted by a user. Args: - serviceSid: Verify Service SID - to: Phone number or email that was verified - code: The verification code to check Returns: Verification check result with valid/invalid status.
twilio_list_verify_servicesList all Verify Services in your account. Args: - format: Response format ('json' or 'markdown') Returns: List of Verify Services with configurations.
twilio_create_verify_serviceCreate a new Verify Service. Args: - friendlyName: A descriptive name for the service - codeLength: (Optional) Length of verification code (4-10, default: 6) - lookupEnabled: (Optional) Enable phone number lookup - skipSmsToLandlines: (Optional) Skip SMS for landlines, use voice - customCodeEnabled: (Optional) Allow custom verification codes Returns: The created Verify Service object.
twilio_get_verify_serviceGet details of a Verify Service. Args: - serviceSid: The Verify Service SID - format: Response format ('json' or 'markdown') Returns: The Verify Service object with configuration.
twilio_delete_verify_serviceDelete a Verify Service. WARNING: This will delete all verification data for this service. Args: - serviceSid: The Verify Service SID to delete Returns: Confirmation of deletion.
twilio_get_account{
"format": "example_format"
}twilio_update_account{
"status": "example_status",
"friendlyName": "example_friendlyName"
}twilio_list_subaccounts{
"format": "example_format"
}