Skip to main content
Glama

send_message

Destructive

Compose and send an email in one step to recipients on the server's fixed allowlist; any off-list address is refused. Draft the message instead to reach anyone else.

Instructions

Compose and SEND an email in one step. Same input contract as create_draft. SERVER-ENFORCED LIMIT: this server only delivers to addresses on a fixed allowlist held outside the repo, and it checks the final message bytes immediately before handing them to Gmail. A recipient that is not on that list is refused and no send request is made — the refusal comes from the server, not from the assistant's judgment, and no phrasing of the request, tool argument, or additional context can lift it. There is also no tool for editing the allowlist. To reach anyone else, use create_draft and let the owner send it from Gmail.

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

Input Schema

NameRequiredDescriptionDefault
ccNoOptional CC list. Also checked against the send allowlist.
toYesRecipient email address(es). Must be on the server's send allowlist or the send is refused.
bccNoOptional BCC list. Also checked against the send allowlist.
bodyYesEmail body as plain text. Blank lines separate paragraphs; a single newline is a line break; lines starting with "-" or "1." become bullet/numbered lists. Do NOT pass HTML — matching text/plain and text/html parts are generated from this one string, and "<", ">" and "&" are escaped so they render literally.
accountYesAccount id ("personal", "tamu").
subjectYesEmail subject.
thread_idNoOptional Gmail thread ID. When set, the message is sent into that thread.
referencesNoOptional RFC 2822 References header value for threading.
attachmentsNoOptional local file attachments.
in_reply_toNoOptional RFC 2822 Message-ID of the email being replied to. Sets the In-Reply-To header for proper threading.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.2

TDQS

A4.5/5.0
Behavior4/5

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

The annotations already declare readOnlyHint=false and destructiveHint=true, so the write nature is covered; the description goes further by disclosing a server-side allowlist enforced on final message bytes, that refusals originate from the server and cannot be lifted by phrasing or arguments, that no allowlist-editing tool exists, and that cc/bcc are also checked. It stops short of describing timing/confirmation behavior, but the constraint disclosures are unusually rich.

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?

The action and the sibling distinction are front-loaded, then the hard constraint, then the fallback path. No sentence is filler — even the longer allowlist passage is load-bearing because it prevents retry loops by the agent.

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

Completeness5/5

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

For a 10-parameter mutation tool with no output schema, the description supplies the missing behavioral layer: the delivery constraint, the impossibility of circumventing it, and the alternative route. The remaining parameter detail is fully covered by the schema.

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%, and the schema itself thoroughly documents to/cc/bcc allowlist checks, body formatting rules, attachments paths and the outbox deletion behavior. The description adds only the high-level 'same input contract as create_draft' note, so the baseline 3 applies: the schema carries the parameter semantics.

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 pair ('Compose and SEND an email in one step') and immediately distinguishes itself from the sibling create_draft, which only creates a draft. An agent can select between them without opening either 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 an explicit when-to-use and when-not-to-use rule: send only to allowlisted addresses, and use create_draft for anyone else so the owner can send from Gmail. It also states the input contract matches create_draft, which reduces the cost of switching tools.

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