List text messages
list_smsText messages received on an identity's phone number, newest first: sender, time, segments and length (no text; get_sms returns text for 26 hours after Mailrun receives it, or 30 days with retain_content enabled). Filter by party (sender number); receive-only, sending texts is not available.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"identity_id": "<identity_id>"
},
"name": "list_sms"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Page size, 1-100 (default 25). | |
| party | No | Exact sender number (E.164). | |
| cursor | No | Opaque next_cursor from the previous page. | |
| identity_id | Yes | Identity id from list_identities. |