Skip to main content
Glama

Emitd MCP Server

Send up to 100 emails

send_batch
Destructive

Send up to 100 independent emails in one call; each item has send_email's fields. Results come back per email, in input order. Same dry_run and duplicate protection as send_email, applied to the whole batch. If this key's guardrails need a person, the call either asks them in chat once for the whole batch, or returns status pending_approval with an approval_url on each email that waits.

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": {
      "emails": "<emails>"
    },
    "name": "send_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
emailsYes
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.
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 / emails / items / properties / attachments / description
      Added value: +"At most 10; more is refused with `validation_failed` (`too_many_attachments`)."
    • changedInput schema / properties / emails / items / 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 / emails / items / 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 / emails / items / 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 / emails / items / 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 / emails / items / properties / from / format
      Removed value: -"email"
    • addedInput schema / properties / emails / items / 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.5/5.0
Behavior5/5

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

Annotations only declare destructive/openWorld/non-idempotent; the description adds genuinely new behavior: results returned per email in input order, dry_run and duplicate protection applied batch-wide rather than per item, and the two possible human-approval paths (in-chat prompt vs. pending_approval status with an approval_url on each email). That is real disclosure an agent could not get from the annotations.

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?

Three sentences, front-loaded with the batch contract, then results ordering, then guardrail behavior. The final approval sentence is dense and slightly convoluted ('asks them in chat once for the whole batch, or returns status pending_approval...'), but every sentence carries information.

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?

Covers limits, ordering, dry-run/duplicate semantics and approval flow, which is most of what an agent needs and no output schema exists to lean on. It omits the most consequential batch question: whether one invalid email fails the entire call or only that item, which matters given the destructive annotation.

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 75% and the nested item schema is very thorough, so the baseline would be a 3. The description earns above baseline by clarifying that dry_run and duplicate protection are batch-scoped rather than per-email, which resolves a genuine ambiguity the schema leaves open for an array-of-requests tool.

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 with scope ('Send up to 100 independent emails in one call') and immediately distinguishes itself from the single-send sibling by saying each item 'has send_email's fields'. An agent can tell batch from single send 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?

The batching scope and the reference to send_email's fields make the selection condition clear (multiple independent messages in one call), but there is no explicit 'use send_email instead when...' exclusion, and nothing about partial-failure behavior or when to prefer splitting into multiple calls.

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.