Skip to main content
Glama

draft_create

Saves a new email as a draft in the account's Drafts folder across IMAP, EWS, or Graph without sending it. Compose recipients, subject, body, and attachments beforehand.

Instructions

Save a new email as a draft in the account's Drafts folder (IMAP, EWS or Graph, chosen from the account's configuration). Nothing is sent. Requires MAIL_DRAFTS_ENABLED=true.

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": "draft_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
ccNoCC recipients (optional, max 50)
toYesRecipient email addresses (1..50)
bccNoBCC recipients (optional, max 50); kept on the draft until it is sent
subjectYesEmail subject (1..998 characters)
reply_toNoReply-To address (optional)
body_htmlNoHTML body (at least one of body_text or body_html required). Separate field from `body_text`: pass the HTML itself, never wrapped in pseudo-tags like `<body_html>`; the server rejects them.
body_textNoPlain text body (at least one of body_text or body_html required). Separate field from `body_html`: never concatenate the two or wrap content in pseudo-tags like `<body_text>`; the server rejects them.
account_idNoAccount identifier (defaults to `"default"`)default
referencesNoReferences header for threading (optional)
attachmentsNoFile attachments (optional)
in_reply_toNoIn-Reply-To message ID for threading (optional)

Output Schema

NameRequiredDescriptionDefault
dataYesTool-specific data payload
metaYesExecution metadata (timestamp, duration)
summaryYesHuman-readable summary of the operation outcome

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed22 schema fields changedv0.7.1
    • removedInput schema / $defs / AttachmentInput / properties / content_base64 / nullable
      Removed value: -true
    • changedInput schema / $defs / AttachmentInput / properties / content_base64 / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / $defs / AttachmentInput / properties / content_type / nullable
      Removed value: -true
    • changedInput schema / $defs / AttachmentInput / properties / content_type / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / $defs / AttachmentInput / properties / file_path / nullable
      Removed value: -true
    • changedInput schema / $defs / AttachmentInput / properties / file_path / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / $defs / AttachmentInput / properties / filename / nullable
      Removed value: -true
    • changedInput schema / $defs / AttachmentInput / properties / filename / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / description
      Removed value: -"Input: create a draft in the account's Drafts folder\n\nThe account's configuration decides where the draft lives: EWS when the\naccount has an EWS config, Microsoft Graph when it has a Graph config,\notherwise the IMAP Drafts folder."
    • removedInput schema / properties / body_html / nullable
      Removed value: -true
    • changedInput schema / properties / body_html / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / properties / body_text / nullable
      Removed value: -true
    • changedInput schema / properties / body_text / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / properties / in_reply_to / nullable
      Removed value: -true
    • changedInput schema / properties / in_reply_to / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / properties / references / nullable
      Removed value: -true
    • changedInput schema / properties / references / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / properties / reply_to / nullable
      Removed value: -true
    • changedInput schema / properties / reply_to / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / title
      Removed value: -"DraftCreateInput"
    • removedOutput schema / description
      Removed value: -"Standard response envelope for all tools\n\nWraps tool-specific data with human-readable summary and execution metadata.\nThis structure provides consistent response shape across all MCP tools."
    • removedOutput schema / title
      Removed value: -"ToolEnvelope"
  2. Changed2 schema fields changedv0.6.0
    • changedInput schema / properties / body_html / description
      Previous value: -"HTML body (at least one of body_text or body_html required)"New value: +"HTML body (at least one of body_text or body_html required).\nSeparate field from `body_text`: pass the HTML itself, never wrapped\nin pseudo-tags like `<body_html>`; the server rejects them."
    • changedInput schema / properties / body_text / description
      Previous value: -"Plain text body (at least one of body_text or body_html required)"New value: +"Plain text body (at least one of body_text or body_html required).\nSeparate field from `body_html`: never concatenate the two or wrap\ncontent in pseudo-tags like `<body_text>`; the server rejects them."
  3. Addedv0.5.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false and openWorldHint=true. The description adds real context beyond that: no message is transmitted, the protocol backend is chosen from account configuration, and a feature flag must be enabled. It doesn't warn that repeated calls create duplicate drafts (consistent with idempotentHint=false), which would have earned a 5.

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?

Two clauses, zero waste: the action and destination come first, the non-sending guarantee and the gating flag follow. Every sentence earns its place.

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 an 11-parameter mutation with a rich schema, an output schema, and full annotations, the description covers the essential unknowns (nothing sent, backend chosen by config, feature flag). It omits what the agent gets back and the follow-up path to draft_send/draft_update, though the output schema partly compensates.

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%, with per-field descriptions covering recipient limits, body_text/body_html exclusivity, attachment input modes, and threading headers. The description adds no parameter-level meaning beyond the schema, so 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 a new email as a draft in the account's Drafts folder'), scopes it to the account, and parenthetically explains the backend selection (IMAP, EWS or Graph). Combined with 'Nothing is sent', an agent can readily separate this from draft_send or imap_append_message.

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?

Gives a clear condition for use via the prerequisite 'Requires MAIL_DRAFTS_ENABLED=true' and rules out the sending path with 'Nothing is sent', implying draft_send is the alternative. It stops short of naming siblings or stating exclusions explicitly, so not a 5.

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