Skip to main content
Glama

Send a mail

send_message
Destructive

Sends an email immediately from a connected mailbox, including replies, forwards, attachments, and recipient handling; use create_draft when a person must review before delivery.

Instructions

Send a mail at once. It cannot be taken back. With original_id it answers or forwards that message, and a reply without recipients goes where the original asks answers to go, its Reply-To, else its sender. The same call repeated within 24 hours sends nothing and answers the first result. It answers the id of the copy in the sent folder where the account keeps one. refused lists recipients the server did not take. When a person should look at the mail first, use create_draft instead.

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": {
      "account_id": "<account_id>"
    },
    "name": "send_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
ccNoAddresses, plain or as Name <address>
toNoAddresses, plain or as Name <address>
bccNoAddresses, plain or as Name <address>
htmlNoThe body as HTML, for formatting. Inline styles only (style=...), since many mail programs drop <style> blocks. Without text, the text part is made from it
textNoThe body as plain text
quoteNoWith original_id: false adds nothing of the original, no quote of a reply and no forwarded message. The link to it stays
actionNoWith original_id: reply to its sender, reply_all to everyone it went to, or forward itreply
subjectNoThe subject. Left empty with original_id: the original's, after Re: or Fwd:
reply_toNoWhere answers should go instead of this account's address
account_idYesThe account, by the id list_accounts names
forward_asNoA forward: inline quotes the original below the text with its attachments, attachment attaches it unchanged as a fileinline
attach_fromNoAttachments of other mail of this account, attached as they are, before attachments. Needs the right to read that mail
attachmentsNoFiles to attach, 25 MiB together at most
original_idNoA message to answer or forward. Recipients and quote follow

Output Schema

NameRequiredDescriptionDefault
sentYes
refusedNo
sent_copy_idNo
original_markedNo
message_id_headerYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.8.0
    • removedOutput schema / additionalProperties
      Removed value: -true
    • addedOutput schema / description
      Added value: +"A mail sent: its Message-ID, the copy in Sent, who refused it."
    • addedOutput schema / properties
      Added value: +{
      +  "message_id_header": {
      +    "title": "Message Id Header",
      +    "type": "string"
      +  },
      +  "original_marked": {
      +    "title": "Original Marked",
      +    "type": "boolean"
      +  },
      +  "refused": {
      +    "items": {
      +      "type": "string"
      +    },
      +    "title": "Refused",
      +    "type": "array"
      +  },
      +  "sent": {
      +    "title": "Sent",
      +    "type": "boolean"
      +  },
      +  "sent_copy_id": {
      +    "title": "Sent Copy Id",
      +    "type": "string"
      +  }
      +}
    • addedOutput schema / required
      Added value: +[
      +  "sent",
      +  "message_id_header"
      +]
    • changedOutput schema / title
      Previous value: -"send_messageDictOutput"New value: +"Sent"
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: irreversibility, the 24-hour duplicate-suppression with the first result returned, the Reply-To/sender fallback for recipient-less replies, the id of the copy in the sent folder, and the refused list. One point of tension is that annotations declare idempotentHint=false while the description promises a repeated call within 24 hours sends nothing — the description is more precise, not misleading, since suppression is time-bounded and the call still returns a result.

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?

The irreversible-send warning and the create_draft hand-off are front-loaded and every sentence carries new information with no filler. The middle sentences are tightly packed run-ons, so the reply/forward and dedup rules take a second pass to parse.

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 14-parameter, world-facing mutation with an output schema, the description covers the essentials an agent cannot get elsewhere: irreversibility, dedup, reply routing, and partial failure via refused. It stops short of stating permission or failure conditions (e.g., an account without send rights) and says nothing about the sent-folder copy when the account keeps none, beyond the parenthetical.

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 schema already documents every parameter including action, quote, subject defaults and attach_from permissions; that sets the baseline at 3. The description adds genuine meaning on top only for original_id (recipients and quote follow, and the reply-without-recipients goes to Reply-To else sender), a fallback chain the schema does not state.

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?

States a specific verb and resource ("Send a mail at once") and immediately bounds it with an effect ("It cannot be taken back"), then extends the same call to reply/forward via original_id. It also contrasts itself with create_draft, so an agent can place it against the draft siblings 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?

Gives an explicit routing rule for the alternative: "When a person should look at the mail first, use create_draft instead." It also gives the conditional that selects reply/forward behavior (original_id present) and the fallback when no recipients are given, leaving little to inference.

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