Skip to main content
Glama

create_draft

Compose and save an email or threaded reply as a draft without sending it; returns a draft ID for sending or deleting later.

Instructions

Write an email and save it as a draft without sending it — the normal composition path for mail intended for anyone. Also how to compose a REPLY: pass thread_id, plus in_reply_to and references from get_email_thread, so it threads correctly instead of starting a new conversation. Returns a draft_id usable with send_draft or delete_drafts.

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": {
      "account": "<account>",
      "to": "<to>",
      "subject": "<subject>",
      "body": "<body>"
    },
    "name": "create_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
ccNoOptional CC list.
toYesRecipient email address(es).
bccNoOptional BCC list.
bodyYesEmail body as plain text. Blank lines separate paragraphs; a single newline is a line break; lines starting with "-" or "1." become bullet/numbered lists. Do NOT pass HTML — matching text/plain and text/html parts are generated from this one string, and "<", ">" and "&" are escaped so they render literally.
accountYesAccount id ("personal", "tamu").
subjectYesEmail subject.
thread_idNoOptional Gmail thread ID. When set, the draft is created as a reply in that thread.
referencesNoOptional RFC 2822 References header value for threading.
attachmentsNoOptional local file attachments.
in_reply_toNoOptional RFC 2822 Message-ID of the email being replied to. Sets the In-Reply-To header for proper threading.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.2

TDQS

A4.5/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=false and destructiveHint=false; the description adds the meaningful behavior that nothing is sent and a draft_id is produced, and it explains the threading mechanics (thread_id plus in_reply_to/references from get_email_thread) needed to avoid starting a new conversation. It does not discuss account-mismatch errors or rate limits, but the essential mutation semantics are disclosed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, each front-loaded with its purpose, alternative, or return contract; no filler. The reply instruction is placed immediately after the primary behavior where it is most needed.

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?

With 10 parameters but full schema coverage and no output schema, the description supplies exactly the missing pieces: the send/no-send contract, the threading recipe, and the draft_id return value used by sibling tools. Nothing an agent needs to invoke it correctly is absent.

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, and the description earns above that by explaining how thread_id, in_reply_to, and references must be combined for reply composition — meaning not conveyed by the schema's per-field notes alone. Other parameters (to, subject, body, attachments) are left entirely to the schema.

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 ('Write an email and save it as a draft') with the key scope constraint (without sending it), which separates it from send_message/send_draft. It also covers the reply variant explicitly, so an agent knows this tool serves both new composition and threaded replies.

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?

Frames itself as 'the normal composition path' and names send_draft/delete_drafts as the follow-up tools that consume the returned draft_id, plus points to get_email_thread as the source of threading values. There is no explicit statement of when NOT to use it (e.g. use send_message to deliver immediately), so it falls just short of full routing guidance.

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