Skip to main content
Glama
Thunderbird MCP by Commonpost

Thunderbird MCP by Commonpost

Save Draft

saveDraft

Save a new message to the identity's Drafts folder without sending or opening a compose window, as the compose window does; returns messageId + folderPath, for the user to review and send later (a reply or forward: replyToMessage or…

Instructions

Save a new message to the identity's Drafts folder without sending or opening a compose window, as the compose window does; returns messageId + folderPath, for the user to review and send later (a reply or forward: replyToMessage or forwardMessage with mode draft; to send now: sendMail). With draftId, rewrite that draft instead: passed fields replace, omitted ones (body, recipients, attachments, reply headers) are kept, and the old version is removed.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "saveDraft"
  }
}

Input Schema

NameRequiredDescriptionDefault
ccNoCC recipients (comma-separated)
toNoRecipient email address(es), comma-separated. Optional -- a draft can have no recipient.
bccNoBCC recipients (comma-separated)
bodyNoEmail body
fromNoSender identity (email address or identity ID from listAccounts)
isHtmlNoSet to true if body contains HTML markup (default: false). With draftId the draft keeps its format; isHtml changes it only when the whole body is replaced
draftIdNomessageId of an existing draft to edit (from saveDraft, replyToMessage/forwardMessage mode draft, or a search in Drafts)
subjectNoEmail subject line
keepQuoteNoWith draftId and body: replace only the typed text, keeping cite line, quote, forwarded message and signature
folderPathNoDrafts folder URI of draftId; searched in all Drafts folders when omitted
attachmentsNoAttachments: file paths (strings) or inline objects ({name, contentType, base64})
keepAttachmentsNoWith draftId: keep the draft's attachments (new ones are added)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.19.2
    • changedInput schema / properties / attachments / items / oneOf
      Previous value: -[
      -  {
      -    "description": "Absolute file path to attach",
      -    "type": "string"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "anyOf": [
      -      {
      -        "required": [
      -          "base64"
      -        ],
      -        "type": "object"
      -      },
      -      {
      -        "required": [
      -          "content"
      -        ],
      -        "type": "object"
      -      }
      -    ],
      -    "properties": {
      -      "base64": {
      -        "contentEncoding": "base64",
      -        "description": "Base64-encoded file content",
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "content": {
      -        "contentEncoding": "base64",
      -        "description": "Alias for base64 (accepted for backwards compatibility); base64 takes precedence when both are set",
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "contentType": {
      -        "description": "MIME type, e.g. application/pdf",
      -        "type": "string"
      -      },
      -      "name": {
      -        "description": "Attachment filename",
      -        "minLength": 1,
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "name"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "description": "Absolute file path",
      +    "type": "string"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "anyOf": [
      +      {
      +        "required": [
      +          "base64"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "required": [
      +          "content"
      +        ],
      +        "type": "object"
      +      }
      +    ],
      +    "properties": {
      +      "base64": {
      +        "contentEncoding": "base64",
      +        "description": "File content, base64",
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "content": {
      +        "contentEncoding": "base64",
      +        "description": "Old name of base64, which wins if both are set",
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "contentType": {
      +        "description": "MIME type",
      +        "type": "string"
      +      },
      +      "name": {
      +        "description": "File name",
      +        "minLength": 1,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "name"
      +    ],
      +    "type": "object"
      +  }
      +]
    • changedInput schema / properties / body / description
      Previous value: -"Email body (optional)"New value: +"Email body"
    • changedInput schema / properties / subject / description
      Previous value: -"Email subject line (optional)"New value: +"Email subject line"
    • removedInput schema / required
      Removed value: -[]
  2. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing the return values (messageId + folderPath) and precise partial-update semantics: with draftId, passed fields replace, omitted ones (body, recipients, attachments, reply headers) are kept, and the old version is removed. That 'old version is removed' clause is the kind of mutation consequence annotations do not convey; the only residual tension is that destructiveHint=false while a prior revision is discarded, though for a draft rewrite that reads as replacement rather than data loss.

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 and the no-send guarantee, then the alternative routes, then the draftId rewrite contract — a sensible priority order. It is dense and packs several parenthetical clarifications into two long sentences, which slightly taxes scanning, but nothing is filler.

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 12-parameter tool with no output schema, the description supplies what is otherwise missing: the returned identifiers, the create-vs-edit branch, and the preservation rules for omitted fields. Combined with full schema coverage, an agent has everything needed to call it correctly.

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 the baseline is 3, but the description still adds meaning the schema cannot: it explains draftId's replace/keep contract and enumerates which field groups survive an edit. It does not elaborate on keepQuote, keepAttachments, or isHtml interaction, but the schema documents those thoroughly.

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 ('Save a new message to the identity's Drafts folder') plus the key negative scope ('without sending or opening a compose window, as the compose window does'). It also exposes the two operating modes — create vs. rewrite via draftId — so an agent can distinguish it from sendMail, replyToMessage, and forwardMessage 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?

Explicit routing: 'to send now: sendMail' and 'a reply or forward: replyToMessage or forwardMessage with mode draft' name the alternatives and the condition selecting each. The second sentence adds the within-tool branch (draftId present → rewrite) with no ambiguity about which path to take.

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