Skip to main content
Glama
apple-mail-mcp

apple-mail-mcp

by sweetrb

send-saved-draft

Destructive

Previews a stored IMAP draft, then sends that exact approved revision through its matching SMTP identity; dry runs by default.

Instructions

Use when: previewing a current stored IMAP Drafts message, then submitting exactly its approved revision through a matching configured SMTP identity. dryRun defaults to true. Returns: full sender/To/Cc/Bcc/Reply-To, plain/HTML body and attachment preview with UIDVALIDITY/UID/MIME SHA-256; or explicit submitted/partial/submission_unknown/not_submitted status, accepted/rejected recipients and separate Sent-copy/cleanup results. Do not use when: the draft is non-IMAP, signed/encrypted, ambiguous, unpreviewable or lacks a matching IMAP/SMTP login. No AppleScript fallback. Safety: dryRun=false SENDS real email. Show the complete current preview and obtain explicit approval before passing its approvedSha256 and approvedUidValidity. Never retry a partial/unknown send or switch transport. Only full acknowledged acceptance permits revision-checked MOVE to Trash; MOVE support and unambiguous Trash are required for cleanup. Unverified cleanup is not confirmed removal. Repeated attempted revisions are guarded for this server process only; after restart reconcile with the provider before any retry. This tool, including preview, is disabled in no_send/read_only modes.

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": {
      "draftId": "<draftId>"
    },
    "name": "send-saved-draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
dryRunNoPreview without sending by default; false submits the approved current revision once.
draftIdYesAn imap: ID freshly listed in the account's SPECIAL-USE Drafts mailbox. Numeric IDs are refused.
approvedSha256NoCurrent stored MIME SHA-256 from preview, required to apply changes.
approvedUidValidityNoCurrent mailbox UIDVALIDITY from preview, required to apply changes.

Output Schema

NameRequiredDescriptionDefault
ccNo
toNo
bccNo
uidNo
bodyNo
fromNo
errorNo
isHtmlNo
sha256No
statusNo
draftIdNo
partialNo
replyToNo
subjectNo
successNo
acceptedNo
htmlBodyNo
rejectedNo
sentCopyNo
messageIdNo
attachmentsNo
uidValidityNo
draftRemovedNo
sentCopyErrorNo
deliveryUnknownNo
alreadyAttemptedNo
draftRemovalErrorNo
draftCleanupStatusNo
sentCopyAlreadyFiledNo
draftRemovalVerificationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.20.63

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare mutation + destructive + open-world; the description goes far beyond by disclosing dryRun's true default, that dryRun=false sends real mail, the approvedSha256/approvedUidValidity gate, that partial/unknown sends must never be retried or have transports switched, that cleanup requires MOVE plus an unambiguous Trash, that the revision guard is process-local and lost on restart, and the no_send mode disablement.

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?

Labeled blocks (Use when / Returns / Do not use when / Safety) front-load the decision-relevant content, and the density is justified by the risk profile. Minor redundancy: the dryRun default is stated in the description, the schema, and implied again in the safety block, and the Returns paragraph duplicates an existing output schema.

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 send tool this covers everything an agent needs: entry conditions, exclusions, approval protocol, failure-state handling, cleanup preconditions, restart caveat, and mode restrictions. The return-value paragraph is surplus given the output schema, but its presence harms nothing.

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 already 100%, so a 3 is the floor; the description adds real meaning by framing approvedSha256 and approvedUidValidity as proof of an explicitly approved, current revision and by reinforcing that dryRun defaults to true. It stops short of adding new syntax or edge-case semantics beyond the schema's own text.

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?

"Use when: previewing a current stored IMAP Drafts message, then submitting exactly its approved revision through a matching configured SMTP identity" names a specific two-phase verb sequence and the exact resource (IMAP Drafts message, SMTP identity), which clearly separates it from create-draft, update-saved-draft and send-email.

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 "Do not use when" block listing five disqualifying conditions (non-IMAP, signed/encrypted, ambiguous, unpreviewable, no matching IMAP/SMTP login) plus "No AppleScript fallback" and the no_send/read_only mode exclusion, so the agent knows both the entry conditions and the hard stops.

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