Skip to main content
Glama

Flowmails MCP

send_email

Send an email from the account's bound domain. Requires a credential bound to a domain — a listen-only credential cannot send. A credential bound to several domains picks the one the from address is on; a from outside that set is refused. A domain with no outbound provider configured is refused with sending_not_configured (enable sending in the dashboard first). Pass replyToMessageId (a messageId from list_events or get_email) to send a reply in the same thread. Returns the numeric message id and the SMTP Message-ID, which get_send_status accepts. Several recipients each get their own message, and the answer reports what happened to EACH address: status is sent, partial (some refused) or failed (all refused), and recipients carries every address with its own verdict and reason.

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>",
      "to": "<to>",
      "subject": "<subject>"
    },
    "name": "send_email"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesOne recipient address, or a list of them.
fromYesThe sender address. Must be on one of the credential's bound domains.
htmlNoThe HTML body. One of `text` or `html` is required.
textNoThe plain-text body. One of `text` or `html` is required.
replyToNoOptional: a Reply-To address, so replies to this new mail go somewhere else. A different fact from `replyToMessageId`, which answers an existing message in its thread.
subjectYesThe subject line.
fromNameNoOptional: the sender's display name, e.g. `Billing`. Without it the mail worker's own default is used — the address's local part — never an empty display name.
attachmentsNoOptional: files to attach. The bytes travel with the request, so keep them small — this is a mail attachment, not a file store.
perRecipientNoOptional: send one message per recipient (the default). Set it to false to put every recipient on ONE shared envelope — one message, one relay call, cheaper on a provider that bills per message, but everybody sees each other and a single refused address refuses the whole send. With one message per recipient the answer reports what happened to EACH address, and a send where only some were refused answers `status: "partial"`.
idempotencyKeyNoOptional: a caller-supplied key that makes a retry free. The same key under the same account and the same request returns the ORIGINAL result and does not send twice; the same key with a DIFFERENT payload is refused with `idempotency_key_conflict`. Use one key per logical mail (a UUID you can rebuild after a timeout), not one per attempt. Scoped to the account, so two accounts may use the same string.
replyToMessageIdNoOptional: the id of the message being replied to — sends the reply in that thread.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations, the description carries the full behavioral burden and does so thoroughly: listen-only credentials cannot send, out-of-domain senders are refused, missing outbound providers yield `sending_not_configured`, and recipient-level outcomes are described. It also discloses return identifiers and how per-recipient sending behaves.

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 front-loaded with the core send operation and then layers in prerequisites, refusal cases, and return behavior. It is dense and somewhat redundant with the detailed input schema, but most sentences earn their place by adding operational context.

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 an 11-parameter mutation tool with no annotations and no output schema, the description is highly complete: it covers credential prerequisites, provider configuration, reply threading, recipient fan-out, partial failure reporting, and the identifiers returned. An agent has enough information to call it correctly and interpret the result shape.

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 baseline is 3; the description adds useful meaning for `from` by explaining multi-domain selection and refusal behavior, and for `replyToMessageId` by identifying valid sources and threading semantics. It does not add much for several other parameters already well described in the schema, such as `idempotencyKey` and `perRecipient`.

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 specifies a concrete verb and resource: 'Send an email from the account's bound domain.' It also clarifies the reply mode and references related tools for obtaining message ids, so an agent can distinguish this from status or retrieval operations.

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?

It gives clear contextual guidance for sending, including credential-bound-domain requirements, multi-domain sender selection, and when to pass `replyToMessageId` for replies. It does not explicitly say when to use `get_send_status` or other alternatives instead, so it falls short of full when/when-not 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.