messages_unsubscribe
Unsubscribe from the mailing list an e-mail message came from, using the sender's own List-Unsubscribe header: a one-click request when offered, else an unsubscribe e-mail sent from the same mailbox. A plain web link is returned, never opened automatically. Works on mailboxes connected over IMAP/SMTP; other channels refuse. The answer says which method was used and the sender's HTTP status.
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": {
"message_id": "<message_id>"
},
"name": "messages_unsubscribe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message_id | Yes | ID of a message from the mailing list (from messages.read_history). | |
| in_workspace | No | Run this one call in this workspace id instead of the session's. Nothing is stored; other sessions are not affected. |