Gmail MCP

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

list_drafts

Retrieve and manage draft emails from your Gmail mailbox. Filter drafts by query, include spam/trash results, and control output size. Optimize email workflow with precise draft organization.

Instructions

List drafts in the user's mailbox

Input Schema

NameRequiredDescriptionDefault
includeBodyHtmlNoWhether to include the parsed HTML in the return for each body, excluded by default because they can be excessively large
includeSpamTrashNoInclude drafts from SPAM and TRASH in the results
maxResultsNoMaximum number of drafts to return. Accepts values between 1-500
qNoOnly return drafts matching the specified query. Supports the same query format as the Gmail search box

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "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" }, "includeSpamTrash": { "description": "Include drafts from SPAM and TRASH in the results", "type": "boolean" }, "maxResults": { "description": "Maximum number of drafts to return. Accepts values between 1-500", "type": "number" }, "q": { "description": "Only return drafts matching the specified query. Supports the same query format as the Gmail search box", "type": "string" } }, "type": "object" }
ID: 1je9b8hapn