set_read_state
Marks an email as read or unread idempotently by identifying the message with account, mailbox, UID validity, and UID. Ensures consistent state updates without duplication.
Instructions
Set one read state idempotently.
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_id": "<account_id>",
"mailbox": "<mailbox>",
"uid_validity": "<uid_validity>",
"uid": "<uid>",
"read": "<read>"
},
"name": "set_read_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | ||
| read | Yes | ||
| mailbox | Yes | ||
| account_id | Yes | ||
| uid_validity | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | ||
| changed | Yes | ||
| enabled | Yes | ||
| identity | Yes | ||
| new_flags | Yes | ||
| old_flags | Yes |