unsubscribe_many
Unsubscribe from many bulk email senders in a single batched call, deduplicating by unsubscribe target instead of sender so no newsletter stream is missed. Flags senders needing a browser visit.
Instructions
Unsubscribe from many bulk senders in one call.
Deduplicates on the unsubscribe target, never on the sender: LinkedIn job alerts all arrive from one address but carry a different savedSearchId each, so skipping by sender leaves most streams subscribed while reporting success. Two messages for the same stream still carry different per-message tokens and so both get posted — a wasted request is cheaper than a missed unsubscribe.
Same per-message semantics as unsubscribe(), but the header fetch is batched and the whole sweep is one tool call instead of one per sender.
Returns {attempted, unsubscribed, needs_browser, drafted, failed,
results: [...]}. needs_browser collects the senders whose only working
route is a URL a human must open — including one-click endpoints that
rejected the POST — so nothing fails silently.
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_ids": "<message_ids>"
},
"name": "unsubscribe_many"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| execute | No | ||
| message_ids | Yes |