Skip to main content
Glama
MIT License
368
7
  • 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" }

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/shinzo-labs/gmail-mcp'

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