Skip to main content
Glama

Gmail Send Email

gmail_send_email
Destructive

Compose and send a new Gmail message with plain-text or HTML body and optional attachments; the user approves recipients, subject, and body before sending.

Instructions

Compose and send a new Gmail message, with a plain-text and/or HTML body and optional attachments. To answer an existing message inside its thread use gmail_reply; to save mail for review instead of sending it, use gmail_save_draft. Returns status 'sent' with the new message_id, thread_id and label_ids, or status 'cancelled' if the user declines. The user is always asked to approve the send first (recipients, subject, attachments and the body).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "subject": "<subject>",
      "to": "<to>"
    },
    "name": "gmail_send_email"
  }
}

Input Schema

NameRequiredDescriptionDefault
ccNoCarbon-copy recipient email addresses, visible to every recipient.
toYesPrimary recipient email addresses, e.g. ['ana@example.com']; each must be a valid address.
bccNoBlind-copy recipient email addresses, hidden from the other recipients.
subjectYesSubject line; non-ASCII text is encoded automatically.
html_bodyNoHTML body, sent as an alternative to text_body; without text_body the plain-text part is the placeholder 'This message contains HTML content.'
text_bodyNoPlain-text body. Pass it together with html_body to send both versions; with neither, the body is empty.
attachmentsNoFiles to attach, each with exactly one source: uploaded_file (an upload handle from uploads_file_manager) or file_path (local stdio servers only).

Output Schema

NameRequiredDescriptionDefault
statusNoMachine-readable operation status.
label_idsNo
thread_idNo
message_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.2.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, openWorldHint=true and non-idempotent, so the safety profile is partly covered. The description still adds real context the annotations cannot: a mandatory user approval step naming what is approved, the two possible return statuses ('sent' with message_id/thread_id/label_ids, or 'cancelled' on decline), and the HTML-without-text placeholder behavior. It stops short of stating that a sent mail cannot be recalled or what happens on SMTP/permission failure.

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?

Three sentences, front-loaded with purpose, then alternatives, then return/approval behavior. Nothing repeats the name or title and no sentence could be dropped without losing routing or behavioral information.

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 a destructive outbound-send tool with 7 parameters and an output schema, the description covers purpose, alternatives, approval gating and return statuses. Remaining gaps (irreversibility of a sent message, auth/connection prerequisites for openWorld use) are minor given the annotation and output-schema coverage.

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

Parameters3/5

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

Schema description coverage is 100%, so every parameter including the nested attachment oneOf already documents itself. The description only restates 'plain-text and/or HTML body and optional attachments' and the approval list, adding no syntax or format meaning beyond the schema — the baseline 3 applies.

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 and resource ('Compose and send a new Gmail message') and immediately scopes it against siblings: gmail_reply for threaded answers and gmail_save_draft for review-only. An agent can pick this tool over the two nearest alternatives without opening any schema.

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

Usage Guidelines5/5

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

It gives explicit when-to-use routing ('To answer an existing message inside its thread use gmail_reply; to save mail for review instead of sending it, use gmail_save_draft') plus the precondition that the user approves before send. Both the alternative and the condition that selects it are stated, not inferred.

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

Deploy Server

Other Tools