Skip to main content
Glama

createDraft

Composes and saves a Gmail draft with recipients, subject, body, attachments, and optional thread association, so you can prepare an email without sending it immediately.

Instructions

Create a draft email in Gmail. Note the mechanics of the raw parameter.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "createDraft"
  }
}

Input Schema

NameRequiredDescriptionDefault
ccNoList of CC recipient email addresses
toNoList of recipient email addresses. Each entry must be either 'addr@example.com' or 'Display Name <addr@example.com>'; non-ASCII display names are RFC 2047 encoded automatically. Other RFC 5322 forms (groups, comments, a quoted display name containing a '<') are sent through unencoded.
bccNoList of BCC recipient email addresses
rawNoThe entire email message in base64url encoded RFC 2822 format, ignores params.to, cc, bcc, subject, body, includeBodyHtml if provided
bodyNoThe body of the email. Supports plain text or HTML (auto-detected). Use HTML tags like <p>, <br>, <b> for formatted emails.
subjectNoThe subject of the email
threadIdNoThe thread ID to associate this draft with
attachmentsNoFile attachments to include
includeBodyHtmlNoWhether to include the parsed HTML in the return for each body

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.0-rc.1

TDQS

C2.8/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full behavioral burden, yet it discloses nothing beyond the bare action: no side effects, no permission/auth requirements, no statement about whether creating a draft notifies recipients, and no return-value context. The one behavioral hint it attempts — the "raw parameter" mechanics — is a dangling pointer that is never resolved in the text.

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

Conciseness3/5

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

It is short and front-loads the purpose, which is good, but the second sentence does not earn its place: it points at a mechanic without explaining it, adding words without information. A single clarifying sentence about raw-vs-structured precedence would have been more useful than this teaser.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a 9-parameter mutation tool with attachments, HTML body auto-detection, thread association, and an RFC 2822 raw override path, with no annotations and no output schema. A two-sentence description that never addresses parameter precedence, failure modes, or return shape is materially incomplete for that complexity.

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 schema already explains to/cc/bcc/body/attachments and even the raw override behavior, which sets the baseline at 3. The description adds no meaning of its own beyond a vague reference to "the raw parameter" that adds nothing the schema does not already state more precisely.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Create a draft email in Gmail" states a specific verb (create) and resource (draft email) plus the service, which is enough to distinguish it from the deleteDraft/getDraft/sendDraft/updateDraft siblings. It stops short of 5 because it never explicitly names the contrast with those siblings (e.g. draft vs. send).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to use this versus sendDraft, updateDraft, or createDocument-style alternatives, and no stated prerequisites (e.g. required scopes or that a draft must exist before updateDraft). "Note the mechanics of the raw parameter" gestures at a condition but never says what that condition is or when to prefer it.

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