Skip to main content
Glama
Automata MCP

Automata MCP

Create email draft

create-email-draft

Save plain-text emails, including threaded replies, as unsent drafts in the Drafts folder for review and sending from a mail client; it never sends messages.

Instructions

[Email] Save a plain-text email as an unsent draft in this mailbox's Drafts folder, for the owner to review and send from their own mail client. This does NOT send anything and cannot: tell the user the draft is waiting in Drafts. When the user did not dictate the text, show it to them before saving. To reply, pass the email's emailId (from list-emails, search-emails or read-email) as replyToEmailId: the draft is threaded under it, the subject defaults to "Re: …" and the recipient to its sender. The original text is not quoted automatically — read it with read-email and include what is needed. cc and bcc are never filled in for you. The draft appears in list-emails after the next sync, within a few minutes.

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": {
      "body": "<body>"
    },
    "name": "create-email-draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
ccNoCc addresses
toNoRecipient addresses. Required unless replyToEmailId is given, which defaults it to the original sender
bccNoBcc addresses
bodyYesThe message text, plain text only
subjectNoSubject line. Defaults to "Re: <original subject>" when replying
replyToEmailIdNoThe emailId of the email this replies to, unchanged from list-emails, search-emails or read-email

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare non-read-only, non-destructive, non-idempotent, closed-world, so the safety profile is largely covered. The description still adds real behavior beyond them: nothing is quoted automatically, cc/bcc are never auto-filled, and the draft only becomes visible after the next sync within a few minutes. A point is withheld because it does not say whether a duplicate call creates a second draft or what the response contains.

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 non-sending caveat, then reply mechanics, then sync timing. Dense and mostly waste-free, though the reply paragraph packs several clauses into one block and could be split for scanability.

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 six-parameter mutation with no output schema, the definition covers outcomes (where the draft lands, when it surfaces in list-emails), reply threading, and defaulting rules. The main omission is the response shape and duplicate-draft behavior.

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, but the description genuinely enriches semantics: replyToEmailId threads the draft and defaults both subject to "Re: …" and recipient to the original sender, and it warns that cc/bcc carry no defaults. That is meaning an agent would not get from the schema field text alone.

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 concrete verb+resource ("Save a plain-text email as an unsent draft in this mailbox's Drafts folder") and immediately distinguishes itself from its send-oriented siblings by declaring "This does NOT send anything and cannot". An agent can tell apart draft creation, sending, and reading without opening a 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?

Gives explicit routing: use replyToEmailId, sourced from list-emails/search-emails/read-email, when replying; otherwise supply to/subject. It also sets a precondition ("When the user did not dictate the text, show it to them before saving") and names the follow-up tool (list-emails) for verification.

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