Gmail
v2.4.0Allow AI systems to read, send, archive, and manage emails via Gmail.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_profile Get profile
Get the current user's Gmail profile including email address
messages_list List messages
List individual messages. Consider using gmail_threads_list instead to group related messages. Use gmail_message_get to fetch full content.
| Parameter | Type | Description |
|---|---|---|
includeSpamTrash | boolean | Include messages from SPAM and TRASH |
labelIds | array | Only return messages with these label IDs |
maxResults | number | Maximum number of messages to return |
pageToken | string | Page token for pagination |
q | string | Gmail search query (e.g., "from:someone@example.com", "is:unread", "subject:hello") |
message_get Get message
Get a single message by ID. Consider using gmail_thread_get to get all messages in a conversation.
| Parameter | Type | Description |
|---|---|---|
id * | string | The ID of the message to retrieve |
format | string | The format to return the message in |
metadataHeaders | array | When format is metadata, only include these headers |
message_send Send message
Send an email message. Can also be used to reply to existing threads.
| Parameter | Type | Description |
|---|---|---|
body * | string | Email body (plain text). Used as the plain-text alternative when htmlBody is also provided. |
subject * | string | Email subject |
to * | string | Recipient email address(es), comma-separated for multiple |
bcc | string | BCC recipients, comma-separated |
cc | string | CC recipients, comma-separated |
from | string | Sender email address (for send-as aliases) |
htmlBody | string | Optional HTML body. When set alongside body, the message is sent as multipart/alternative; when set alone, as text/html. |
inReplyTo | string | Message-ID header of the message being replied to |
threadId | string | Thread ID to reply to |
message_forward Forward message
Forward an email message to new recipients, including attachments and inline images.
| Parameter | Type | Description |
|---|---|---|
id * | string | The ID of the message to forward |
to * | string | Recipient email address(es), comma-separated for multiple |
body | string | Optional message to add above the forwarded content |
from | string | Sender email address (for send-as aliases) |
message_modify Modify message labels
Modify the labels on a message. Use this to archive (remove INBOX), mark as read (remove UNREAD), star, etc.
| Parameter | Type | Description |
|---|---|---|
id * | string | The ID of the message to modify |
addLabelIds | array | Label IDs to add to the message |
removeLabelIds | array | Label IDs to remove from the message |
message_archive Archive message
Archive a message by removing the INBOX label. The message remains accessible via search or All Mail.
| Parameter | Type | Description |
|---|---|---|
id * | string | The ID of the message to archive |
message_trash Trash message
Move a message to the trash. Messages in trash are deleted after 30 days.
| Parameter | Type | Description |
|---|---|---|
id * | string | The ID of the message to trash |
message_untrash Untrash message
Remove a message from trash
| Parameter | Type | Description |
|---|---|---|
messageId * | string | The ID of the message to restore from trash |
message_delete Delete message
Permanently delete a message. This cannot be undone. Prefer gmail_message_trash for most cases.
| Parameter | Type | Description |
|---|---|---|
messageId * | string | The ID of the message to permanently delete |
messages_batch_modify Batch modify messages
Modify labels on multiple messages at once
| Parameter | Type | Description |
|---|---|---|
messageIds * | array | The IDs of messages to modify |
addLabelIds | array | Label IDs to add |
removeLabelIds | array | Label IDs to remove |
messages_batch_delete Batch delete messages
Permanently delete multiple messages. This cannot be undone.
| Parameter | Type | Description |
|---|---|---|
messageIds * | array | The IDs of messages to permanently delete |
thread_get Get thread
Get all messages in a thread (conversation). Recommended over gmail_message_get for reading emails.
| Parameter | Type | Description |
|---|---|---|
id * | string | The ID of the thread to retrieve |
format | string | The format to return messages in |
metadataHeaders | array | When format is metadata, only include these headers |
threads_list List threads
List or search email threads (conversations). Recommended over messages_list for most use cases.
| Parameter | Type | Description |
|---|---|---|
includeSpamTrash | boolean | Include spam and trash in results |
labelIds | array | Only return threads with these label IDs |
maxResults | number | Maximum number of threads to return |
pageToken | string | Page token for pagination |
q | string | Search query (same syntax as Gmail search box) |
thread_modify Modify thread
Modify labels on a thread
| Parameter | Type | Description |
|---|---|---|
threadId * | string | The ID of the thread to modify |
addLabelIds | array | Label IDs to add |
removeLabelIds | array | Label IDs to remove |
thread_trash Trash thread
Move a thread to trash
| Parameter | Type | Description |
|---|---|---|
threadId * | string | The ID of the thread to trash |
thread_untrash Untrash thread
Remove a thread from trash
| Parameter | Type | Description |
|---|---|---|
threadId * | string | The ID of the thread to restore from trash |
thread_delete Delete thread
Permanently delete a thread. This cannot be undone. Prefer gmail_thread_trash for most cases.
| Parameter | Type | Description |
|---|---|---|
threadId * | string | The ID of the thread to permanently delete |
draft_create Create draft
Create a new draft email. The draft can be edited and sent later from Gmail.
| Parameter | Type | Description |
|---|---|---|
body * | string | Email body (plain text). Used as the plain-text alternative when htmlBody is also provided. |
subject * | string | Email subject |
to * | string | Recipient email address(es), comma-separated for multiple |
attachments | array | Optional file attachments (base64-encoded) |
bcc | string | BCC recipients, comma-separated |
cc | string | CC recipients, comma-separated |
from | string | Sender email address (for send-as aliases) |
htmlBody | string | Optional HTML body. When set alongside body, the draft is multipart/alternative; when set alone, text/html. |
inReplyTo | string | Message-ID header of the message being replied to |
threadId | string | Thread ID if this is a reply draft |
draft_get Get draft
Get a specific draft by ID
| Parameter | Type | Description |
|---|---|---|
draftId * | string | The ID of the draft to retrieve |
format | string | Format of the message |
drafts_list List drafts
List all drafts
| Parameter | Type | Description |
|---|---|---|
includeSpamTrash | boolean | Include spam and trash in results |
maxResults | number | Maximum number of drafts to return |
pageToken | string | Page token for pagination |
q | string | Search query to filter drafts |
draft_update Update draft
Update an existing draft
| Parameter | Type | Description |
|---|---|---|
draftId * | string | The ID of the draft to update |
attachments | array | Optional file attachments (base64-encoded) |
bcc | string | BCC email address(es), comma-separated |
body | string | Email body (plain text). Used as the plain-text alternative when htmlBody is also provided. |
cc | string | CC email address(es), comma-separated |
from | string | Sender email address (for send-as aliases) |
htmlBody | string | Optional HTML body. When set alongside body, the draft is multipart/alternative; when set alone, text/html. |
subject | string | Email subject |
threadId | string | Thread to keep the draft in. Defaults to the draft's current thread, so reply drafts stay in their conversation. |
to | string | Recipient email address(es), comma-separated |
draft_delete Delete draft
Permanently delete a draft
| Parameter | Type | Description |
|---|---|---|
draftId * | string | The ID of the draft to delete |
draft_send Send draft
Send an existing draft
| Parameter | Type | Description |
|---|---|---|
draftId * | string | The ID of the draft to send |
labels_list List labels
List all labels in the user's mailbox. Includes both system labels (INBOX, SENT, etc.) and user-created labels.
label_get Get label
Get a specific label by ID
| Parameter | Type | Description |
|---|---|---|
labelId * | string | The ID of the label to retrieve |
label_create Create label
Create a new label
| Parameter | Type | Description |
|---|---|---|
name * | string | The display name of the label |
backgroundColor | string | Background color hex code (e.g., #16a765) |
labelListVisibility | string | Visibility in label list |
messageListVisibility | string | Visibility in message list |
textColor | string | Text color hex code (e.g., #ffffff) |
label_update Update label
Update an existing label
| Parameter | Type | Description |
|---|---|---|
labelId * | string | The ID of the label to update |
backgroundColor | string | Background color hex code (e.g., #16a765) |
labelListVisibility | string | Visibility in label list |
messageListVisibility | string | Visibility in message list |
name | string | New display name for the label |
textColor | string | Text color hex code (e.g., #ffffff) |
label_delete Delete label
Delete a label. System labels cannot be deleted.
| Parameter | Type | Description |
|---|---|---|
labelId * | string | The ID of the label to delete |
attachment_get Get attachment
Get a message attachment. Returns base64url-encoded data.
| Parameter | Type | Description |
|---|---|---|
attachmentId * | string | The ID of the attachment |
messageId * | string | The ID of the message containing the attachment |
filters_list List filters
List all email filters
filter_get Get filter
Get a specific filter by ID
| Parameter | Type | Description |
|---|---|---|
filterId * | string | The ID of the filter to retrieve |
filter_create Create filter
Create a new email filter
| Parameter | Type | Description |
|---|---|---|
addLabelIds | array | Label IDs to add |
excludeChats | boolean | Exclude chat messages |
forward | string | Email address to forward to |
from | string | Match emails from this sender |
hasAttachment | boolean | Match emails with attachments |
negatedQuery | string | Exclude emails matching this query |
query | string | Match emails matching this query (same as Gmail search) |
removeLabelIds | array | Label IDs to remove |
size | number | Match emails larger/smaller than this size (bytes) |
sizeComparison | string | Size comparison operator |
subject | string | Match emails with this subject |
to | string | Match emails to this recipient |
filter_delete Delete filter
Delete an email filter
| Parameter | Type | Description |
|---|---|---|
filterId * | string | The ID of the filter to delete |
vacation_get Get vacation settings
Get vacation auto-reply settings
vacation_set Set vacation settings
Set vacation auto-reply settings. To disable, set enableAutoReply to false.
| Parameter | Type | Description |
|---|---|---|
enableAutoReply * | boolean | Whether to enable the vacation auto-reply |
endTime | string | End time in milliseconds since epoch |
responseBodyHtml | string | HTML body for the auto-reply |
responseBodyPlainText | string | Plain text body for the auto-reply |
responseSubject | string | Subject line for the auto-reply |
restrictToContacts | boolean | Only send to people in contacts |
restrictToDomain | boolean | Only send to people in the same domain |
startTime | string | Start time in milliseconds since epoch |