Skip to main content
Glama

Write a draft

create_draft

Write an email draft to the drafts folder without sending it, so replies or forwards can be reviewed and sent later.

Instructions

Write a draft into the drafts folder. Nothing is sent. With original_id it answers or forwards that message: the service adds recipients of a reply, the subject prefix and the quote. Recipients may stay empty. Use it instead of send_message when a person should look at the mail before it goes: send_draft sends it later. Answers the draft's id.

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_id": "<account_id>"
    },
    "name": "create_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
ccNoAddresses, plain or as Name <address>
toNoAddresses, plain or as Name <address>
bccNoAddresses, plain or as Name <address>
htmlNoThe body as HTML, for formatting. Inline styles only (style=...), since many mail programs drop <style> blocks. Without text, the text part is made from it
textNoThe body as plain text
quoteNoWith original_id: false adds nothing of the original, no quote of a reply and no forwarded message. The link to it stays
actionNoWith original_id: reply to its sender, reply_all to everyone it went to, or forward itreply
subjectNoThe subject. Left empty with original_id: the original's, after Re: or Fwd:
reply_toNoWhere answers should go instead of this account's address
account_idYesThe account, by the id list_accounts names
forward_asNoA forward: inline quotes the original below the text with its attachments, attachment attaches it unchanged as a fileinline
attach_fromNoAttachments of other mail of this account, attached as they are, before attachments. Needs the right to read that mail
attachmentsNoFiles to attach, 25 MiB together at most
original_idNoA message to answer or forward. Recipients and quote follow

Output Schema

NameRequiredDescriptionDefault
idYes
toYes
dateYes
subjectYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.8.0
    • removedOutput schema / additionalProperties
      Removed value: -true
    • addedOutput schema / description
      Added value: +"A draft in a list, or the one just written."
    • addedOutput schema / properties
      Added value: +{
      +  "date": {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "title": "Date"
      +  },
      +  "id": {
      +    "title": "Id",
      +    "type": "string"
      +  },
      +  "subject": {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "title": "Subject"
      +  },
      +  "to": {
      +    "title": "To",
      +    "type": "string"
      +  }
      +}
    • addedOutput schema / required
      Added value: +[
      +  "id",
      +  "date",
      +  "to",
      +  "subject"
      +]
    • changedOutput schema / title
      Previous value: -"create_draftDictOutput"New value: +"Draft"
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations cover the safety profile (readOnlyHint=false, destructiveHint=false), and the description adds real behavior beyond them: nothing is transmitted, the service synthesizes reply recipients, the Re:/Fwd: subject prefix, and the quote, recipients may be empty, and it returns the draft id. It stops short of mentioning that repeat invocations create separate drafts (consistent with idempotentHint=false) or any account-level authorization requirement.

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, and most sentences earn their place. A few lines are slightly compressed to the point of ambiguity ('Answers the draft's id') and the reply/forward mechanics occupy a dense block, but there is little waste.

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 a 14-parameter mutation tool the description covers the essential modes, the safety-relevant 'nothing is sent' fact, and the reply/forward derivation behavior, while the rich schema and existing output schema handle field-level and return-value details. It could add a note on repeated-call behavior given non-idempotent creation, but nothing critical 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%, so the baseline is 3 and the schema already documents quote, action, forward_as, and attachments fully. The description contributes cross-parameter interaction semantics for original_id (auto-added recipients, subject prefix, quote), which is modest added value on top of an already complete 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?

Specific verb plus resource ('Write a draft into the drafts folder') with immediate scope clarification ('Nothing is sent'). It also explains the second mode (reply/forward via original_id), so the agent knows this tool both composes and answers/forwards 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?

Explicitly routes the agent: 'Use it instead of send_message when a person should look at the mail before it goes: send_draft sends it later.' Both the alternative and the selecting condition are stated, and the no-send guarantee is stated up front.

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