Skip to main content
Glama
apple-mail-mcp

apple-mail-mcp

by sweetrb

set-account-settings

Destructive

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

NameRequiredDescriptionDefault
accountYesAccount name or its email address (see list-accounts)
enabledNo
fullNameNo
emptyJunkOnQuitNo
emptySentOnQuitNo
emptyTrashOnQuitNo
storeJunkOnServerNo
storeSentOnServerNo
storeDraftsOnServerNo
storeDeletedOnServerNo
includeWhenGettingNewMailNo
moveDeletedMessagesToTrashNo
compactMailboxesWhenClosingNo

Output Schema

NameRequiredDescriptionDefault
accountNo
refusedNo
settingsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.20.62

TDQS

A4.7/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Goes well beyond the destructiveHint=true annotation by spelling out the concrete consequences of each dangerous value: disabling an account halts sending and receiving, moveDeletedMessagesToTrash=false makes later deletes permanent, empty*OnQuit=true purges folders, store*OnServer=false drops server copies. It also discloses partial-failure behavior ("any setting Mail refused"). The remaining gap is that it never states whether a refused setting blocks the other changes or whether omitted fields are left untouched.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with "Use when", then "Returns", "Do not use when", and "Safety" labels, so an agent can skim to the relevant block. The safety sentence is a long chain of clauses, but each clause carries a distinct irreversible consequence rather than restating the schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 13-parameter destructive mutation the description supplies trigger conditions, exclusions, per-flag risk semantics, and a confirmation requirement, while the output schema carries the return shape it nonetheless summarizes. Nothing an agent needs to call it safely and correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 8% (just the account parameter), so the description must carry the weight and largely does: it assigns meaning and consequence to enabled, fullName, includeWhenGettingNewMail, moveDeletedMessagesToTrash, the three empty*OnQuit flags, the store*OnServer family, and compactMailboxesWhenClosing. An agent can pick correct boolean values from the description alone, which the raw property names would not allow.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("change a setting of a Mail account") and then enumerates the exact setting families in scope (enabled, fullName, mail-inclusion, trash behavior, IMAP store/compact flags). The boundary against get-account-settings is implicit in "Returns: the settings read back", and the explicit out-of-scope list (password, server, port, user name, addresses) prevents confusing it with broader account administration.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides a labeled "Use when" trigger, a labeled "Do not use when" exclusion naming the exact changes that cannot be done here, and an explicit "confirm with the user first" precondition. This is the full when/when-not/alternative pattern rather than an implied usage.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.