Skip to main content
Glama
apple-mail-mcp

apple-mail-mcp

by sweetrb

send-email

Destructive

Send a single email immediately to specified to/cc/bcc recipients, with optional attachments and threading headers. Requires explicit user confirmation of recipients, subject, and body before sending.

Instructions

Use when: the user has explicitly confirmed they want to send a single email now to the given recipients (to/cc/bcc are arrays), optionally with attachments, a chosen transport, and caller-built threading headers (inReplyTo/references, SMTP only). Returns: a confirmation naming the recipients and attachment count; over SMTP, also whether a Sent-folder copy was filed (sentCopy). Do not use when: the user wants to review first (use create-draft), is replying to or forwarding an existing message (use reply-to-message / forward-message — they derive recipients, threading and the quote, and also take attachments), or wants per-recipient personalized copies (use send-serial-email). Safety: this SENDS real email immediately and it cannot be unsent — require explicit user confirmation of the exact recipients, subject, and body before calling. Prefer create-draft when there is any doubt.

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": {
      "to": "<to>",
      "subject": "<subject>",
      "body": "<body>"
    },
    "name": "send-email"
  }
}

Input Schema

NameRequiredDescriptionDefault
ccNoCC recipients
toYes
bccNoBCC recipients
bodyYes
accountNoAccount to send from. AppleScript transport: a Mail account name or an exact sender address, resolved to one address and verified before sending; if it matches no enabled account, or Mail would use a different sender, nothing is sent and an error is returned. Omitted → Mail's default sender (reported back in `from`). SMTP transport: an email-form From override (see README).
replyToNoSMTP only (issue #220): sets the Reply-To header when replies should go somewhere other than the From/login address, e.g. a domain-alias setup where APPLE_MAIL_MCP_SMTP_FROM differs from APPLE_MAIL_MCP_SMTP_USER. Ignored on the AppleScript transport.
subjectYes
inReplyToNoThread this message as a reply: the parent's Message-ID token, angle brackets included (e.g. '<abc123@mail.example.com>'). Emitted verbatim as In-Reply-To, never RFC 2047-encoded. When `references` is omitted, References defaults to [inReplyTo]. Prefer reply-to-message, which derives recipients, threading and the quote from the original for you.
transportNoSend transport. 'smtp' submits clean MIME directly via SMTP, avoiding the macOS 15+ Mail.app <blockquote> wrapping (issue #12); requires APPLE_MAIL_MCP_SMTP_* env config. 'applescript' sends through Mail.app. If omitted, configured SMTP is used unless account is a Mail.app account label (for example 'Work'), which selects AppleScript. Explicit SMTP uses the configured SMTP identity; it does not resolve Mail.app account labels. Without SMTP configuration, use AppleScript.
referencesNoThread chain, oldest first: the parent's own References followed by the parent's Message-ID (each an angle-bracketed token). Emitted verbatim, never RFC 2047-encoded.
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
okNo
fromNoAppleScript transport: the sender Mail.app used
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. Changed5 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"
      +}
    • addedOutput schema / properties / sent
      Added value: +{
      +  "type": "boolean"
      +}
  2. 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"
      +}
  3. Changed1 schema field changedv2.20.31
    • changedInput schema / properties / transport / description
      Previous value: -"Send transport. 'smtp' submits clean MIME directly via SMTP, avoiding the macOS 15+ Mail.app <blockquote> wrapping (issue #12); requires APPLE_MAIL_MCP_SMTP_* env config. 'applescript' sends through Mail.app. If omitted, SMTP is used automatically when APPLE_MAIL_MCP_SMTP_* is configured, otherwise AppleScript."New value: +"Send transport. 'smtp' submits clean MIME directly via SMTP, avoiding the macOS 15+ Mail.app <blockquote> wrapping (issue #12); requires APPLE_MAIL_MCP_SMTP_* env config. 'applescript' sends through Mail.app. If omitted, configured SMTP is used unless account is a Mail.app account label (for example 'Work'), which selects AppleScript. Explicit SMTP uses the configured SMTP identity; it does not resolve Mail.app account labels. Without SMTP configuration, use AppleScript."
  4. Changed6 schema fields changedv2.20.29
    • removedInput schema / properties / references / items / $ref
      Removed value: -"#/properties/inReplyTo"
    • addedInput schema / properties / references / items / description
      Added value: +"Thread this message as a reply: the parent's Message-ID token, angle brackets included (e.g. '<abc123@mail.example.com>'). Emitted verbatim as In-Reply-To, never RFC 2047-encoded. When `references` is omitted, References defaults to [inReplyTo]. Prefer reply-to-message, which derives recipients, threading and the quote from the original for you."
    • addedInput schema / properties / references / items / maxLength
      Added value: +998
    • addedInput schema / properties / references / items / pattern
      Added value: +"^<[^<>\\s@]+@[^<>\\s@]+>$"
    • addedInput schema / properties / references / items / type
      Added value: +"string"
    • 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.16
    • changedInput schema / properties / account / description
      Previous value: -"Account to send from"New value: +"Account to send from. AppleScript transport: a Mail account name or an exact sender address, resolved to one address and verified before sending; if it matches no enabled account, or Mail would use a different sender, nothing is sent and an error is returned. Omitted → Mail's default sender (reported back in `from`). SMTP transport: an email-form From override (see README)."
    • addedOutput schema / properties / from
      Added value: +{
      +  "description": "AppleScript transport: the sender Mail.app used",
      +  "type": "string"
      +}
  6. Changed3 schema fields changedv2.20.11
    • addedInput schema / properties / inReplyTo
      Added value: +{
      +  "description": "Thread this message as a reply: the parent's Message-ID token, angle brackets included (e.g. '<abc123@mail.example.com>'). Emitted verbatim as In-Reply-To, never RFC 2047-encoded. When `references` is omitted, References defaults to [inReplyTo]. Prefer reply-to-message, which derives recipients, threading and the quote from the original for you.",
      +  "maxLength": 998,
      +  "pattern": "^<[^<>\\s@]+@[^<>\\s@]+>$",
      +  "type": "string"
      +}
    • addedInput schema / properties / references
      Added value: +{
      +  "description": "Thread chain, oldest first: the parent's own References followed by the parent's Message-ID (each an angle-bracketed token). Emitted verbatim, never RFC 2047-encoded.",
      +  "items": {
      +    "$ref": "#/properties/inReplyTo"
      +  },
      +  "maxItems": 100,
      +  "minItems": 1,
      +  "type": "array"
      +}
    • addedOutput schema / properties / messageId
      Added value: +{
      +  "type": "string"
      +}
  7. Changed3 schema fields changedv2.18.0
    • addedInput schema / properties / replyTo
      Added value: +{
      +  "description": "SMTP only (issue #220): sets the Reply-To header when replies should go somewhere other than the From/login address, e.g. a domain-alias setup where APPLE_MAIL_MCP_SMTP_FROM differs from APPLE_MAIL_MCP_SMTP_USER. Ignored on the AppleScript transport.",
      +  "type": "string"
      +}
    • 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. Changed2 schema fields changedv2.16.1
    • changedInput schema / properties / attachments / description
      Previous value: -"Files to attach: absolute paths (e.g. '/Users/me/report.pdf') and/or inline {filename, contentBase64} objects up to 25 MiB decoded each."New value: +"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."
    • changedInput schema / properties / attachments / items / anyOf
      Previous value: -[
      -  {
      -    "description": "Absolute path to an existing file",
      -    "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"
      -  }
      -]New value: +[
      +  {
      +    "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"
      +  }
      +]
  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.8.14
  12. Removedv2.8.10
  13. First observedv2.6.1

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, but the description adds genuinely new operational context: the send is immediate and cannot be unsent, and callers must obtain explicit confirmation of the exact recipients, subject, and body first. It also discloses the Sent-folder copy (sentCopy) behavior over SMTP, which the annotations do not convey. It does not discuss failure/partial-send behavior beyond the schema's account-resolution note.

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?

Four clearly labeled sections (Use when / Returns / Do not use when / Safety) make it easy to scan and front-load the precondition and safety warning. Slightly redundant to spell out return values when an output schema exists, but otherwise no wasted sentences.

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

Completeness4/5

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

For a 12-parameter destructive send tool, the description covers the decision boundary, the confirmation requirement, and the safety stakes well, and an output schema handles return shape. Gaps are minor: the composition='native-editor' opt-in and replyTo semantics are left entirely to the schema.

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 75% and the property descriptions are already detailed (account resolution, transport selection, references vs inReplyTo defaults). The description restates a few of these (to/cc/bcc as arrays, attachments, SMTP-only threading) but adds little beyond the schema beyond a pointer to reply-to-message for derived threading. Baseline 3 for high-coverage schemas.

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+resource+scope: send a single email now to given recipients with optional attachments/transport/threading headers. The 'Do not use when' list explicitly names the sibling tools (create-draft, reply-to-message, forward-message, send-serial-email) it must be distinguished from.

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 an explicit 'Use when' precondition (user has already confirmed they want to send now), an explicit 'Do not use when' list with a named alternative for each case (review-first, reply/forward, personalized copies), plus a fallback rule: 'Prefer create-draft when there is any doubt.' This is about as complete as routing guidance gets.

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