Skip to main content
Glama

Send an email

send_email
Destructive

Send an email.

Validates and queues one email. Each recipient counts towards your quota. Use scheduled_at to send later (up to 30 days ahead). Pass tenant_id to send on behalf of a tenant (not needed when the from domain belongs to one). Fails with 422 if tenant_id conflicts with the domain's tenant, 403 sending_paused if the tenant is paused and 429 daily_quota_exceeded if it reached its daily cap. Pass tracking ({ open?, click? }) to override the domain's open/click tracking for this email only; an omitted key keeps the domain setting.

from must be on a verified domain (e.g. "Acme hi@acme.com"); call list_domains to find one. Provide html, text or both. Send to delivered@test.spacepost.dev (or bounced@ / complained@) to test without sending real mail. Delivered email cannot be recalled: confirm recipients and content with the user when unsure. Pass idempotency_key when retrying so the email is not sent twice.

Request body: Either html or text is required. reply_to is also accepted as replyTo and scheduled_at as scheduledAt.

Works with a sending_access or full_access API key. API: POST /emails (operationId sendEmail, Emails).

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
ccNo
toYes
bccNo
fromYesAn email address, optionally with a display name: `Acme <hello@acme.com>`. At most 998 characters, display name included. A display name can't contain `<`, `>` or an encoded word, and a `from` name can only show an email address on one of your verified domains.
htmlNo
tagsNo
textNo
headersNo
subjectYes
reply_toNo
trackingNoSpacePost extension. Overrides the sending domain's open/click tracking for this email only; an omitted key falls back to the domain setting (`PATCH /domains/{id}`). Lets a platform opt individual customers into open tracking on a shared domain.
tenant_idNoPlatform mode. Our tenant id or your `external_id`. Optional when the `from` domain belongs to a tenant; a conflict with the domain's tenant is a 422.
attachmentsNo
scheduled_atNoISO 8601 date-time or natural language such as "in 1 hour" or "in 2 days". At most 30 days ahead.
idempotency_keyNoA unique key (1 to 256 characters) that makes the request safe to retry for 24 hours.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / tracking
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "SpacePost extension. Overrides the sending domain's open/click tracking for this email only; an omitted key falls back to the domain setting (`PATCH /domains/{id}`). Lets a platform opt individual customers into open tracking on a shared domain.",
      +  "properties": {
      +    "click": {
      +      "description": "Track link clicks (rewrites links and adds `email.clicked` events).",
      +      "type": "boolean"
      +    },
      +    "open": {
      +      "description": "Track opens (adds a tracking pixel and `email.opened` events).",
      +      "type": "boolean"
      +    }
      +  },
      +  "type": "object"
      +}
  2. Changed6 schema fields changed
    • changedInput schema / properties / bcc / oneOf
      Previous value: -[
      -  {
      -    "description": "An email address, optionally with a display name: `Acme <hello@acme.com>`.",
      -    "examples": [
      -      "Acme <hello@acme.com>"
      -    ],
      -    "type": "string"
      -  },
      -  {
      -    "items": {
      -      "description": "An email address, optionally with a display name: `Acme <hello@acme.com>`.",
      -      "examples": [
      -        "Acme <hello@acme.com>"
      -      ],
      -      "type": "string"
      -    },
      -    "maxItems": 50,
      -    "minItems": 1,
      -    "type": "array"
      -  }
      -]New value: +[
      +  {
      +    "description": "An email address, optionally with a display name: `Acme <hello@acme.com>`. At most 998 characters, display name included. A display name can't contain `<`, `>` or an encoded word, and a `from` name can only show an email address on one of your verified domains.",
      +    "examples": [
      +      "Acme <hello@acme.com>"
      +    ],
      +    "maxLength": 998,
      +    "type": "string"
      +  },
      +  {
      +    "items": {
      +      "description": "An email address, optionally with a display name: `Acme <hello@acme.com>`. At most 998 characters, display name included. A display name can't contain `<`, `>` or an encoded word, and a `from` name can only show an email address on one of your verified domains.",
      +      "examples": [
      +        "Acme <hello@acme.com>"
      +      ],
      +      "maxLength": 998,
      +      "type": "string"
      +    },
      +    "maxItems": 50,
      +    "minItems": 1,
      +    "type": "array"
      +  }
      +]
    • changedInput schema / properties / cc / oneOf
      Previous value: -[
      -  {
      -    "description": "An email address, optionally with a display name: `Acme <hello@acme.com>`.",
      -    "examples": [
      -      "Acme <hello@acme.com>"
      -    ],
      -    "type": "string"
      -  },
      -  {
      -    "items": {
      -      "description": "An email address, optionally with a display name: `Acme <hello@acme.com>`.",
      -      "examples": [
      -        "Acme <hello@acme.com>"
      -      ],
      -      "type": "string"
      -    },
      -    "maxItems": 50,
      -    "minItems": 1,
      -    "type": "array"
      -  }
      -]New value: +[
      +  {
      +    "description": "An email address, optionally with a display name: `Acme <hello@acme.com>`. At most 998 characters, display name included. A display name can't contain `<`, `>` or an encoded word, and a `from` name can only show an email address on one of your verified domains.",
      +    "examples": [
      +      "Acme <hello@acme.com>"
      +    ],
      +    "maxLength": 998,
      +    "type": "string"
      +  },
      +  {
      +    "items": {
      +      "description": "An email address, optionally with a display name: `Acme <hello@acme.com>`. At most 998 characters, display name included. A display name can't contain `<`, `>` or an encoded word, and a `from` name can only show an email address on one of your verified domains.",
      +      "examples": [
      +        "Acme <hello@acme.com>"
      +      ],
      +      "maxLength": 998,
      +      "type": "string"
      +    },
      +    "maxItems": 50,
      +    "minItems": 1,
      +    "type": "array"
      +  }
      +]
    • changedInput schema / properties / from / description
      Previous value: -"An email address, optionally with a display name: `Acme <hello@acme.com>`."New value: +"An email address, optionally with a display name: `Acme <hello@acme.com>`. At most 998 characters, display name included. A display name can't contain `<`, `>` or an encoded word, and a `from` name can only show an email address on one of your verified domains."
    • addedInput schema / properties / from / maxLength
      Added value: +998
    • changedInput schema / properties / reply_to / oneOf
      Previous value: -[
      -  {
      -    "description": "An email address, optionally with a display name: `Acme <hello@acme.com>`.",
      -    "examples": [
      -      "Acme <hello@acme.com>"
      -    ],
      -    "type": "string"
      -  },
      -  {
      -    "items": {
      -      "description": "An email address, optionally with a display name: `Acme <hello@acme.com>`.",
      -      "examples": [
      -        "Acme <hello@acme.com>"
      -      ],
      -      "type": "string"
      -    },
      -    "maxItems": 50,
      -    "minItems": 1,
      -    "type": "array"
      -  }
      -]New value: +[
      +  {
      +    "description": "An email address, optionally with a display name: `Acme <hello@acme.com>`. At most 998 characters, display name included. A display name can't contain `<`, `>` or an encoded word, and a `from` name can only show an email address on one of your verified domains.",
      +    "examples": [
      +      "Acme <hello@acme.com>"
      +    ],
      +    "maxLength": 998,
      +    "type": "string"
      +  },
      +  {
      +    "items": {
      +      "description": "An email address, optionally with a display name: `Acme <hello@acme.com>`. At most 998 characters, display name included. A display name can't contain `<`, `>` or an encoded word, and a `from` name can only show an email address on one of your verified domains.",
      +      "examples": [
      +        "Acme <hello@acme.com>"
      +      ],
      +      "maxLength": 998,
      +      "type": "string"
      +    },
      +    "maxItems": 50,
      +    "minItems": 1,
      +    "type": "array"
      +  }
      +]
    • changedInput schema / properties / to / oneOf
      Previous value: -[
      -  {
      -    "description": "An email address, optionally with a display name: `Acme <hello@acme.com>`.",
      -    "examples": [
      -      "Acme <hello@acme.com>"
      -    ],
      -    "type": "string"
      -  },
      -  {
      -    "items": {
      -      "description": "An email address, optionally with a display name: `Acme <hello@acme.com>`.",
      -      "examples": [
      -        "Acme <hello@acme.com>"
      -      ],
      -      "type": "string"
      -    },
      -    "maxItems": 50,
      -    "minItems": 1,
      -    "type": "array"
      -  }
      -]New value: +[
      +  {
      +    "description": "An email address, optionally with a display name: `Acme <hello@acme.com>`. At most 998 characters, display name included. A display name can't contain `<`, `>` or an encoded word, and a `from` name can only show an email address on one of your verified domains.",
      +    "examples": [
      +      "Acme <hello@acme.com>"
      +    ],
      +    "maxLength": 998,
      +    "type": "string"
      +  },
      +  {
      +    "items": {
      +      "description": "An email address, optionally with a display name: `Acme <hello@acme.com>`. At most 998 characters, display name included. A display name can't contain `<`, `>` or an encoded word, and a `from` name can only show an email address on one of your verified domains.",
      +      "examples": [
      +        "Acme <hello@acme.com>"
      +      ],
      +      "maxLength": 998,
      +      "type": "string"
      +    },
      +    "maxItems": 50,
      +    "minItems": 1,
      +    "type": "array"
      +  }
      +]
  3. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Goes well past the annotations (destructive/openWorld) by naming concrete failure modes with codes: 422 tenant conflict, 403 sending_paused, 429 daily_quota_exceeded. It also discloses quota accounting per recipient, the verified-domain requirement, the tracking-override fallback semantics, and the irreversibility of sent mail.

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?

Purpose is front-loaded and the remaining sentences are dense with actionable specifics rather than filler. Minor waste in the opening line echoing the title and in the trailing API/operationId/aliases line, which is developer-doc residue rather than agent guidance.

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 15-parameter destructive tool with nested objects and no output schema, the description covers prerequisites, limits, error semantics and safety guidance well. The notable gap is the result: it never says what a successful call returns (e.g. an email id usable with get_email or cancel_email).

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 only 33%, so the description has to carry weight, and it does for the high-risk parameters: from must be on a verified domain (pointer to list_domains), html/text/both requirement, scheduled_at 30-day ceiling, tenant_id conflict rules, tracking override, and idempotency_key. It says nothing about cc/bcc, tags, headers, or attachments, which remain undocumented outside the schema.

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 plus the scope that matters for routing: "Validates and queues one email." The emphasis on ONE email sets it apart from send_batch_emails and send_broadcast without needing either schema opened.

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?

Explicitly says when to use scheduled_at, when tenant_id is needed and when it is redundant, when to pass tracking, when to pass idempotency_key (retry), and when to use the test addresses instead of real mail. It also adds a human-in-the-loop rule: confirm recipients and content with the user when unsure, since delivered mail cannot be recalled.

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.

Resources