Skip to main content
Glama

Send email

google_gmail_send

Sends an email from a connected Gmail account, optionally adds it to an existing thread via threadId, and supports recipients, subject, body, CC/BCC, and attachments.

Instructions

Send an email from the connected account. Pass threadId to add the message to an existing conversation instead of starting a new one. threadId only controls which thread Gmail files the message under: per-message reply threading (In-Reply-To and References headers) remains the caller's responsibility.

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": {
      "to": "<to>",
      "subject": "<subject>",
      "body": "<body>"
    },
    "name": "google_gmail_send"
  }
}

Input Schema

NameRequiredDescriptionDefault
ccNoCC recipient(s).
toYesRecipient email(s).
bccNoBCC recipient(s).
bodyYesMessage body.
fromNoSend-as alias or address to set as the From header.
accountNoAccount nickname to use.
replyToNoAddress to set as the Reply-To header.
subjectYesSubject line.
bodyTypeNoBody format (default text).
threadIdNoGmail thread ID to add this message to, joining an existing conversation. Omit to start a new thread. This does not set In-Reply-To/References; set those yourself for per-message reply threading.
attachmentsNoLocal files to attach to the email.
driveFileIdsNoDrive file IDs to attach by reference (downloaded under the Gmail size limit).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.102
    • addedInput schema / properties / threadId
      Added value: +{
      +  "description": "Gmail thread ID to add this message to, joining an existing conversation. Omit to start a new thread. This does not set In-Reply-To/References; set those yourself for per-message reply threading.",
      +  "type": "string"
      +}
  2. Changed5 schema fields changedv0.1.60
    • addedInput schema / properties / attachments / items / properties / cid
      Added value: +{
      +  "description": "Content-ID for inline parts so HTML can reference them as cid:<cid>.",
      +  "type": "string"
      +}
    • addedInput schema / properties / attachments / items / properties / disposition
      Added value: +{
      +  "description": "How the part is presented (default attachment; inline embeds it in the body).",
      +  "enum": [
      +    "attachment",
      +    "inline"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / driveFileIds
      Added value: +{
      +  "description": "Drive file IDs to attach by reference (downloaded under the Gmail size limit).",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / from
      Added value: +{
      +  "description": "Send-as alias or address to set as the From header.",
      +  "type": "string"
      +}
    • addedInput schema / properties / replyTo
      Added value: +{
      +  "description": "Address to set as the Reply-To header.",
      +  "type": "string"
      +}
  3. Changed2 schema fields changedv0.1.30
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / attachments
      Added value: +{
      +  "description": "Local files to attach to the email.",
      +  "items": {
      +    "properties": {
      +      "filename": {
      +        "description": "Attachment filename shown to recipients (defaults to the basename of path).",
      +        "type": "string"
      +      },
      +      "mimeType": {
      +        "description": "MIME type override (defaults to a guess from the filename).",
      +        "type": "string"
      +      },
      +      "path": {
      +        "description": "Local filesystem path of the file to attach.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "path"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  4. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. It does disclose one genuinely non-obvious behavior: threadId affects only Gmail's filing, not per-message threading headers. It says nothing about the irreversible nature of sending, authentication or send-as alias requirements, quota limits, or attachment size constraints.

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

Conciseness4/5

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

Three tight sentences, front-loaded with the action and then the one non-obvious caveat. Nothing is padded. The threading caveat is repeated from the schema, which is the only minor redundancy.

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

Completeness3/5

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

For a 12-parameter outbound-send tool with no annotations and no output schema, the description covers only threading semantics. The rich schema documents the parameters well, but the agent gets no behavioral picture of sending: irreversibility, permissions, or size/quota limits on attachments and Drive references.

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 the baseline is 3. The description's threadId paragraph largely restates the caveat already written in the schema's threadId property. It adds no meaning to the other eleven parameters, including attachments, driveFileIds, from, and bodyType.

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

Purpose4/5

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

The first sentence states a concrete verb and resource: 'Send an email from the connected account.' That is unambiguous and would let an agent pick it for outbound mail. It does not, however, distinguish itself from siblings that also send mail, notably google_gmail_reply and google_gmail_drafts_send, so the reader must infer which one to pick.

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

Usage Guidelines3/5

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

The description gives one conditional rule: pass threadId to add to an existing conversation, omit it to start a new one. That is useful usage guidance, but it stops there. There is no statement about when to prefer google_gmail_reply for actual replies, or drafts_create when the message should be reviewed before sending.

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