Skip to main content
Glama
apple-mail-mcp

apple-mail-mcp

by sweetrb

send-serial-email

Destructive

Sends individually personalized mail-merge emails to up to 100 recipients, replacing {{Key}} placeholders per recipient so addresses are not shared; returns a sent/failed report.

Instructions

Use when: the user has confirmed a mail-merge — sending individually personalized copies to many recipients (max 100), with {{Key}} placeholders in subject/body replaced per-recipient from each recipient's variables. Recipients do not see each other. Returns: a per-recipient sent/failed report with counts. Do not use when: sending one message to a shared recipient list (use send-email) or saving for review (use create-draft). Safety: this SENDS many real emails immediately and they cannot be unsent — require explicit user confirmation of the recipient list, the subject/body template, and the placeholder substitutions before calling.

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

Input Schema

NameRequiredDescriptionDefault
bodyYesEmail body — use {{Key}} for placeholders
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).
delayMsNoDelay between sends in ms (default: 500, max: 10000)
subjectYesSubject line — use {{Key}} for placeholders
transportNoSend transport for the whole batch. 'smtp' sends clean MIME without Mail.app quote wrapping and requires matching SMTP configuration; errors never fall back to AppleScript. SMTP accepts an allowed sender email address in account, not a Mail.app account label. 'applescript' explicitly uses Mail.app. If omitted, configured SMTP is used unless account is a Mail.app account label.
recipientsYesList of recipients with personalization variables (max 100)

Output Schema

NameRequiredDescriptionDefault
okNo
sentNo
failedNo
partialNo
resultsNo
unknownNoSubmissions with an unknown outcome, excluded from sent and failed counts.
transportNoTransport used for this batch
deliveryUnknownNoSMTP returned no definitive submission result. Verify before retrying.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv2.20.52
    • addedOutput schema / properties / deliveryUnknown
      Added value: +{
      +  "description": "SMTP returned no definitive submission result. Verify before retrying.",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / partial
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / results / items / properties / accepted
      Added value: +{
      +  "description": "Recipients accepted by the SMTP server, not final inbox delivery.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / results / items / properties / deliveryUnknown
      Added value: +{
      +  "description": "SMTP returned no definitive submission result. Verify before retrying.",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / results / items / properties / partial
      Added value: +{
      +  "description": "SMTP accepted some recipients and rejected others; do not resend to accepted recipients.",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / results / items / properties / rejected
      Added value: +{
      +  "description": "Recipients rejected by the SMTP server.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / unknown
      Added value: +{
      +  "description": "Submissions with an unknown outcome, excluded from sent and failed counts.",
      +  "type": "number"
      +}
  2. Changed2 schema fields changedv2.20.31
    • addedInput schema / properties / transport
      Added value: +{
      +  "description": "Send transport for the whole batch. 'smtp' sends clean MIME without Mail.app quote wrapping and requires matching SMTP configuration; errors never fall back to AppleScript. SMTP accepts an allowed sender email address in account, not a Mail.app account label. 'applescript' explicitly uses Mail.app. If omitted, configured SMTP is used unless account is a Mail.app account label.",
      +  "enum": [
      +    "applescript",
      +    "smtp"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / transport
      Added value: +{
      +  "description": "Transport used for this batch",
      +  "enum": [
      +    "smtp",
      +    "applescript"
      +  ],
      +  "type": "string"
      +}
  3. Changed1 schema field changedv2.20.29
    • addedInput schema / properties / recipients / items / properties / variables / propertyNames
      Added value: +{
      +  "type": "string"
      +}
  4. Changed1 schema field 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)."
  5. 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"
  6. Changed1 schema field changedv2.10.8
    • changedOutput schema / additionalProperties
      Previous value: -falseNew value: +true
  7. Addedv2.8.14
  8. Removedv2.8.10
  9. First observedv2.6.1

TDQS

A4.9/5.0
Behavior5/5

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

Goes well beyond readOnlyHint=false/destructiveHint=true by stating that emails are sent immediately and cannot be unsent, and by imposing a confirmation precondition on recipients, template, and substitutions. It also describes the return shape (per-recipient sent/failed report with counts), which the annotations cannot convey.

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?

Four labeled blocks (Use when / Returns / Do not use when / Safety) in a deliberate order, with the trigger and limit front-loaded and no filler sentences. Every line carries either a routing decision, a contract, or a safety requirement.

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 destructive, open-world batch-send tool, the description covers the confirmation requirement, recipient cap, privacy behavior, return contract, and sibling routing, while transport/account details live in the rich schema and the output shape is covered by the output schema.

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 100%, so baseline is 3; the description earns extra credit by explaining the semantic link between {{Key}} placeholders in subject/body and the per-recipient variables map, which the schema itself only hints at. It does not cover transport/account/delay semantics, but those are thoroughly documented 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?

States a specific verb and resource ('sending individually personalized copies to many recipients'), plus scope limits (max 100), placeholder substitution, and recipient privacy. It explicitly contrasts with send-email and create-draft, so an agent can pick it from 50 siblings without opening the 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?

Contains an explicit 'Use when' trigger (user has confirmed a mail-merge) and an explicit 'Do not use when' clause naming the two alternatives and the condition that selects each. Nothing is left to inference.

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