Mail: Set flag
mail_set_flagMark ONE of the caller's messages read or unread, starred or unstarred. Takes the message id from mail_list_messages — the folder is read off the stored message, never guessed. Reading a message with mail_get_message does NOT mark it read; this is the only thing that does. CONFIRMATION: this tool is PROPOSED, never performed directly. You get status='confirmation_required' with an action_id and a plan_token, and the write happens only after confirm_action.
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_id": "<message_id>",
"flag": "<flag>"
},
"name": "mail_set_flag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flag | Yes | What the message should become. | |
| message_id | Yes |