Skip to main content
Glama

Mailrun Agent Identity

Send email

send_email
Idempotent

Send from an identity (202 accepted, then queued; sent means provider acceptance, not delivery; follow meta.poll). Requires subject and text and/or html; recipients unique across to/cc/bcc; attachments as base64 within the size caps and scanning policy. Requires a stable idempotency_key.

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

Input Schema

NameRequiredDescriptionDefault
ccNo
toYesRecipient addresses (at least one).
bccNo
htmlNo
textNo
subjectYes
attachmentsNoUp to 25 attachments (filename, optional content_type, content_base64), within the 20 MiB per-file cap and the message size cap.
identity_idYesIdentity id from list_identities.
in_reply_toNoMessage-ID being replied to.
idempotency_keyYesStable key you choose (max 64 chars); reuse it on retry. A different payload under the same key is refused with idempotency_conflict.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior5/5

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

Beyond the annotations (openWorld, non-destructive, idempotent) the description discloses that acceptance is asynchronous ('202 accepted, then queued'), that 'sent' means provider acceptance rather than delivery, that meta.poll should be followed, and that retries must reuse the same key or be refused with idempotency_conflict. This is exactly the behavior an agent cannot infer from structured fields.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single dense paragraph that front-loads the verb and async outcome, then layers constraints and retry semantics. Parentheticals carry real information rather than filler; nothing is redundant.

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 10-parameter mutation tool with no output schema, the description covers async acceptance, polling, validation rules, and idempotent retry behavior. It could say more about what the accepted response contains and any identity-level sending permissions, but the essentials for a correct call are present.

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?

With only 50% schema coverage, the description compensates by adding cross-field rules the schema lacks: at least one of text or html must be supplied, and recipients must be unique across to/cc/bcc. Attachment base64 and the size/scanning caps are partly restated from the schema, but the cross-field constraints are genuine added meaning.

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?

The description states a specific action on a specific resource: send an email from an identity, with async semantics made explicit ('202 accepted, then queued'). It does not discriminate itself from the close sibling 'send_draft', so an agent must infer the distinction from the names alone.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The text lists hard requirements (subject plus text and/or html, unique recipients, idempotency_key) but never says when to use this tool rather than create_draft/send_draft, nor any when-not conditions. Constraint statements are not usage 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.

Resources