Skip to main content
Glama

send_email

Send transactional emails using predefined templates (project invite, magic link, notification) or custom HTML. Supports single recipient, sender name, and attachments in raw mode.

Instructions

Send an email. Two modes: template (project_invite, magic_link, notification) or raw HTML (subject + html). Optional from_name for display name. Single recipient only. Pass mailbox to target a slug/id; otherwise the configured default_outbound_mailbox_id is used. Result echoes mailbox_id and from_address when the gateway provides them.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toYesRecipient email address (single recipient only)
htmlNoHTML email body (raw HTML mode, max 1MB)
textNoPlain text fallback (raw HTML mode, auto-generated from HTML if omitted)
mailboxNoTarget mailbox by slug or id. If omitted, the configured default_outbound_mailbox_id is used; missing/invalid defaults return typed repair errors.
subjectNoEmail subject line (raw HTML mode, max 998 chars)
templateNoEmail template (template mode). project_invite, magic_link, or notification
from_nameNoDisplay name for From header, e.g. "My App" (max 78 chars)
variablesNoTemplate variables (template mode). project_invite: project_name, invite_url. magic_link: project_name, link_url, expires_in. notification: project_name, message (max 500 chars).
project_idYesThe project ID
attachmentsNoBinary attachments — RAW HTML MODE ONLY (with subject + html, not template). Max 5; ≤ 7 MB total (decoded).
in_reply_toNoID of a prior message (typically inbound) to thread this one under. The server uses it to set RFC-822 In-Reply-To and References headers. Usually set via reply flows; leave empty for new threads.
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses result feedback (mailbox_id, from_address) and size limits (1MB HTML, 7MB attachments). However, it does not mention idempotency, rate limits, or side effects of sending (e.g., whether sending twice is problematic).

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 description is a single paragraph of moderate length with clear sentences. It is front-loaded with the main action. While not using bullet points, it remains efficient and free of redundancy. Every sentence adds value.

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?

Given the complexity (11 parameters, nested objects, enums), the description is comprehensive. It covers modes, mailbox selection, attachment limits, and result feedback. The absence of an output schema is compensated by describing what the result provides. Minor gaps in behavioral transparency prevent a 5.

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

Parameters4/5

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

Schema coverage is 100%, so the description adds value by explaining the two modes and how parameters relate. It clarifies the mailbox fallback behavior, template variables, and the in_reply_to threading, providing meaning beyond the schema.

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 description clearly states the tool's purpose: 'Send an email' with two distinct modes (template and raw HTML). It specifies the resource and provides enough detail to understand its scope, though it doesn't explicitly differentiate from sibling tools like 'send_message'.

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

Usage Guidelines4/5

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

The description explains two modes and provides guidance on when to use each (template vs raw HTML). It mentions single recipient and mailbox targeting, and includes the required parameters. However, it lacks explicit guidance on when not to use this tool versus alternatives.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/MajorTal/run402'

If you have feedback or need assistance with the MCP directory API, please join our Discord server