set-account-settings
Change Apple Mail account options such as enabled state, full name, new-mail inclusion, trash handling, quit-empty rules, and IMAP storage/compaction flags; returns accepted and refused values.
Instructions
Use when: the user asked to change a setting of a Mail account: turn it on or off (enabled), its full name, include it when getting new mail, move deleted messages to the Trash, empty Trash/Junk/Sent on quit, or the IMAP flags (store drafts, junk, sent, deleted on the server; compact mailboxes when closing). Returns: the settings read back, and any setting Mail refused. Do not use when: the change involves a password, server, port, user name or the account's email addresses — those cannot be changed with this tool. Safety: confirm with the user first. Turning an account off stops its mail arriving and sending; moveDeletedMessagesToTrash: false makes every later delete permanent; emptyTrashOnQuit/emptyJunkOnQuit/emptySentOnQuit: true purge those folders; storeSentOnServer/storeDeletedOnServer (and the other store…OnServer flags): false drop the server's copies.
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": "<account>"
},
"name": "set-account-settings"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | Yes | Account name or its email address (see list-accounts) | |
| enabled | No | ||
| fullName | No | ||
| emptyJunkOnQuit | No | ||
| emptySentOnQuit | No | ||
| emptyTrashOnQuit | No | ||
| storeJunkOnServer | No | ||
| storeSentOnServer | No | ||
| storeDraftsOnServer | No | ||
| storeDeletedOnServer | No | ||
| includeWhenGettingNewMail | No | ||
| moveDeletedMessagesToTrash | No | ||
| compactMailboxesWhenClosing | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | ||
| refused | No | ||
| settings | No |