Skip to main content
Glama

create_draft

Create draft emails in Gmail by specifying recipients, subject, and message content. Supports CC/BCC recipients and can associate drafts with existing email threads for organized communication management.

Instructions

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

Input Schema

NameRequiredDescriptionDefault
rawNoThe entire email message in base64url encoded RFC 2822 format, ignores params.to, cc, bcc, subject, body, includeBodyHtml if provided
threadIdNoThe thread ID to associate this draft with
toNoList of recipient email addresses
ccNoList of CC recipient email addresses
bccNoList of BCC recipient email addresses
subjectNoThe subject of the email
bodyNoThe body of the email
includeBodyHtmlNoWhether to include the parsed HTML in the return for each body, excluded by default because they can be excessively large

Input Schema (JSON Schema)

{ "properties": { "bcc": { "description": "List of BCC recipient email addresses", "items": { "type": "string" }, "type": "array" }, "body": { "description": "The body of the email", "type": "string" }, "cc": { "description": "List of CC recipient email addresses", "items": { "type": "string" }, "type": "array" }, "includeBodyHtml": { "description": "Whether to include the parsed HTML in the return for each body, excluded by default because they can be excessively large", "type": "boolean" }, "raw": { "description": "The entire email message in base64url encoded RFC 2822 format, ignores params.to, cc, bcc, subject, body, includeBodyHtml if provided", "type": "string" }, "subject": { "description": "The subject of the email", "type": "string" }, "threadId": { "description": "The thread ID to associate this draft with", "type": "string" }, "to": { "description": "List of recipient email addresses", "items": { "type": "string" }, "type": "array" } }, "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/HitmanLy007/gmail-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server