block_sender
Block a sender by creating a Gmail filter, optionally trashing existing mail from that sender to reduce inbox clutter.
Instructions
Block a sender by creating a Gmail filter (same mechanism as Gmail's native "Block" button). Optionally also trashes existing mail from that sender.
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>",
"sender": "<sender>"
},
"name": "block_sender"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | What to do with matching mail. "trash" (default) mirrors Gmail's Block button. | trash |
| sender | Yes | Email address (e.g. "spam@foo.com"), domain ("@foo.com"), or Gmail search fragment ("from:x subject:promo"). | |
| account | Yes | Account id. | |
| also_trash_existing | No | If true (default), retroactively trashes up to 100 existing messages from this sender. |