Set Email Flags
mail_set_flagsSet read/unread and flagged status on an email by message ID, with mailbox and account auto-resolved when omitted.
Instructions
Set flagged and/or read status on an email. Mailbox and account are auto-resolved from the message ID if not provided. Use when: marking emails as read/unread, flagging important messages
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": {
"messageId": "<messageId>"
},
"name": "mail_set_flags"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| read | No | Set read status | |
| account | No | Account name. If omitted, auto-resolved from the message ID. | |
| flagged | No | Set flagged status | |
| mailbox | No | Mailbox name. If omitted, auto-resolved from the message ID. | |
| messageId | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | Yes |