Unsubscribe from a mailing list
unsubscribeRead email opt-out headers on request to check if mailmcp can send an RFC 8058 one-click POST; otherwise return the manual link. Dry run default.
Instructions
Reads unsubscribe headers. The dry run (default) says if mailmcp can send an RFC 8058 one-click POST: only if your provider verified the signer's DKIM on them and the link is on its domain; else the manual link. Only when the owner asks. Needs read (execute: unsubscribe); every plan.
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": {
"account": "<account>",
"uid": "<uid>"
},
"name": "unsubscribe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | uid from search_messages | |
| folder | No | Default: Gmail All Mail, else INBOX | |
| account | Yes | list_accounts id | |
| confirm | No | From the dry run | |
| dry_run | No | Default true |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| can_execute | Yes |