Set Email Categories
set_message_categoriesReplace, add, or remove Outlook message categories to label mail; use replace mode to set exact categories or clear them with an empty list.
Instructions
Set the categories on a message: replace them all, or add or remove some. Categories are Outlook's labels; see list_mail_categories for the defined ones.
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>",
"categories": "<categories>"
},
"name": "set_message_categories"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | replace (default) sets exactly these; add keeps the existing ones; remove takes these off | |
| mailbox | No | Email address of another mailbox to act on (delegated or shared), e.g. 'someone@example.com'. Omit for your own mailbox; required when this server signs in as an application. Only addresses this server is configured to allow will be accepted. | |
| categories | Yes | Category names. With mode replace, an empty list clears them | |
| message_id | Yes | The message ID, or a ref from scan_messages |