Skip to main content
Glama

mail_send

Send an email through Mail.app with recipient, subject, and body, verifying delivery in Sent or Outbox. Multi-recipient sends require confirmation and preview first without it.

Instructions

Send an email through Mail.app. Success requires Sent/Outbox verification, not merely an AppleScript return. Multiple recipients require confirm=true. Durable claims never expire uncertainty or automatically retry; changing/removing a key cannot bypass pending or terminal not_sent lineage. Read structuredContent.mail_send: suppression/replay is not a new delivery and cannot advance a page ledger. Legacy pending claims cannot be reconciled. A later retry after terminal not_sent needs separate protected single-use authorization, not confirm or a new key. 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": {
      "to": "<to>",
      "subject": "<subject>",
      "body": "<body>"
    },
    "name": "mail_send"
  }
}

Input Schema

NameRequiredDescriptionDefault
ccNoCC email addresses
toYesRecipient email addresses (required, at least one)
bccNoBCC email addresses
bodyYesMessage body (required)
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)
subjectYesSubject line (required)
body_formatNoPlain text (default) or HTML. HTML is tag-stripped; the body is pasted into Mail's compose window (System Events focus on the message body, then Cmd-A and clipboard paste). AppleScript content/html content is not set because it quote-wraps the Sent body
deployment_refNoProtected complete-writer-exclusion deployment proof reference for an explicitly authorized retry.
idempotency_keyNoStable delivery key. A new key may name a genuinely new delivery only after an accepted or proven-unstarted outcome; changing/removing a key cannot bypass pending or terminal not_sent lineage.
retry_authorization_refNoProtected, separately issued single-use retry approval reference. Not issued by reconciliation; unavailable without the reviewed deployment authority.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv3.3.1
    • addedInput schema / properties / deployment_ref
      Added value: +{
      +  "description": "Protected complete-writer-exclusion deployment proof reference for an explicitly authorized retry.",
      +  "type": "string"
      +}
    • changedInput schema / properties / idempotency_key / description
      Previous value: -"Stable unique delivery key. Reuse for retries of the same message; a new key represents a new intended delivery. Without a key identical accepted mail is suppressed without expiry; uncertain sends stay blocked."New value: +"Stable delivery key. A new key may name a genuinely new delivery only after an accepted or proven-unstarted outcome; changing/removing a key cannot bypass pending or terminal not_sent lineage."
    • addedInput schema / properties / retry_authorization_ref
      Added value: +{
      +  "description": "Protected, separately issued single-use retry approval reference. Not issued by reconciliation; unavailable without the reviewed deployment authority.",
      +  "type": "string"
      +}
  2. Changed1 schema field changedv3.2.3
    • addedInput schema / properties / idempotency_key
      Added value: +{
      +  "description": "Stable unique delivery key. Reuse for retries of the same message; a new key represents a new intended delivery. Without a key identical accepted mail is suppressed without expiry; uncertain sends stay blocked.",
      +  "type": "string"
      +}
  3. First observedv3.0.8

TDQS

A3.6/5.0
Behavior4/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 substantial work: it discloses that an AppleScript success return is insufficient and Sent/Outbox verification is required, that claims are durable and lineage cannot be bypassed by key changes, and that dashes in content are rewritten before writing. It omits permissions/automation-consent requirements and any rate or size limits, keeping it out of 5 territory.

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

Conciseness3/5

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

The operational constraint is front-loaded, but the body is dense jargon with compressed, hard-to-parse sentences ('suppression/replay is not a new delivery and cannot advance a page ledger', 'Legacy pending claims cannot be reconciled') that lack context. The trailing dash-rewriting paragraph is relevant but reads as bolted on rather than structured into the flow.

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?

This is a complex, high-stakes write tool with no annotations and no output schema, and the description does cover the hard parts: delivery verification, idempotency lineage, terminal failure states, and the separate retry authorization path. It even points the agent at structuredContent.mail_send for outcome reading, though the compressed claim/ledger terminology leaves some mechanism under-explained.

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 all 11 parameters including idempotency_key, retry_authorization_ref, deployment_ref, and confirm are already documented in the schema itself. The description reinforces the intent behind the idempotency/retry parameters but adds no syntax, format, or constraint detail beyond what the schema supplies, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first sentence names a specific verb and resource ('Send an email through Mail.app') and immediately adds a delivery-verification qualifier, so the agent knows what the tool accomplishes. It never distinguishes itself from close siblings like mail_draft, mail_reply, or mail_forward, which is why it stops short of a 5.

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

Usage Guidelines3/5

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

Prerequisites are stated concretely: multiple recipients require confirm=true, and a retry after terminal not_sent needs a separately issued retry_authorization_ref. However, there is no guidance on when to use this instead of mail_draft/mail_reply/mail_forward, and dry_run is never mentioned in the description despite existing in the schema.

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