Skip to main content
Glama

mail_reply

Reply to an existing email in Apple Mail, pasting text above the quoted original and optionally replying to all recipients, saving as a draft, or previewing before sending.

Instructions

Reply to an existing email. The reply text is pasted above the quoted original in a visible Mail window (System Events focus on the message body, then Command-Up and clipboard paste — not Cmd-A, which would replace the quote; AppleScript content is not set because Mail 16 leaves it empty). reply_all=true fans out to every original recipient and requires confirm=true. A real send is verified in Sent/Outbox before success. A send hang is a timeout, not TCC, unless Mail reports -1743/-10004; hang recover uses In-Reply-To. Clients must Sent-check before retrying a timed-out send. Dashes used as punctuation (em dash, en dash, a spaced hyphen) are rewritten as commas or words before anything is written; hyphens inside names and identifiers stay.

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": {
      "body": "<body>"
    },
    "name": "mail_reply"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYesReply text, prepended above the quoted original via System Events paste (required). AppleScript content is not set.
confirmNoRequired for deletes and multi-recipient sends; without it the call only previews
dry_runNoPreview only: report what would happen and change nothing (default false)
file_pathNoAlternative to message_id: the .emlx file_path from mail_search, resolved to its Message-ID
reply_allNoReply to all original recipients (default false)
message_idNoRFC822 Message-ID of the email (from mail_search / mail_read results)
save_as_draftNoSave the reply to Drafts instead of sending (default false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.8

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so thoroughly: it discloses the paste/quote-editing mechanism, the confirm gate on multi-recipient sends, Sent/Outbox verification before success, how a hang is distinguished from a TCC failure via specific Mail error codes, and the dash-rewriting side effect on the body text. This is unusually rich disclosure of side effects and failure modes.

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?

Purpose is front-loaded and nearly every sentence adds operational information an agent needs. It is dense and leans on low-level implementation detail (Command-Up, Mail 16 AppleScript behavior, -1743/-10004), which is defensible here but costs some readability.

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 7-parameter mutating tool with zero annotation coverage and no output schema, the description covers safety gating, draft alternative, verification of send, timeout semantics and retry rules, plus body-text rewriting. Nothing essential to calling it correctly 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 100%, so the baseline is 3; the description goes further by tying reply_all to the confirm requirement and explaining that body is pasted above the quoted original rather than set via AppleScript. It does not explain file_path/message_id resolution trade-offs beyond what the schema already states.

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?

Opens with a specific verb and resource ('Reply to an existing email') and immediately distinguishes itself from mail_send, mail_forward and mail_draft through the reply-specific mechanics it describes (quoted original, reply_all fan-out). An agent can tell what this does and what it does not do 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 Guidelines4/5

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

Gives concrete conditional guidance: reply_all requires confirm=true, without confirm the call only previews, dry_run reports without changing, save_as_draft diverts to Drafts, and clients must Sent-check before retrying a timed-out send. It does not explicitly route to siblings (e.g. 'use mail_send for new mail'), which keeps it short of a 5.

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