Skip to main content
Glama
MIT License
549
28
  • Apple
  • Linux

list_drafts

Retrieve and organize email drafts in Gmail by specifying search queries, limiting results, and including spam/trash or HTML body content.

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