Sign in, add Gmail in Apps, then choose the account your AI can use.
Get started with Gmail
- Add Gmail to your Weavz workspace and connect the account you want to use.
- Review the available tools below and enable the actions your task needs. Check the account permissions before allowing changes.
- Connect a compatible AI client to your workspace, or use the actions API from your application.
Tools
| Name | Description |
|---|---|
List Messages list_messagesList email messages in the mailbox | List email messages in the mailbox |
Get Message get_messageGet a specific email message with full content. Note: attachment data is returned in URL-safe base64 (RFC 4648 §5) — use forward_email to forward with attachments correctly. | Get a specific email message with full content. Note: attachment data is returned in URL-safe base64 (RFC 4648 §5) — use forward_email to forward with attachments correctly. |
Send Email send_emailSend an email message | Send an email message |
Reply to Email reply_to_emailSend a reply to an existing email thread | Send a reply to an existing email thread |
Forward Email forward_emailForward an email to another recipient, preserving all attachments. Handles base64 encoding conversion automatically so attachments are never corrupted. | Forward an email to another recipient, preserving all attachments. Handles base64 encoding conversion automatically so attachments are never corrupted. |
Modify Labels modify_labelsAdd and/or remove Gmail labels from one email message in a single call. | Add and/or remove Gmail labels from one email message in a single call. |
Batch Modify Messages batch_modify_messagesAdd and/or remove labels from multiple Gmail messages in one efficient API call. | Add and/or remove labels from multiple Gmail messages in one efficient API call. |
Batch Delete Messages batch_delete_messagesPermanently delete multiple Gmail messages. This bypasses Trash and cannot be undone. | Permanently delete multiple Gmail messages. This bypasses Trash and cannot be undone. |
Trash Message trash_messageMove an email message to Gmail Trash. | Move an email message to Gmail Trash. |
Untrash Message untrash_messageRestore an email message from Gmail Trash. | Restore an email message from Gmail Trash. |
Delete Message delete_messagePermanently delete a Gmail message. This bypasses Trash and cannot be undone. | Permanently delete a Gmail message. This bypasses Trash and cannot be undone. |
Get Attachment get_attachmentRetrieve a Gmail attachment by message ID and attachment ID. | Retrieve a Gmail attachment by message ID and attachment ID. |
List Threads list_threadsList Gmail conversation threads with optional search and label filtering. | List Gmail conversation threads with optional search and label filtering. |
Get Thread get_threadGet a Gmail thread and its messages. | Get a Gmail thread and its messages. |
Modify Thread Labels modify_thread_labelsAdd and/or remove labels from all messages in a Gmail thread. | Add and/or remove labels from all messages in a Gmail thread. |
Trash Thread trash_threadMove a Gmail thread to Trash. | Move a Gmail thread to Trash. |
Untrash Thread untrash_threadRestore a Gmail thread from Trash. | Restore a Gmail thread from Trash. |
Delete Thread delete_threadPermanently delete a Gmail thread and all its messages. This cannot be undone. | Permanently delete a Gmail thread and all its messages. This cannot be undone. |
Add Label add_labelAdd a label to an email message. Select from available labels in the dropdown. | Add a label to an email message. Select from available labels in the dropdown. |
Remove Label remove_labelRemove a label from an email message. Select from available labels in the dropdown. | Remove a label from an email message. Select from available labels in the dropdown. |
List Labels list_labelsList all labels in the Gmail account | List all labels in the Gmail account |
Create Label create_labelCreate a new Gmail label. | Create a new Gmail label. |
Get Label get_labelGet details for a Gmail label. | Get details for a Gmail label. |
Patch Label patch_labelPatch selected properties of a user-created Gmail label. | Patch selected properties of a user-created Gmail label. |
Update Label update_labelUpdate a Gmail label resource. | Update a Gmail label resource. |
Delete Label delete_labelPermanently delete a user-created Gmail label from the account. | Permanently delete a user-created Gmail label from the account. |
Create Draft create_draftCreate a Gmail email draft. | Create a Gmail email draft. |
List Drafts list_draftsList Gmail drafts in the mailbox. | List Gmail drafts in the mailbox. |
Get Draft get_draftGet a Gmail draft by ID. | Get a Gmail draft by ID. |
Update Draft update_draftReplace an existing Gmail draft with new message content. | Replace an existing Gmail draft with new message content. |
Send Draft send_draftSend an existing Gmail draft as-is. | Send an existing Gmail draft as-is. |
Delete Draft delete_draftPermanently delete a Gmail draft. | Permanently delete a Gmail draft. |
Get Profile get_profileGet Gmail profile information for the authenticated user. | Get Gmail profile information for the authenticated user. |
List History list_historyList Gmail mailbox change history since a known start history ID. | List Gmail mailbox change history since a known start history ID. |
List Send-As Aliases list_send_as_aliasesList Gmail send-as aliases for this account. | List Gmail send-as aliases for this account. |
Get Send-As Alias get_send_as_aliasGet a specific Gmail send-as alias configuration. | Get a specific Gmail send-as alias configuration. |
Get Contacts get_contactsList Google contacts for the same authenticated Google account using the People API. | List Google contacts for the same authenticated Google account using the People API. |
Get People get_peopleGet one People API person resource, or list Other Contacts for this Google account. | Get one People API person resource, or list Other Contacts for this Google account. |
Search People search_peopleSearch Google contacts by name, nickname, email, phone, or organization using the People API. | Search Google contacts by name, nickname, email, phone, or organization using the People API. |
Custom API Call custom_api_callMake a custom API call to the Gmail API | Make a custom API call to the Gmail API |
Triggers
| Name | Description |
|---|---|
New Email new_emailTriggers when a new email is received | Triggers when a new email is received |
Email Labeled email_labeledTriggers when a label is added to an email | Triggers when a label is added to an email |
Quick Start
import { WeavzClient } from '@weavz-io/sdk'
const weavz = new WeavzClient({ apiKey: 'wvz_...' })
const result = await weavz.actions.execute('gmail', 'list_messages', {
workspaceId: '550e8400-e29b-41d4-a716-446655440000',
integrationAlias: 'gmail',
input: { /* ... */ },
})Related Integrations
Explore integrations in other categories
Agent templates using Gmail
Preview a real task, the other apps it needs and the setup controls before creating a workspace.
Everyday Agent Workspace
A ready workspace for connecting Claude, ChatGPT, and coding agents to the apps people already use.
Student Study Desk
Email, calendar, docs, drive, and notes for coursework, planning, and study follow-through.
Teacher Class Prep
Classroom, email, calendar, drive, and spreadsheets for lesson planning and class operations.
Frequently Asked Questions
Is there a Gmail MCP server through Weavz?
Yes. Add the Gmail integration to a Weavz workspace, enable the actions you need and connect any required account. Weavz provides the workspace MCP endpoint in Tool Mode or Code Mode. The catalog currently lists 40 Gmail actions.
What can an AI agent do with Gmail?
Available actions include List Messages, Get Message, Send Email, Reply to Email, Forward Email, and more. Your workspace exposes only the actions you enable. The agent also needs the intended account access and any required input values.
How do I connect Gmail to Claude or ChatGPT?
Use a compatible remote MCP client, add the Weavz connector and choose a workspace. Add Gmail, connect the required account and review the enabled actions. Client availability and account requirements vary; adding the connector does not authorize every app automatically.
Can I use Gmail through an API or SDK?
Yes, supported actions can run through the Weavz REST API, TypeScript SDK or Python SDK. Configure a workspace and the required connections, use scoped access, and pass the intended end-user context when acting for a customer.
What authentication does Gmail require?
The catalog lists OAuth2 for Gmail. Use Hosted Connect to authorize the intended account. Required permissions, provider app access and available connection methods depend on the integration.
How do I review sensitive Gmail actions?
Limit enabled actions, scope credentials to the intended user and configure Human Gates for the operations that need review. A matching policy can pause a send, record change or other sensitive action for an approver before execution.
What limits or costs apply to Gmail?
Weavz plan limits apply to the actions and resources you use. The external provider may also require an account, a paid plan, API credits or specific permissions, and may enforce its own rate limits. Check current Weavz pricing and the provider’s terms before rollout.
What Gmail triggers are available?
The catalog lists 2 triggers, including New Email, Email Labeled. Configure the trigger and your event handler before using incoming events to start work.
Connect Gmail in minutes
Get 20,000 free action executions every month. No credit card required.