Skip to main content
Glama

Gmail Save Draft

gmail_save_draft

Save an email as a Gmail draft instead of sending it, so you can review or edit before delivery. Omit the draft ID to create a new draft, or pass one to rewrite an existing draft.

Instructions

Save mail as a Gmail draft without sending it, so the user can review or edit it in Gmail first: a new draft, or with draft_id a full rewrite of an existing one (pass again everything to keep). Send it later with gmail_send_draft; gmail_send_email sends right away, and gmail_reply replies in a thread right away with the reply recipients filled in. Returns status 'ok', mode ('created' or 'updated') and draft: id (the draft_id the other draft tools take), message_id, thread_id and label_ids.

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": {
      "subject": "<subject>"
    },
    "name": "gmail_save_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
ccNoCarbon-copy recipient email addresses, visible to every recipient.
toNoPrimary recipient email addresses, e.g. ['ana@example.com']; may be left empty and filled in later. When rewriting, recipients left out are removed.
bccNoBlind-copy recipient email addresses, hidden from the other recipients.
subjectYesSubject line; non-ASCII text is encoded automatically.
draft_idNoID of an existing draft to rewrite (from gmail_list_drafts): its recipients, subject, body and attachments are all replaced by this call. Omit to create a new draft.
html_bodyNoHTML body, sent as an alternative to text_body; without text_body the plain-text part is the placeholder 'This message contains HTML content.'
text_bodyNoPlain-text body. Pass it together with html_body to send both versions; with neither, the body is empty.
thread_idNoGmail thread to file the draft under as a reply (thread_id from search or read results): In-Reply-To and References point at the thread's latest message, so keep the thread's subject for Gmail to join it.
attachmentsNoFiles to attach, each with exactly one source: uploaded_file (an upload handle from uploads_file_manager) or file_path (local stdio servers only). When rewriting a draft, attachments already on it are dropped unless passed again.

Output Schema

NameRequiredDescriptionDefault
modeNo
draftNoThe saved draft.
statusNoMachine-readable operation status.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.2.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations declare a non-readonly, non-destructive, non-idempotent, open-world write, so the safety profile is already carried. The description adds genuinely useful behavior: the rewrite mode replaces the existing draft wholesale ('pass again everything to keep'), the call never sends, and it names the returned status/mode/draft identifiers. Minor gap: no mention of auth/permission requirements or rate limits on a mutation tool.

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?

One dense paragraph, front-loaded with the core action and scope before alternatives, and every clause is informative. It is a little overpacked and spends trailing space enumerating return fields that the output schema already covers.

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 9-parameter mutation tool with siblings that differ only by send timing, the definition covers create vs rewrite semantics, sibling dispatch, the destructive-rewrite pitfall, and return identifiers. Because an output schema exists, the return-value sentence is redundant rather than necessary, but nothing an agent needs to call this correctly is missing.

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% and the schema itself is unusually thorough (per-parameter descriptions, the oneOf attachment source rule, the drop-on-rewrite notes). The description's 'pass again everything to keep' restates what the draft_id and attachments schema fields already say, so it adds little meaning beyond the schema. Baseline 3 applies.

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 mail as a Gmail draft') with the crucial negative scope 'without sending it', and immediately distinguishes the create mode from the draft_id rewrite mode. An agent can tell this apart from gmail_send_draft, gmail_send_email and gmail_reply without opening any 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?

Explicitly routes dispatch: 'Send it later with gmail_send_draft; gmail_send_email sends right away, and gmail_reply replies in a thread right away with the reply recipients filled in.' It also says when to use draft_id versus omitting it, which is the real decision point for this tool.

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

Deploy Server

Other Tools