Delete a text message
delete_smsDelete one text received on the identity's number; its text body and sender number are erased from Mailrun immediately, without confirmation. Requires agent:identities.write or agent:*. The text no longer appears in list_sms or get_sms; get and repeat delete answer not_found. Pending webhook and email-copy deliveries are cancelled; a delivery already being sent may still arrive. Provider retries and Mailrun recovery do not store or deliver it again. Stored sms.received events remain with only sms_id. Carrier and provider records are unaffected. Returns the text's id and status deleted.
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>",
"sms_id": "<sms_id>"
},
"name": "delete_sms"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sms_id | Yes | Text message id from list_sms or the sms.received event. | |
| identity_id | Yes | Identity id from list_identities. |