Skip to main content
Glama

Send Gmail Message

send_gmail_message

Send, reply, or forward Gmail emails with attachments, aliases, and threading support.

Instructions

Sends an email using the user's Gmail account. Supports new emails, replies, and forwards, with optional attachments. Supports Gmail's "Send As" feature to send from configured alias addresses.

To forward an existing message, pass forward_message_id. The original subject, body (quoted with a "Forwarded message" header), and attachments are carried over. In forward mode, body (if any) is prepended as a note and subject is optional. Threading, reply, and signature options do not apply when forwarding.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ccNoOptional CC email address.
toNoRecipient email address. Optional when replying with reply_all=True, which derives it from the thread.
bccNoOptional BCC email address.
bodyNoEmail body content (plain text or HTML). Required when sending. When forwarding, this is an optional note prepended above the quoted original.
subjectNoEmail subject. Required when sending; optional when forwarding (defaults to 'Fwd: <original subject>').
from_nameNoOptional sender display name (e.g., 'Peter Hartree'). If provided, the From header will be formatted as 'Name <email>'.
reply_allNoWhether to derive reply-all recipients from the thread: To = the sender being replied to, Cc = the other participants, excluding the authenticated account and from_email. Requires thread_id. Explicit to/cc win; when cc is omitted the sender being replied to is added to the derived Cc if they are not already in To. Defaults to false.
thread_idNoOptional Gmail thread ID to reply within.
from_emailNoOptional 'Send As' alias email address. Must be configured in Gmail settings (Settings > Accounts > Send mail as). If not provided, uses the authenticated user's email.
referencesNoOptional chain of Message-IDs for proper threading.
attachmentsNoOptional list of attachments. Each can have: "url" (fetch from URL — works with MCP attachment URLs from get_drive_file_download_url / get_gmail_attachment_content), OR "path" (file path, auto-encodes), OR "content" (standard base64, not urlsafe) + "filename". Optional "mime_type". Optional "content_id" (string) makes the attachment inline-rendered: it lands in a multipart/related part with `Content-ID: <content_id>` and `Content-Disposition: inline`, and the HTML body can reference it via `<img src="cid:<content_id>">` (RFC 2392). Without `content_id` the attachment is a regular multipart/mixed attachment. Example: [{"url": "https://host/attachments/abc-123", "filename": "report.pdf"}]
body_formatNoFormat of the body content (and of the prepended note when forwarding). Use 'plain' for plaintext or 'html' for HTML content.plain
in_reply_toNoOptional RFC Message-ID of the message being replied to (e.g., '<message123@gmail.com>').
quote_originalNoWhether to include the message being replied to as a quoted original. Only has an effect when thread_id is provided. Defaults to false.
include_signatureNoWhether to append the Gmail signature from Settings > Signature when available. Defaults to true.
user_google_emailYesThe user's Google email address. Required for authentication.
forward_message_idNoSet to a Gmail message ID to forward that message instead of composing a new one. The original subject, body, and (optionally) attachments are carried over; 'body' becomes an optional note prepended to the forward.
include_forwarded_attachmentsNoWhen forwarding, whether to include the original message's attachments. Ignored unless forward_message_id is set.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Install Server

TDQS

A4.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=false and idempotentHint=false, and the description adds meaningful behavior beyond that: forwarding carries the original subject/body/attachments, quotes with a 'Forwarded message' header, and disables threading/reply/signature options. This prevents an agent from incorrectly assuming subject or signature behavior applies in forward mode. No contradiction with annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tight paragraphs: the first front-loads the core purpose and supported modes in a single sentence, and the second covers only the forwarding behavior that needs disambiguation. There is no filler and no repetition of schema content — every sentence earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 18-parameter tool with an output schema and annotations, the description covers the core operation, all three modes, and the highest-misuse-risk behavior (forwarding) in detail. Remaining details like reply_all recipient derivation and inline attachment content_id mechanics are already fully documented in the schema, so the description doesn't need to restate them.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3, but the description adds cross-parameter semantics the per-parameter schema entries cannot: in forward mode, body is treated as an optional note, subject becomes optional/defaulted, and reply/threading/signature parameters are ignored. This reconciles interactions among forward_message_id, body, subject, thread_id, and include_signature.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb+resource ('Sends an email using the user's Gmail account') and precisely scopes the tool: new emails, replies, forwards, optional attachments, and Send As aliases. The 'Gmail account' qualifier plus the send verb separates it from siblings like draft_gmail_message and the Chat-focused send_message, even without naming them.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description clearly articulates the three usage modes (new, reply, forward) and gives explicit operational guidance for forwarding — pass forward_message_id, the original subject/body/attachments are carried over, body becomes a prepended note, subject is optional. It does not name alternative tools or state explicit when-not-to-use conditions, so it stops short of a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Other Tools

Latest Blog Posts

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

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