Skip to main content
Glama
apple-mail-mcp

apple-mail-mcp

by sweetrb

forward-message

Destructive

Forward an existing Apple Mail message by ID to new recipients, with optional prepended text and attachments; set send=false to save a draft for review.

Instructions

Use when: forwarding an existing message (by id) to new recipients (to is an array), with an optional body to prepend and optional extra attachments (same rules as send-email). Set send=false to save as a draft. Returns: a confirmation that the message was forwarded or saved as a draft, with the attachment count; over SMTP, also whether a Sent-folder copy was filed (sentCopy). Do not use when: replying to the sender/recipients (use reply-to-message) or composing a new message (use send-email / create-draft). Safety: with the default send=true this SENDS real email immediately and cannot be unsent — require explicit user confirmation of the recipients and any prepended body, or pass send=false to let the user review.

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": {
      "id": "<id>",
      "to": "<to>"
    },
    "name": "forward-message"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
toYes
bodyNoOptional message to prepend (plain text)
sendNoSend immediately (false = save as draft)
accountNoFor a numeric id, the account it was listed from; pair with mailbox. Omit for an imap: id.
mailboxNoFor a numeric id, the exact source mailbox path; pair with account. A miss never searches elsewhere.
transportNoSMTP sends clean MIME and preserves reply threading; requires SMTP configuration. AppleScript uses Mail.app and may quote-wrap the new body on macOS 15+. Omit to prefer configured SMTP when sending; drafts use AppleScript. A selected SMTP transport never silently falls back. SMTP with send=false is rejected.
attachmentsNoFiles to attach: absolute paths in the configured attachment read roots (e.g. '/Users/me/Documents/report.pdf') and/or inline {filename, contentBase64} objects up to 25 MiB decoded each.
compositionNoOpt in to Mail's visible native editor: inserts only new prose, preserving its signature, HTML quotation and reply ancestry without the AppleScript content setter. Requires an unlocked desktop and existing Accessibility and Automation permissions. Uses Mail.app even when SMTP is configured; cannot be combined with transport=smtp or caller-built threading headers. New messages require an explicit account. Do not interact with Mail or the clipboard while it runs. Failure never falls back to another composition method or sends an unverified message.

Output Schema

NameRequiredDescriptionDefault
idNo
okNo
sentNo
partialNoSMTP accepted some recipients and rejected others; do not resend to accepted recipients.
acceptedNoRecipients accepted by the SMTP server, not final inbox delivery.
rejectedNoRecipients rejected by the SMTP server.
sentCopyNoSMTP only: whether a best-effort copy was filed to the account's Sent mailbox over IMAP (issue #220). Absent when no configured IMAP account matches the SMTP identity — not a failure, the feature simply wasn't engaged.
messageIdNo
transportNo
recipientsNo
sentCopyErrorNoPresent only when sentCopy is false: why the Sent-folder copy failed.
attachmentCountNo
deliveryUnknownNoSMTP returned no definitive submission result. Verify before retrying.
sentCopyAlreadyFiledNoPresent (true) only when sentCopy is true because the Sent mailbox already held this Message-ID (e.g. Gmail's SMTP files its own copy), so none was appended.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv2.20.52
    • addedOutput schema / properties / accepted
      Added value: +{
      +  "description": "Recipients accepted by the SMTP server, not final inbox delivery.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / deliveryUnknown
      Added value: +{
      +  "description": "SMTP returned no definitive submission result. Verify before retrying.",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / partial
      Added value: +{
      +  "description": "SMTP accepted some recipients and rejected others; do not resend to accepted recipients.",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / rejected
      Added value: +{
      +  "description": "Recipients rejected by the SMTP server.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  2. Changed2 schema fields changedv2.20.45
    • addedInput schema / properties / account
      Added value: +{
      +  "description": "For a numeric id, the account it was listed from; pair with mailbox. Omit for an imap: id.",
      +  "type": "string"
      +}
    • addedInput schema / properties / mailbox
      Added value: +{
      +  "description": "For a numeric id, the exact source mailbox path; pair with account. A miss never searches elsewhere.",
      +  "type": "string"
      +}
  3. Changed1 schema field changedv2.20.39
    • addedInput schema / properties / composition
      Added value: +{
      +  "const": "native-editor",
      +  "description": "Opt in to Mail's visible native editor: inserts only new prose, preserving its signature, HTML quotation and reply ancestry without the AppleScript content setter. Requires an unlocked desktop and existing Accessibility and Automation permissions. Uses Mail.app even when SMTP is configured; cannot be combined with transport=smtp or caller-built threading headers. New messages require an explicit account. Do not interact with Mail or the clipboard while it runs. Failure never falls back to another composition method or sends an unverified message.",
      +  "type": "string"
      +}
  4. Changed1 schema field changedv2.20.29
    • addedOutput schema / properties / sentCopyAlreadyFiled
      Added value: +{
      +  "description": "Present (true) only when sentCopy is true because the Sent mailbox already held this Message-ID (e.g. Gmail's SMTP files its own copy), so none was appended.",
      +  "type": "boolean"
      +}
  5. Changed2 schema fields changedv2.20.11
    • addedInput schema / properties / attachments
      Added value: +{
      +  "description": "Files to attach: absolute paths in the configured attachment read roots (e.g. '/Users/me/Documents/report.pdf') and/or inline {filename, contentBase64} objects up to 25 MiB decoded each.",
      +  "items": {
      +    "anyOf": [
      +      {
      +        "description": "Absolute path to an existing file in an allowed read root",
      +        "type": "string"
      +      },
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "contentBase64": {
      +            "description": "Base64-encoded file content (maximum 25 MiB decoded)",
      +            "maxLength": 69905072,
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "filename": {
      +            "description": "Filename to give the attachment",
      +            "maxLength": 255,
      +            "minLength": 1,
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "filename",
      +          "contentBase64"
      +        ],
      +        "type": "object"
      +      }
      +    ]
      +  },
      +  "maxItems": 20,
      +  "type": "array"
      +}
    • addedOutput schema / properties / attachmentCount
      Added value: +{
      +  "type": "number"
      +}
  6. Changed1 schema field changedv2.19.12
    • changedInput schema / properties / body / description
      Previous value: -"Optional message to prepend"New value: +"Optional message to prepend (plain text)"
  7. Changed2 schema fields changedv2.18.0
    • addedOutput schema / properties / sentCopy
      Added value: +{
      +  "description": "SMTP only: whether a best-effort copy was filed to the account's Sent mailbox over IMAP (issue #220). Absent when no configured IMAP account matches the SMTP identity — not a failure, the feature simply wasn't engaged.",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / sentCopyError
      Added value: +{
      +  "description": "Present only when sentCopy is false: why the Sent-folder copy failed.",
      +  "type": "string"
      +}
  8. Changed3 schema fields changedv2.17.8
    • addedInput schema / properties / transport
      Added value: +{
      +  "description": "SMTP sends clean MIME and preserves reply threading; requires SMTP configuration. AppleScript uses Mail.app and may quote-wrap the new body on macOS 15+. Omit to prefer configured SMTP when sending; drafts use AppleScript. A selected SMTP transport never silently falls back. SMTP with send=false is rejected.",
      +  "enum": [
      +    "applescript",
      +    "smtp"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / messageId
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / transport
      Added value: +{
      +  "enum": [
      +    "smtp",
      +    "applescript"
      +  ],
      +  "type": "string"
      +}
  9. Changed2 schema fields changedv2.10.24
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  10. Changed1 schema field changedv2.10.8
    • changedOutput schema / additionalProperties
      Previous value: -falseNew value: +true
  11. Addedv2.9.0
  12. Removedv2.8.10
  13. First observedv2.6.1

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations (destructiveHint=true, openWorldHint=true), the description discloses the critical behavioral fact that send=true dispatches real email immediately and cannot be unsent, and instructs the agent to obtain explicit confirmation of recipients and prepended body. It also summarizes the return contract, including the SMTP-specific sentCopy indicator, which is meaningful for the caller.

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?

It is front-loaded and labeled (Use when / Returns / Do not use when / Safety), making it skimmable, and every section maps to a real decision the agent must make. The Returns paragraph is partly redundant with the existing output schema, which is the only real padding.

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 9-parameter mutation tool with an output schema, the description covers routing, the destructive-send safety gate, the draft alternative, and the high-level return shape. The fine-grained parameter caveats (account/mailbox pairing, transport/composition exclusivity) are already carried by a rich schema, so nothing essential is missing.

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

Parameters4/5

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

Schema coverage is 78% and the schema already documents body, send, transport, attachments, and composition in depth, so the baseline is 3. The description adds genuine meaning for the two undocumented required parameters by stating the id lookup and that 'to' must be an array, and it cross-references send-email for attachment rules, though it largely restates send=false and prepend semantics already in the schema.

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 opens with a specific verb and resource: forwarding an existing message identified by id to new recipients, and clarifies that 'to' is an array. It explicitly distinguishes itself from the sibling tools reply-to-message, send-email, and create-draft, so an agent can route without opening any schema.

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?

It provides both positive and negative routing: use when forwarding by id, do not use when replying (reply-to-message) or composing new mail (send-email / create-draft), with the draft path named as send=false. This is explicit when/when-not guidance with named alternatives.

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