KosmoKrator

productivity

Twilio MCP, CLI, and Lua Integration for AI Agents

Twilio integration docs for AI agents: MCP gateway setup, Twilio CLI commands, Lua API reference, credentials, and function schemas.

Twilio for agents

Credentials can be configured manually in web or CLI hosts.

Use this integration from Lua code mode, the headless integrations CLI, or the KosmoKrator MCP gateway. The same package metadata powers all three surfaces.

Agent Surfaces

Machine-Readable Metadata

Function Catalog

FunctionTypeParametersDescription
twilio.twilio_send_sms Write write 5 Send an SMS or MMS message via Twilio. Provide "to" and "from" phone numbers in E.164 format (e.g., "+15551234567"). Optionally include media_url for MMS and status_callback for delivery tracking.
twilio.twilio_get_message Read read 1 Retrieve a Twilio message by its SID. Returns the full message details including status, body, timestamps, and pricing.
twilio.twilio_list_messages Read read 5 List Twilio messages with optional filtering. Filter by To, From, DateSent. Use PageSize to control pagination (default 50, max 1000).
twilio.twilio_make_call Write write 5 Make an outbound voice call via Twilio. Provide a "url" that returns TwiML, or inline "twiml" to control the call. Optionally provide a status_callback URL for call progress events.
twilio.twilio_get_call Read read 1 Retrieve a Twilio call by its SID. Returns the full call details including status, duration, timestamps, and pricing.
twilio.twilio_list_calls Read read 5 List Twilio calls with optional filtering. Filter by To, From, Status. Use PageSize to control pagination (default 50, max 1000).
twilio.twilio_list_phone_numbers Read read 1 List incoming phone numbers on the Twilio account. Returns all phone numbers associated with the account, including capabilities.
twilio.twilio_get_phone_number Read read 1 Retrieve a Twilio incoming phone number by its SID. Returns phone number details including capabilities and configuration.
twilio.twilio_lookup_phone Read read 2 Lookup phone number details using the Twilio Lookup API v2. Provide a phone number in E.164 format. Optionally request additional fields like "caller_name", "line_type_intelligence", "sim_swap", or "call_forwarding".
twilio.twilio_create_usage_trigger Write write 4 Create a usage trigger on the Twilio account. Twilio will notify the callback URL when usage of the specified category exceeds the trigger value. Supports recurring triggers (daily, monthly, yearly) or one-time triggers.
twilio.twilio_list_usage_records Read read 4 List Twilio usage records with optional filtering. Filter by category and date range. Returns usage counts and pricing per category.
twilio.twilio_send_whatsapp Write write 4 Send a WhatsApp message via Twilio. Provide "to" and "from" phone numbers in E.164 format — they will automatically be prefixed with "whatsapp:". Supports text and media messages.
twilio.twilio_get_account Read read 1 Retrieve Twilio account details. Optionally provide an account SID to look up a specific subaccount, or omit to retrieve the current account.
twilio.twilio_list_recordings Read read 3 List Twilio call recordings with optional filtering. Filter by call SID, date created, or limit the number of results returned.
twilio.twilio_delete_recording Write write 1 Delete a Twilio recording by its SID. Permanently removes the recording and all associated media. This action cannot be undone.