Skip to main content
Glama

Google Workspace MCP Server

by ZatesloFL

send_gmail_message

Send emails or replies via Gmail with optional CC, BCC, and threading support. Specify recipient, subject, body, and user email to manage email communication effectively.

Instructions

Sends an email using the user's Gmail account. Supports both new emails and replies.

Args: to (str): Recipient email address. subject (str): Email subject. body (str): Email body (plain text). cc (Optional[str]): Optional CC email address. bcc (Optional[str]): Optional BCC email address. user_google_email (str): The user's Google email address. Required. thread_id (Optional[str]): Optional Gmail thread ID to reply within. When provided, sends a reply. in_reply_to (Optional[str]): Optional Message-ID of the message being replied to. Used for proper threading. references (Optional[str]): Optional chain of Message-IDs for proper threading. Should include all previous Message-IDs.

Returns: str: Confirmation message with the sent email's message ID.

Examples: # Send a new email send_gmail_message(to="user@example.com", subject="Hello", body="Hi there!")

# Send an email with CC and BCC send_gmail_message( to="user@example.com", cc="manager@example.com", bcc="archive@example.com", subject="Project Update", body="Here's the latest update..." ) # Send a reply send_gmail_message( to="user@example.com", subject="Re: Meeting tomorrow", body="Thanks for the update!", thread_id="thread_123", in_reply_to="<message123@gmail.com>", references="<original@gmail.com> <message123@gmail.com>" )

Input Schema

NameRequiredDescriptionDefault
bccNoOptional BCC email address.
bodyYesEmail body (plain text).
ccNoOptional CC email address.
in_reply_toNoOptional Message-ID of the message being replied to.
referencesNoOptional chain of Message-IDs for proper threading.
subjectYesEmail subject.
thread_idNoOptional Gmail thread ID to reply within.
toYesRecipient email address.
user_google_emailYes

Input Schema (JSON Schema)

{ "properties": { "bcc": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "Optional BCC email address.", "title": "Bcc" }, "body": { "description": "Email body (plain text).", "title": "Body", "type": "string" }, "cc": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "Optional CC email address.", "title": "Cc" }, "in_reply_to": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "Optional Message-ID of the message being replied to.", "title": "In Reply To" }, "references": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "Optional chain of Message-IDs for proper threading.", "title": "References" }, "subject": { "description": "Email subject.", "title": "Subject", "type": "string" }, "thread_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "Optional Gmail thread ID to reply within.", "title": "Thread Id" }, "to": { "description": "Recipient email address.", "title": "To", "type": "string" }, "user_google_email": { "title": "User Google Email", "type": "string" } }, "required": [ "user_google_email", "to", "subject", "body" ], "type": "object" }

Other Tools from Google Workspace MCP Server

Related Tools

    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/ZatesloFL/google_workspace_mcp'

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