Provenance
Freshness & coverage
Methods (10)
listMessages
readList Gmail messages with optional Gmail search syntax.
Input schema
{ "type": "object", "properties": { "q": { "type": "string", "description": "Gmail search query." }, "maxResults": { "type": "number", "description": "Maximum messages to return." }, "pageToken": { "type": "string", "description": "Pagination token." }, "labelIds": { "type": "array", "description": "Optional Gmail label IDs.", "items": { "type": "string" } } }, "additionalProperties": true }getMessage
readFetch one Gmail message by ID.
Required paramsidInput schema
{ "type": "object", "properties": { "id": { "type": "string", "description": "Gmail message ID." }, "format": { "type": "string", "description": "Response format such as full, metadata, or raw." } }, "required": [ "id" ], "additionalProperties": true }listThreads
readList Gmail conversation threads with optional Gmail search syntax.
Input schema
{ "type": "object", "properties": { "q": { "type": "string", "description": "Gmail search query." }, "maxResults": { "type": "number", "description": "Maximum threads to return." }, "pageToken": { "type": "string", "description": "Pagination token." } }, "additionalProperties": true }listLabels
readList Gmail labels for the current mailbox.
Input schema
{ "type": "object", "properties": {}, "additionalProperties": true }getProfile
readReturn the authenticated mailbox profile (email address, message totals).
Input schema
{ "type": "object", "properties": {}, "additionalProperties": true }sendEmail
writeSend an email from the authenticated user's Gmail account.
Required paramstosubjectbodyInput schema
{ "type": "object", "properties": { "to": { "description": "Recipient email address(es).", "oneOf": [ { "type": "string" }, { "type": "array", "items": { "type": "string" } } ] }, "cc": { "description": "Optional CC recipients.", "oneOf": [ { "type": "string" }, { "type": "array", "items": { "type": "string" } } ] }, "bcc": { "description": "Optional BCC recipients.", "oneOf": [ { "type": "string" }, { "type": "array", "items": { "type": "string" } } ] }, "from": { "type": "string", "description": "Optional From header." }, "subject": { "type": "string", "description": "Email subject." }, "body": { "type": "string", "description": "Email body (plain text or HTML)." }, "isHtml": { "type": "boolean", "description": "Set true to send an HTML body." } }, "required": [ "to", "subject", "body" ], "additionalProperties": true }createDraft
writeCreate a Gmail draft without sending it.
Required paramstosubjectbodyInput schema
{ "type": "object", "properties": { "to": { "description": "Recipient email address(es).", "oneOf": [ { "type": "string" }, { "type": "array", "items": { "type": "string" } } ] }, "cc": { "description": "Optional CC recipients.", "oneOf": [ { "type": "string" }, { "type": "array", "items": { "type": "string" } } ] }, "bcc": { "description": "Optional BCC recipients.", "oneOf": [ { "type": "string" }, { "type": "array", "items": { "type": "string" } } ] }, "from": { "type": "string", "description": "Optional From header." }, "subject": { "type": "string", "description": "Draft subject." }, "body": { "type": "string", "description": "Draft body (plain text or HTML)." }, "isHtml": { "type": "boolean", "description": "Set true to save an HTML body." } }, "required": [ "to", "subject", "body" ], "additionalProperties": true }deleteMessage
writePERMANENTLY delete a Gmail message by ID — message is gone forever, NOT moved to Trash. Use trashMessage for the standard "move to trash" semantics, or modifyLabels to archive.
Required paramsidInput schema
{ "type": "object", "properties": { "id": { "type": "string", "description": "Gmail message ID to permanently delete." } }, "required": [ "id" ], "additionalProperties": true }trashMessage
unknownMove a Gmail message to the Trash folder. Reversible — Gmail purges trashed messages after 30 days. Use this for "move to trash" / "delete" intents from end users.
Required paramsidInput schema
{ "type": "object", "properties": { "id": { "type": "string", "description": "Gmail message ID to move to Trash." } }, "required": [ "id" ], "additionalProperties": true }modifyLabels
writeAdd and/or remove labels on a Gmail message (e.g. remove INBOX to archive, add STARRED to star).
Required paramsidInput schema
{ "type": "object", "properties": { "id": { "type": "string", "description": "Gmail message ID." }, "addLabelIds": { "type": "array", "description": "Label IDs to add.", "items": { "type": "string" } }, "removeLabelIds": { "type": "array", "description": "Label IDs to remove.", "items": { "type": "string" } } }, "required": [ "id" ], "additionalProperties": true }
