Block/unblock alias contact
contact_set_blockedBlock or unblock email forwarding from a contact to an alias. Use blocked=true to stop mail or false to allow it, specifying the alias and contact IDs.
Instructions
Set whether forwarding from a contact to its alias is blocked. Pass blocked=true to stop mail from that contact reaching the user, or blocked=false to allow it again. Requires the alias_id (the contact belongs to it) so the current state can be read first: setting the state it is already in is a no-op. Returns the resulting block_forward state.
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": {
"alias_id": "<alias_id>",
"contact_id": "<contact_id>",
"blocked": "<blocked>"
},
"name": "contact_set_blocked"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| blocked | Yes | Desired state: true to block forwarding from the contact, false to allow it. | |
| alias_id | Yes | Numeric id of the alias the contact belongs to. | |
| contact_id | Yes | Numeric id of the contact to block or unblock. |