Skip to main content
Glama

Emitd MCP Server

Send an email

send_email

Send one email from an address on a verified domain (see list_domains). Give html_body and/or text_body, or template_alias plus template_model to render a saved template. Use dry_run: true to validate a new or uncertain send without delivering it. An identical send within 10 minutes returns the original message_id instead of sending again; pass idempotency_key to control that, or allow_duplicate: true to send another copy on purpose. Returns message_id and status. If this key's guardrails need a person, the call either asks them in chat or returns status pending_approval with an approval_url to share.

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": {
      "from": "<from>"
    },
    "name": "send_email"
  }
}

Input Schema

NameRequiredDescriptionDefault
ccNo
toNo
bccNo
tagNoLegacy single tag; prefer `tags`.
fromYesSender, as `hello@example.com` or `Example <hello@example.com>`. Quote a name with punctuation (`"Example, Inc" <hello@example.com>`). The domain must be a verified sending domain for the tenant (and match the key's domain scope, if scoped).
tagsNo
dry_runNotrue validates and simulates the send: nothing leaves emitd and nothing is billed, though it counts toward rate limits. Returns a message_id for the simulated send.
headersNoExtra message headers, such as `X-Entity-Ref-ID`, or `In-Reply-To` and `References` to thread a reply. Names are letters, digits and hyphens, values are printable ASCII, and a name and value total at most 996 characters. Headers that say who a message is from, where replies go or how to unsubscribe can't be set here (`From`, `Reply-To`, `Message-ID`, `List-Unsubscribe` and the like, and any `Content-*` or `X-SES-*`). Refused with `validation_failed`, or `403 policy_violation` for a key with guardrails, as a person approving a send wouldn't see them.
subjectNoRequired by validation unless a template supplies it.
reply_toNo
html_bodyNo
test_modeNoSimulate delivery without sending (same effect as the `X-Relay-Test` header).
text_bodyNo
attachmentsNoAt most 10; more is refused with `validation_failed` (`too_many_attachments`).
track_opensNoAdd an open-tracking pixel to the HTML body. Omit it to take the stream default: on for `broadcast`, off for `outbound` (transactional). Opens are approximate either way, because some clients fetch every image and others block them.
scheduled_atNoEpoch milliseconds. When in the future, the message is persisted as `scheduled` and enqueued by a per-minute cron once due.
track_clicksNoRoute links in the HTML body through the click-tracking redirect. Omit it to take the stream default: on for `broadcast`, off for `outbound` (transactional).
message_streamNoPostmark-style stream separation.outbound
template_aliasNoServer-side template alias to render (see Templates). Renders subject/html_body/text_body before validation.
template_modelNoVariables for `template_alias` rendering.
allow_duplicateNotrue sends another copy even though an identical email went out in the last 10 minutes.
idempotency_keyNoRetry-safe key: calling again with the same key returns the first result instead of sending again. Without one, an identical send within 10 minutes is deduplicated automatically.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • addedInput schema / properties / attachments / description
      Added value: +"At most 10; more is refused with `validation_failed` (`too_many_attachments`)."
    • changedInput schema / properties / attachments / items / properties / content / description
      Previous value: -"Base64-encoded inline content. Mutually exclusive with `r2_key` in practice (inline content is used as-is if present)."New value: +"Base64-encoded inline content, at most 10 MB decoded (else `validation_failed`, `attachment_too_large`). Mutually exclusive with `r2_key` in practice (inline content is used as-is if present)."
    • addedInput schema / properties / attachments / items / properties / content_id
      Added value: +{
      +  "description": "Shows the file inside the email rather than as a download, wherever the HTML body says `<img src=\"cid:logo\">` for a `content_id` of `logo`.",
      +  "maxLength": 128,
      +  "pattern": "^[A-Za-z0-9._+@-]+$",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • changedInput schema / properties / attachments / items / properties / r2_key / description
      Previous value: -"R2 object key returned by `POST /v1/attachments`."New value: +"R2 object key returned by `POST /v1/attachments`. Only your own workspace's uploads can be sent; any other key is refused with `validation_failed` (`unknown_attachment`)."
    • changedInput schema / properties / from / description
      Previous value: -"Sender address; its domain must be a verified sending domain for the tenant (and match the key's domain scope, if scoped)."New value: +"Sender, as `hello@example.com` or `Example <hello@example.com>`. Quote a name with punctuation (`\"Example, Inc\" <hello@example.com>`). The domain must be a verified sending domain for the tenant (and match the key's domain scope, if scoped)."
    • removedInput schema / properties / from / format
      Removed value: -"email"
    • addedInput schema / properties / headers
      Added value: +{
      +  "additionalProperties": {
      +    "type": "string"
      +  },
      +  "description": "Extra message headers, such as `X-Entity-Ref-ID`, or `In-Reply-To` and `References` to thread a reply. Names are letters, digits and hyphens, values are printable ASCII, and a name and value total at most 996 characters. Headers that say who a message is from, where replies go or how to unsubscribe can't be set here (`From`, `Reply-To`, `Message-ID`, `List-Unsubscribe` and the like, and any `Content-*` or `X-SES-*`). Refused with `validation_failed`, or `403 policy_violation` for a key with guardrails, as a person approving a send wouldn't see them.",
      +  "maxProperties": 10,
      +  "type": [
      +    "object",
      +    "null"
      +  ]
      +}
  2. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations it discloses the 10-minute deduplication behavior and its return of the original message_id, the dry_run caveat that simulated sends still count toward rate limits, the pending_approval/approval_url human-in-the-loop path, and the message_id plus status return. These are non-obvious operational traits the annotations (openWorldHint, idempotentHint=false) do not convey; the time-boxed dedup is consistent with idempotentHint=false rather than contradicting it.

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?

Roughly ninety words for a 22-parameter tool, front-loaded with the core action and prerequisite, then usage modes, then dedup semantics, then return and approval behavior. Every sentence carries information that is not available in structured fields.

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 high-parameter, side-effecting tool with no output schema, the description covers send modes, validation mode, deduplication, the approval outcome, and what is returned. An agent has enough to call it correctly and to interpret both the delivered and pending_approval results.

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?

At 68% schema coverage the schema does much of the work, but the description adds real meaning: the body-versus-template rule, the purpose of dry_run, and the idempotency_key/allow_duplicate distinction. It says nothing about other significant parameters (scheduled_at, attachments, track_opens/track_clicks, message_stream, reply_to), which the schema covers with its own descriptions.

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 one email from an address on a verified domain") with the scope qualifier "one" that implicitly separates it from the sibling send_batch, and points to list_domains for domain verification. An agent can identify the operation and its prerequisite without opening the schema.

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?

Gives concrete when-to guidance: supply html_body/text_body or template_alias plus template_model, use dry_run for a new or uncertain send, use idempotency_key versus allow_duplicate depending on intent. It does not route the agent explicitly to the siblings validate_email or check_email for pre-send checks, so the alternative-selection story is incomplete rather than absent.

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.