Skip to main content
Glama

Send email

send_email

Send a transactional email via Groundmail. Provide subject + html, markdown or text (markdown renders tables and formatting for you), or a published template_id / template_alias with optional variables. To test without delivering anything, send to a simulator address: delivered@, bounce@, block@, complaint@, suppressed@ or delayed@simulator.groundmail.dev (plus addressing like bounce+test1@ works); the result has test: true and webhooks fire as for real mail.

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

Input Schema

NameRequiredDescriptionDefault
toYesRecipient email address. A …@simulator.groundmail.dev address simulates an outcome and never delivers
fromNoSender address (on a verified domain, or the sandbox sender). Optional when sender is set, the template has a sender, or the team has a default sender (a saved sender); when set it wins
htmlNoHTML body, sent as written. Not with markdown, template_id or template_alias
textNoPlain-text body. Left out with html or markdown, one is built from the HTML (table rows as lines, cells separated by " | ", link URLs kept). Not used with template_id or template_alias
senderNoA saved sender's handle or id (for example billing): sends as its name and address, and replies go to its reply-to unless reply_to is set. Ignored when from is set
tenantNoSend as this tenant: the send uses its domains, suppression list, pause switch and daily limit. Omit to send from the account as a whole. The tenant's external id (your id for that customer) or its Groundmail id
subjectNoSubject line. Optional when using a published template
categoryNoUsually omit it: Groundmail decides whether each email is transactional or product, and ignores those two values here (see detected_category on the email). Set newsletter only for opt-in newsletters on an account approved for them (otherwise the send fails with newsletter_not_enabled); they go from separate IPs with one-click unsubscribe
markdownNoGitHub-flavoured Markdown, tables included, rendered to the HTML body with bordered tables. The easy way to send a report or table. Not with html, template_id or template_alias
reply_toNoAddress that replies should go to
variablesNoTemplate variables when using template_id or template_alias
template_idNoPublished template UUID
template_aliasNoPublished template alias

Output Schema

NameRequiredDescriptionDefault
idYesEmail id (msg_…)
testNoPresent and true on a test send (test key or simulator addresses): nothing was delivered
statusYesStatus after the request, for example queued or scheduled
held_backNoPresent when Groundmail validation held some recipients back; the email went to the rest

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / held_back / items / properties / reason / description
      Previous value: -"Why: invalid_address (cannot exist), no_mail_server (domain takes no email), previously_bounced (hard-bounced for a Groundmail sender in the last 90 days), mailbox_not_found, or likely_bot_signup (looks like a bot sign-up; only when the send opted in)"New value: +"Why: suppressed (on the suppression list), invalid_address (cannot exist), no_mail_server (domain takes no email), previously_bounced (hard-bounced for a Groundmail sender in the last 90 days), mailbox_not_found, or likely_bot_signup (looks like a bot sign-up; only when the send opted in)"
  2. Changed3 schema fields changed
    • changedInput schema / properties / html / description
      Previous value: -"HTML body, sent as written. Put tables and formatting here, with inline styles: Markdown is not converted. Not used with template_id or template_alias"New value: +"HTML body, sent as written. Not with markdown, template_id or template_alias"
    • addedInput schema / properties / markdown
      Added value: +{
      +  "description": "GitHub-flavoured Markdown, tables included, rendered to the HTML body with bordered tables. The easy way to send a report or table. Not with html, template_id or template_alias",
      +  "type": "string"
      +}
    • changedInput schema / properties / text / description
      Previous value: -"Plain-text body. Left out with html, one is built from the HTML (table rows as lines, cells separated by \" | \", link URLs kept). Not used with template_id or template_alias"New value: +"Plain-text body. Left out with html or markdown, one is built from the HTML (table rows as lines, cells separated by \" | \", link URLs kept). Not used with template_id or template_alias"
  3. Changed2 schema fields changed
    • changedInput schema / properties / html / description
      Previous value: -"HTML body. Not used with template_id or template_alias"New value: +"HTML body, sent as written. Put tables and formatting here, with inline styles: Markdown is not converted. Not used with template_id or template_alias"
    • changedInput schema / properties / text / description
      Previous value: -"Plain-text body. Not used with template_id or template_alias"New value: +"Plain-text body. Left out with html, one is built from the HTML (table rows as lines, cells separated by \" | \", link URLs kept). Not used with template_id or template_alias"
  4. Changed1 schema field changed
    • changedInput schema / properties / category / description
      Previous value: -"transactional (default): sign-in codes, receipts, alerts. product: onboarding, lifecycle and notification email, with one-click unsubscribe. newsletter: opt-in newsletters, for approved accounts only (otherwise the send fails with newsletter_not_enabled), sent from separate IPs with one-click unsubscribe"New value: +"Usually omit it: Groundmail decides whether each email is transactional or product, and ignores those two values here (see detected_category on the email). Set newsletter only for opt-in newsletters on an account approved for them (otherwise the send fails with newsletter_not_enabled); they go from separate IPs with one-click unsubscribe"
  5. Changed4 schema fields changed
    • changedInput schema / properties / from / description
      Previous value: -"Sender address (on a verified domain, or the sandbox sender). Optional when sender is set, the template has a sender, or the team has a default sender (list_senders); when set it wins"New value: +"Sender address (on a verified domain, or the sandbox sender). Optional when sender is set, the template has a sender, or the team has a default sender (a saved sender); when set it wins"
    • changedInput schema / properties / html / description
      Previous value: -"HTML body. Do not combine with template_id or template_alias"New value: +"HTML body. Not used with template_id or template_alias"
    • changedInput schema / properties / sender / description
      Previous value: -"A saved sender's handle or id from list_senders (for example billing): sends as its name and address, and replies go to its reply-to unless reply_to is set. Ignored when from is set"New value: +"A saved sender's handle or id (for example billing): sends as its name and address, and replies go to its reply-to unless reply_to is set. Ignored when from is set"
    • changedInput schema / properties / text / description
      Previous value: -"Plain-text body. Do not combine with template_id or template_alias"New value: +"Plain-text body. Not used with template_id or template_alias"
  6. Changed1 schema field changed
    • changedOutput schema / properties / held_back / items / properties / reason / description
      Previous value: -"Why: invalid_address (cannot exist), no_mail_server (domain takes no email), previously_bounced (hard-bounced for a Groundmail sender in the last 90 days) or mailbox_not_found"New value: +"Why: invalid_address (cannot exist), no_mail_server (domain takes no email), previously_bounced (hard-bounced for a Groundmail sender in the last 90 days), mailbox_not_found, or likely_bot_signup (looks like a bot sign-up; only when the send opted in)"
  7. Changed3 schema fields changed
    • changedInput schema / properties / from / description
      Previous value: -"Sender address (must match a verified domain or sandbox sender)"New value: +"Sender address (on a verified domain, or the sandbox sender). Optional when sender is set, the template has a sender, or the team has a default sender (list_senders); when set it wins"
    • addedInput schema / properties / sender
      Added value: +{
      +  "description": "A saved sender's handle or id from list_senders (for example billing): sends as its name and address, and replies go to its reply-to unless reply_to is set. Ignored when from is set",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "from",
      -  "to"
      -]New value: +[
      +  "to"
      +]
  8. Changed1 schema field changed
    • addedInput schema / properties / category
      Added value: +{
      +  "description": "transactional (default): sign-in codes, receipts, alerts. product: onboarding, lifecycle and notification email, with one-click unsubscribe. newsletter: opt-in newsletters, for approved accounts only (otherwise the send fails with newsletter_not_enabled), sent from separate IPs with one-click unsubscribe",
      +  "enum": [
      +    "transactional",
      +    "product",
      +    "newsletter"
      +  ],
      +  "type": "string"
      +}
  9. Changed1 schema field changed
    • addedInput schema / properties / tenant
      Added value: +{
      +  "description": "Send as this tenant: the send uses its domains, suppression list, pause switch and daily limit. Omit to send from the account as a whole. The tenant's external id (your id for that customer) or its Groundmail id",
      +  "type": "string"
      +}
  10. Changed2 schema fields changed
    • changedInput schema / properties / to / description
      Previous value: -"Recipient email address"New value: +"Recipient email address. A …@simulator.groundmail.dev address simulates an outcome and never delivers"
    • addedOutput schema / properties / test
      Added value: +{
      +  "description": "Present and true on a test send (test key or simulator addresses): nothing was delivered",
      +  "type": "boolean"
      +}
  11. Changed1 schema field changed
    • addedOutput schema / properties / held_back
      Added value: +{
      +  "description": "Present when Groundmail validation held some recipients back; the email went to the rest",
      +  "items": {
      +    "properties": {
      +      "email": {
      +        "description": "The held-back address",
      +        "type": "string"
      +      },
      +      "reason": {
      +        "description": "Why: invalid_address (cannot exist), no_mail_server (domain takes no email), previously_bounced (hard-bounced for a Groundmail sender in the last 90 days) or mailbox_not_found",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "email",
      +      "reason"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  12. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare the mutation/non-idempotent/open-world profile, and the description adds real value beyond them: the exact simulator domain and local-part patterns, plus-address behavior, that the response carries test: true, and that webhooks fire as for real mail. It stops short of mentioning rate limits, verification prerequisites, or that repeated calls send multiple emails.

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?

Two front-loaded sentences: content options first, testing path second, with no filler. The simulator address list is dense but each entry is load-bearing since they select different simulated outcomes.

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 13-parameter send tool with full schema coverage and an output schema, the description covers the decision-relevant choices (body form, template, test mode) and the test-result signal. Missing only ancillary operational context such as domain verification or sending limits, which the schema partially covers.

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 baselines at 3; the description largely restates schema content (body-option exclusivity, markdown table rendering) rather than adding new semantics. It does usefully summarize the two body strategies in one place, but adds nothing the schema parameters don't already say.

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?

States a specific verb and resource — 'Send a transactional email via Groundmail' — and immediately scopes the accepted body forms (subject + html/markdown/text, or template_id/template_alias). It does not name or contrast with the sibling send_mailbox_message, so an agent must infer which send path applies, keeping it just short of a 5.

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 clear conditional guidance: use a body form or a published template, and use a simulator address when you want to test without delivery. It does not state when to prefer this tool over send_mailbox_message or when a test is better validated via get_test_email/wait_for_test_email, but the primary usage split is explicit.

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.