Skip to main content
Glama

Send batch emails

send_batch_emails
Destructive

Send batch emails.

Sends up to 100 emails in one call. All-or-nothing, if any email is invalid none are sent. Attachments, scheduled_at and a per-email tenant_id and a per-email tracking override are supported; the paused-tenant and tenant-cap errors apply to the whole batch.

Put the emails in body as an array. Prefer send_email for a single message.

Works with a sending_access or full_access API key. API: POST /emails/batch (operationId sendBatchEmails, 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": {
      "body": "<body>"
    },
    "name": "send_batch_emails"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYesThe JSON request body.
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 / body / items / 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 / body / items / 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 / body / items / 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 / body / items / 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 / body / items / properties / from / maxLength
      Added value: +998
    • changedInput schema / properties / body / items / 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 / body / items / 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.1/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing transactional atomicity ("all-or-nothing, if any email is invalid none are sent") and the fact that paused-tenant and tenant-cap errors invalidate the whole batch. It also names the auth scopes required. Remaining gap: no mention of the response shape or partial-failure diagnostics, which matters for a write tool with no output schema.

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?

Front-loaded with the core capability and the 100-email limit, then atomicity, then the alternative, then auth. Sentences are short and earned. The trailing API endpoint/operationId parenthetical is metadata that adds little for an agent choosing the tool.

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 complex nested-array write tool with no output schema, the definition covers capacity, atomicity, auth, per-email overrides, and the sibling alternative. It stops short of describing the success response or how individual invalid emails are reported, which would be valuable given there is no output schema.

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 coverage is 100%, so both top-level parameters are already documented in detail. The description adds a structural hint ("Put the emails in `body` as an array") and flags which per-email features exist (attachments, `scheduled_at`, `tenant_id`, `tracking`), but those are already described in the schema, so the added meaning is modest.

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 batch emails") and immediately quantifies scope ("up to 100 emails in one call"). It also distinguishes itself from the closest sibling by naming send_email for single messages, so an agent can choose between them without opening either 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?

Explicitly routes single-message cases to send_email, which is the key selection decision. It also states the credential requirement (`sending_access` or `full_access` API key). It does not discuss when batch is a poor choice versus broadcast tools, but the primary alternative is covered.

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