Skip to main content
Glama
proton-mail-mcp

proton-mail-mcp

by sethbang

Save draft

save_draft

Save an email as a draft without sending it, placing it in the Drafts folder. Optionally replace an existing draft atomically so a failed save leaves the original intact.

Instructions

Save an email as a draft without sending it. The draft is placed in the user's \Drafts special-use folder (resolved at runtime; falls back to literal Drafts if no annotation). The destination is intentionally not caller-controlled — prior versions accepted an arbitrary folder parameter that allowed planting \Draft-flagged messages in INBOX or other paths, which was confusing to anyone scanning the mailbox.

Pass replaceDraftUid to atomically replace a previous draft instead of appending a new one — the new draft is APPENDed first, then (only on success) the old one is deleted, so a failed append leaves your original draft intact.

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>"
    },
    "name": "save_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
ccNoCC recipient(s), separated by commas or semicolons, each name@example.com or "Name" <name@example.com>
toYesRecipient email address(es), separated by commas or semicolons, each name@example.com or "Name" <name@example.com>
bccNoBCC recipient(s), separated by commas or semicolons, each name@example.com or "Name" <name@example.com>
bodyNoEmail body content (plain text or HTML). Required unless `markdownBody` is provided.
isHtmlNoWhether `body` contains HTML content
replyToNoReply-To address for the draft. The saved draft is checked: if the server didn't keep it (Bridge has dropped it in live tests), the result says `[reply-to:dropped]`, and send_draft would send without one. send_email sets it and reports whether Proton rewrote it, but can't make Proton keep it.
subjectYesEmail subject line
fromNameNoDisplay name for the From field. Rejects values containing `@` by default to prevent display-name-as-address spoofing — pass `allowAddressLikeFromName: true` to override.
attachmentsNoFile attachments: base64 `content`, or a `path` inside ALLOW_FILE_ATTACH_DIR. Proton limits a message's attachments to 25 MB.
markdownBodyNoMarkdown source — rendered to HTML before saving. Mutually exclusive with `body`/`isHtml`.
sanitizeHtmlNoRun the HTML body through a conservative allowlist (strips scripts, event handlers, inline styles, remote `<img>` beacons) before APPEND. Default `true` for safer-by-default drafts. No-op on plain-text.
replaceDraftUidNoOptional UID of a previous draft in the Drafts folder to replace. The new draft is a complete replacement: fields you leave out here (cc, bcc, replyTo...) are not carried over from the old one, so pass them again. The new draft is saved first and the old one deleted only after that succeeds. Refused when the old draft looks unrelated (different subject and no recipient in common) unless `replaceUnrelated: true`.
replaceUnrelatedNoAllow replaceDraftUid to replace a draft with a different subject and no shared recipient.
allowAddressLikeFromNameNoOpt-in escape valve for `fromName` containing `@`. Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changedv2.0.1
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / properties / attachments
      Added value: +{
      +  "description": "File attachments: base64 `content`, or a `path` inside ALLOW_FILE_ATTACH_DIR. Proton limits a message's attachments to 25 MB.",
      +  "items": {
      +    "properties": {
      +      "content": {
      +        "description": "Base64-encoded file content. Give this or `path`.",
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "contentType": {
      +        "description": "MIME type (e.g. application/pdf). Inferred from the filename when omitted.",
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "filename": {
      +        "description": "Attachment filename. Required with `content`; defaults to the file's name with `path`.",
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "path": {
      +        "description": "A file to attach, relative to the folder the user allowed with ALLOW_FILE_ATTACH_DIR. Give this or `content`.",
      +        "maxLength": 1000,
      +        "minLength": 1,
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • changedInput schema / properties / bcc / description
      Previous value: -"BCC recipient(s), comma-separated"New value: +"BCC recipient(s), separated by commas or semicolons, each name@example.com or \"Name\" <name@example.com>"
    • changedInput schema / properties / cc / description
      Previous value: -"CC recipient(s), comma-separated"New value: +"CC recipient(s), separated by commas or semicolons, each name@example.com or \"Name\" <name@example.com>"
    • changedInput schema / properties / replaceDraftUid / description
      Previous value: -"Optional UID of a previous draft in the Drafts folder to atomically replace. The new draft is APPENDed first; the old one is deleted only after the append succeeds, so a failed append never destroys the original. Errors if the UID doesn't exist in Drafts."New value: +"Optional UID of a previous draft in the Drafts folder to replace. The new draft is a complete replacement: fields you leave out here (cc, bcc, replyTo...) are not carried over from the old one, so pass them again. The new draft is saved first and the old one deleted only after that succeeds. Refused when the old draft looks unrelated (different subject and no recipient in common) unless `replaceUnrelated: true`."
    • addedInput schema / properties / replaceUnrelated
      Added value: +{
      +  "default": false,
      +  "description": "Allow replaceDraftUid to replace a draft with a different subject and no shared recipient.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / replyTo / description
      Previous value: -"Reply-To email address. Note: Proton SMTP may rewrite or ignore values that don't match authenticated identities."New value: +"Reply-To address for the draft. The saved draft is checked: if the server didn't keep it (Bridge has dropped it in live tests), the result says `[reply-to:dropped]`, and send_draft would send without one. send_email sets it and reports whether Proton rewrote it, but can't make Proton keep it."
    • removedInput schema / properties / subject / minLength
      Removed value: -1
    • changedInput schema / properties / to / description
      Previous value: -"Recipient email address(es), comma-separated"New value: +"Recipient email address(es), separated by commas or semicolons, each name@example.com or \"Name\" <name@example.com>"
  2. First observedv1.0.1

TDQS

A4.5/5.0
Behavior5/5

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

Well beyond the annotations, it discloses the APPEND-then-delete ordering and that a failed append leaves the original intact, the runtime resolution of \Drafts with a literal fallback, and the reply-to dropped behaviour reported back in the result. The only mild tension with destructiveHint=false is that replacing a draft does delete the old one, but that deletion is the explicitly requested effect, not a hidden side effect.

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?

Front-loaded with the core action, then rationale, then the replace workflow; the paragraph on the removed folder parameter is short and justifies a constraint the agent might otherwise try to work around. A sentence or two on attachments or body/markdownBody exclusivity is absent rather than wasted, so the length is justified.

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 14-parameter mutation tool with no output schema, it covers the risky and non-obvious behaviours (atomic replace, sanitisation default, address-like fromName rejection). The gap is that it never says what comes back — an agent needs the resulting draft UID to later call send_draft, and the return contract is only hinted at via the `[reply-to:dropped]` marker.

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 earns the extra point by explaining why there is no folder parameter and by spelling out that replaceDraftUid is a complete replacement — omitted cc/bcc/replyTo are not carried over. That last point is a real trap the schema wording only partially conveys.

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?

"Save an email as a draft without sending it" states a specific verb and resource and immediately draws the line against send_email/send_draft. It also pins the destination (the \Drafts special-use folder), so an agent knows exactly what this tool produces and where it lands.

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?

It explains the two decision points an agent actually faces: there is no folder choice (deliberately not caller-controlled) and replaceDraftUid is the way to avoid piling up duplicates. It never states when to prefer this over reply_email/forward_email or when a draft is the wrong choice, so there is context but no explicit exclusions.

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