twilio_list_messages
Pack: twilio · Endpoint: https://gateway.pipeworx.io/twilio/mcp
List recent SMS/MMS messages from your Twilio account. Supports filtering by to/from number and pagination.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
_accountSid | string | yes | Twilio Account SID |
_authToken | string | yes | Twilio Auth Token |
limit | number | no | Max messages to return (default 20, max 100) |
to | string | no | Filter by destination phone number |
from | string | no | Filter by sender phone number |
Example call
Arguments
{
"_accountSid": "ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"_authToken": "your-twilio-auth-token",
"limit": 20
}
curl
curl -X POST https://gateway.pipeworx.io/twilio/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"twilio_list_messages","arguments":{"_accountSid":"ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","_authToken":"your-twilio-auth-token","limit":20}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('twilio_list_messages', {
"_accountSid": "ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"_authToken": "your-twilio-auth-token",
"limit": 20
});
More examples
{
"_accountSid": "ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"_authToken": "your-twilio-auth-token",
"limit": 50,
"to": "+15551234567",
"from": "+15559876543"
}
Response shape
| Field | Type | Description |
|---|---|---|
messages | array | Array of message objects |
page | integer | Current page number |
page_size | integer | Page size |
total | integer | Total number of messages |
start | integer | Start index |
end | integer | End index |
uri | string | API URI for this resource |
first_page_uri | string | URI for first page |
previous_page_uri | string | null | URI for previous page |
next_page_uri | string | null | URI for next page |
Full JSON Schema
{
"type": "object",
"properties": {
"messages": {
"type": "array",
"description": "Array of message objects",
"items": {
"type": "object",
"properties": {
"sid": {
"type": "string",
"description": "Message SID"
},
"account_sid": {
"type": "string",
"description": "Account SID"
},
"to": {
"type": "string",
"description": "Destination phone number"
},
"from": {
"type": "string",
"description": "Sender phone number"
},
"body": {
"type": "string",
"description": "Message body text"
},
"status": {
"type": "string",
"description": "Message status"
},
"date_created": {
"type": "string",
"description": "ISO 8601 creation timestamp"
},
"date_updated": {
"type": "string",
"description": "ISO 8601 update timestamp"
},
"date_sent": {
"type": "string",
"description": "ISO 8601 sent timestamp"
},
"price": {
"type": [
"string",
"null"
],
"description": "Message cost"
},
"price_unit": {
"type": "string",
"description": "Currency unit"
}
}
}
},
"page": {
"type": "integer",
"description": "Current page number"
},
"page_size": {
"type": "integer",
"description": "Page size"
},
"total": {
"type": "integer",
"description": "Total number of messages"
},
"start": {
"type": "integer",
"description": "Start index"
},
"end": {
"type": "integer",
"description": "End index"
},
"uri": {
"type": "string",
"description": "API URI for this resource"
},
"first_page_uri": {
"type": "string",
"description": "URI for first page"
},
"previous_page_uri": {
"type": [
"string",
"null"
],
"description": "URI for previous page"
},
"next_page_uri": {
"type": [
"string",
"null"
],
"description": "URI for next page"
}
}
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"twilio": {
"url": "https://gateway.pipeworx.io/twilio/mcp"
}
}
}
See Getting Started for client-specific install steps.