Gmail MCP

by shinzo-labs
Verified
MIT License
126
1
  • Apple
  • Linux

update_draft

Modify draft emails by updating recipients, subject, body, or threadId. Preserves current draft details if new values are not provided, enabling precise content adjustments for Gmail drafts.

Instructions

Replace a draft's content. Note the mechanics of the threadId and raw parameters.

Input Schema

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

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "bcc": { "description": "List of BCC recipient email addresses, will be copied from the current draft if not provided", "items": { "type": "string" }, "type": "array" }, "body": { "description": "The body of the email, will be copied from the current draft if not provided", "type": "string" }, "cc": { "description": "List of CC recipient email addresses, will be copied from the current draft if not provided", "items": { "type": "string" }, "type": "array" }, "id": { "description": "The ID of the draft to update", "type": "string" }, "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, will be copied from the current draft if not provided", "type": "string" }, "threadId": { "description": "The thread ID to associate this draft with, will be copied from the current draft if not provided", "type": "string" }, "to": { "description": "List of recipient email addresses, will be copied from the current draft if not provided", "items": { "type": "string" }, "type": "array" } }, "required": [ "id" ], "type": "object" }
ID: 1je9b8hapn