Skip to main content
Glama

Send email

send_message
Destructive

Sends an email via SMTP, optionally with attachments (existing mailbox attachments, uploaded files, inline content). Only allowed when the owner enabled sending for the account AND every recipient matches send_allowlist. Otherwise use create_draft.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ccNo
toYesRecipient addresses
bccNo
htmlNoOptional HTML (scripts stripped)
textYesPlain-text body
quoteNoQuote the original (default true when replying)
accountYeslist_accounts id
subjectYes
attachmentsNo
in_reply_to_uidNouid being answered; prefer reply_draft / reply_send
in_reply_to_folderNoDefault: Gmail All Mail, else INBOX

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed16 schema fields changed
    • changedInput schema / properties / account / description
      Previous value: -"Account id from list_accounts"New value: +"list_accounts id"
    • removedInput schema / properties / attachments / description
      Removed value: -"Files to attach: existing mailbox attachments, uploaded files (folder \"mailmcp-uploads\"), inline content, or local paths"
    • changedInput schema / properties / attachments / items / description
      Previous value: -"Attach a mailbox attachment {uid, part[, folder, account]}, inline content {filename, content[, encoding]}, or a local file {path}"New value: +"{uid, part[, folder, account]} from a mailbox, {filename, content[, encoding]} or {path}"
    • removedInput schema / properties / attachments / items / properties / account / description
      Removed value: -"Account holding the file (defaults to the sending account)"
    • removedInput schema / properties / attachments / items / properties / content / description
      Removed value: -"File content, UTF-8 text or base64 (see encoding); for files the assistant writes itself"
    • removedInput schema / properties / attachments / items / properties / content_type / description
      Removed value: -"MIME type of inline content, e.g. text/csv"
    • removedInput schema / properties / attachments / items / properties / encoding / description
      Removed value: -"How `content` is encoded, default utf8"
    • removedInput schema / properties / attachments / items / properties / filename / description
      Removed value: -"File name (required for inline content)"
    • removedInput schema / properties / attachments / items / properties / folder / description
      Removed value: -"Folder of the source message (e.g. \"mailmcp-uploads\" for uploaded files)"
    • changedInput schema / properties / attachments / items / properties / part / description
      Previous value: -"Attachment part id from get_message / list_uploads"New value: +"Part id from get_message / list_uploads"
    • changedInput schema / properties / attachments / items / properties / path / description
      Previous value: -"Local file path (Claude Desktop / Claude Code only, within policy.attachment_dirs)"New value: +"Local path (stdio only, inside policy.attachment_dirs)"
    • removedInput schema / properties / attachments / items / properties / uid / description
      Removed value: -"uid of the source message"
    • changedInput schema / properties / html / description
      Previous value: -"Optional HTML body (scripts are stripped); when absent it is rendered from text"New value: +"Optional HTML (scripts stripped)"
    • changedInput schema / properties / in_reply_to_folder / description
      Previous value: -"Folder/label path. Defaults to All Mail on Gmail, INBOX elsewhere."New value: +"Default: Gmail All Mail, else INBOX"
    • changedInput schema / properties / in_reply_to_uid / description
      Previous value: -"uid of the message being answered: sets In-Reply-To/References, keeps the Re: subject and quotes the original. Prefer reply_draft / reply_send."New value: +"uid being answered; prefer reply_draft / reply_send"
    • changedInput schema / properties / quote / description
      Previous value: -"Quote the original under the reply (default true when replying)"New value: +"Quote the original (default true when replying)"
  2. Changed11 schema fields changed
    • addedInput schema / properties / attachments / items / properties / uid / maxLength
      Added value: +512
    • removedInput schema / properties / attachments / items / properties / uid / maximum
      Removed value: -9007199254740991
    • addedInput schema / properties / attachments / items / properties / uid / minLength
      Added value: +1
    • removedInput schema / properties / attachments / items / properties / uid / minimum
      Removed value: -1
    • changedInput schema / properties / attachments / items / properties / uid / type
      Previous value: -"integer"New value: +"string"
    • addedInput schema / properties / attachments / maxItems
      Added value: +20
    • addedInput schema / properties / in_reply_to_uid / maxLength
      Added value: +512
    • removedInput schema / properties / in_reply_to_uid / maximum
      Removed value: -9007199254740991
    • addedInput schema / properties / in_reply_to_uid / minLength
      Added value: +1
    • removedInput schema / properties / in_reply_to_uid / minimum
      Removed value: -1
    • changedInput schema / properties / in_reply_to_uid / type
      Previous value: -"integer"New value: +"string"
  3. First observed

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 and openWorldHint=true, so the safety profile is covered. The description adds non-obvious policy gating (per-account send enablement, send_allowlist recipient matching) that the annotations cannot express, plus the range of attachment sources. It stops short of describing delivery failure behavior or rate limits.

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 sentences, zero filler, with the action front-loaded and the escape hatch pushed to the end. Every clause carries load: mechanism, optionality, preconditions, alternative.

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 no-output-schema send tool whose annotations already flag it as destructive and open-world, the description covers the critical invocation gates and the correct alternative. It does not address what a rejected send returns or how partial-recipient failures behave, a minor gap against the complexity of an 11-parameter tool.

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 coverage is 64% (moderate), so the schema carries much of the burden already; the inline attachment-object description in the schema largely duplicates the description's mention of mailbox attachments, uploads, and inline content. The description adds little format-level detail for the 11 parameters beyond that.

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?

Opens with a specific verb+resource ("Sends an email via SMTP") and immediately scopes the capability around attachments. It also names the sibling it is not (create_draft), so an agent can distinguish it from the draft/reply family without opening a 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?

States the two hard preconditions for use (owner enabled sending for the account AND every recipient matches send_allowlist) and gives the explicit fallback ("Otherwise use create_draft"). This is a clear when/when-not/alternative statement rather than implied guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.