Skip to main content
Glama

Save mailbox draft

mailbox_save_draft

Create or update a draft in a mailbox without sending it; the draft is written from that mailbox's address. By default the mailbox signature is added at the end, once, and the message also goes out formatted. Explicitly choose message_format plain_text for a NEW text-only draft with the full textual signature and website links, without HTML, logo or attachments. This does not approve sending or convert an existing draft; final MIME content and recipients are still checked. A new draft takes expected_revision 0; editing one needs its id and current revision (a stale revision is refused, re-read the draft). To answer or pass on a received message, give its id as source_item_id with mode reply or forward. Attachments: attachments adds files as { filename, content_base64 }; keep_attachments lists the indexes to keep from the draft being edited or the message being forwarded (default: keep them all; a reply keeps none). Limits: 10 files, 256 KiB each, about 700 KiB in all.

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

Input Schema

NameRequiredDescriptionDefault
ccNoCopy (Cc) addresses
idNoDraft id, when editing an existing draft
toYesRecipient addresses
bccNoBlind copy (Bcc) addresses: they receive the message, and no other recipient sees them; To, Cc and Bcc together count up to 20
modeNoWith source_item_id
textYesPlain-text body
mailboxNoMailbox address (or id) from mailbox_list_accounts. Needed when the credential covers several mailboxes and has no default.
subjectYesSubject line, one line
attachmentsNoNew files as { filename, content_base64 }
message_formatNoExplicit new text-only draft with textual signature and full website links; no HTML, logo or attachments. Omit to keep the current formatted default. Not a sending approval.
source_item_idNoReceived message this draft replies to or forwards
keep_attachmentsNoAttachment indexes to keep from the edited draft or forwarded message
expected_revisionNo0 for a new draft; the draft's current revision when editing

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false, destructiveHint=false and openWorldHint=false; the description goes well beyond that with default signature insertion, formatted-default rendering, stale-revision refusal and the re-read remedy, attachment retention defaults (keep all for edit/forward, none for reply), and hard limits of 10 files, 256 KiB each, about 700 KiB total. These are operational facts an agent cannot get from the annotations.

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?

The prose is dense and front-loaded, leading with the core create/update purpose before edge cases and limits. It loses a point for repetition: the 'not a sending approval' caveat appears both in the body and again in the message_format schema text, and the format explanation is somewhat redundant with the 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 13-parameter mutation tool with no output schema, the description covers the difficult parts an agent would otherwise get wrong: revision conflicts, reply/forward sourcing, format selection, attachment retention, and size caps. 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 earns above that by explaining cross-parameter relationships the schema states only piecemeal — expected_revision 0 versus an existing draft's revision, source_item_id coupled with mode, and keep_attachments index semantics keyed to whether the source is an edited draft or a forwarded message. It adds modest but real interpretation rather than restating field descriptions.

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?

The opening clause states a specific verb and resource ('Create or update a draft in a mailbox') and immediately scopes it with 'without sending it' and 'written from that mailbox's address', which cleanly separates it from mailbox_send_draft. An agent knows exactly what this tool produces.

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 branching is provided: use message_format plain_text only for a NEW text-only draft; use source_item_id plus mode reply/forward to answer or pass on a received message; expected_revision 0 for creation versus id plus current revision for editing. It also states what the tool does NOT do ('does not approve sending or convert an existing draft'), which is a genuine exclusion.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.