Skip to main content
Glama
s-morgan-jeffries

apple-mail-mcp

update_message

DestructiveIdempotent

Update messages: change read status, flag, and/or move in one atomic call. Specify only the fields to change for a bulk update.

Instructions

Update one or more messages: change read state, flag, and/or move, in one atomic call (#135).

Patch semantics — caller specifies only the fields to change. All specified mutations apply in a single AppleScript pass via the bulk-update helper. Replaces the previous mark_as_read, move_messages, and flag_message tools.

Order of operations (matters for IMAP): read-state and flag changes apply first (in source mailbox), then the move. IMAP requires the message to exist in the source folder for STORE before MOVE.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
accountNoAccount name or UUID hosting the destination mailbox. Required when `destination_mailbox` is set; also used with `source_mailbox` for narrow-path optimization.
flaggedNoTrue to flag (default red if no `flag_color` set), False to clear the flag, None to leave unchanged.
flag_colorNoColor name (orange, red, yellow, blue, green, purple, gray, none). Implies `flagged=True` unless "none". Validated against the existing flag-color schema.
gmail_modeNo**Deprecated and ignored (#364).** Previously selected a copy+delete strategy that silently routed Gmail moves through Trash and lost the message. The move strategy is now chosen automatically (IMAP relabel when configured; otherwise a verified AppleScript move). A Gmail label move that can't be confirmed returns `error_type: "imap_required"` — configure IMAP with `apple-mail-fast-mcp setup-imap --account <name>`. Slated for removal at v1.0.
message_idsYesList of message IDs to update.
read_statusNoTrue to mark as read, False to mark as unread, None to leave unchanged.
source_mailboxNoSource mailbox name. With `account`, narrows the AppleScript scan to one mailbox (O(N) instead of cross-scan). Required for reliable Gmail moves (the move is verified against the source).
destination_mailboxNoMove messages here (requires `account`).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

The description adds significant behavioral context beyond the annotations, including patch semantics, atomic application, order of operations (read/flag before move), and IMAP/Gmail specifics. Annotations (readOnlyHint=false, idempotentHint=true, destructiveHint=true) are consistent with the described behavior of updating and moving messages.

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

Conciseness5/5

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

The description is efficiently structured, front-loaded with the main purpose, followed by essential details on semantics, order of operations, and deprecation. Every sentence adds value, with no redundancy or fluff.

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?

Given the complexity (8 parameters, atomic operations, IMAP implications, Gmail nuances), the description covers all essential aspects: atomicity, patch semantics, order, replacement of previous tools, and deprecation info. The presence of an output schema fills any gaps about return values.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already provides detailed explanations for each parameter (e.g., account, flagged, gmail_mode). The description's mention of 'Patch semantics' adds overarching context, but does not enhance individual parameter meanings beyond what the schema already offers.

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?

The description clearly states the tool's function: 'Update one or more messages: change read state, flag, and/or move, in one atomic call.' It also explicitly distinguishes itself from sibling tools by noting it replaces previous separate tools like mark_as_read, move_messages, and flag_message.

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

Usage Guidelines4/5

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

The description provides explicit context for when to use the tool, such as atomic updates and replacing previous tools. It also details order of operations and IMAP requirements. However, it does not explicitly state when not to use it, though usage is implied for multiple updates.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/s-morgan-jeffries/apple-mail-fast-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server