Merge mail folders
merge_mail_foldersMove every message from a set of duplicate folders into one folder to keep, then delete the emptied folders. Ask the user to confirm before calling this.
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": {
"mailbox": "<mailbox>",
"folderIds": "<folderIds>",
"keepFolderId": "<keepFolderId>"
},
"name": "merge_mail_folders"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mailbox | Yes | Email address of the connected Outlook/Microsoft 365 mailbox to act on. Call list_authorized_mailboxes to see available options. | |
| folderIds | Yes | All folder IDs in the duplicate group, including the one to keep | |
| keepFolderId | Yes | The folder that should survive; the rest are emptied into it and deleted |