Skip to main content
Glama

SpacePost

Send an email

send_email

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.

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).

Input Schema

NameRequiredDescriptionDefault
ccNo
toYes
bccNo
fromYesAn email address, optionally with a display name: `Acme <hello@acme.com>`.
htmlNo
tagsNo
textNo
headersNo
subjectYes
reply_toNo
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. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations, it discloses quota accounting per recipient, the 30-day scheduling ceiling, three named failure modes (422 tenant conflict, 403 sending_paused, 429 daily_quota_exceeded), required API key scopes, and the irreversibility of delivered mail. That is exactly the operational context the annotations cannot express.

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 action, then organized into constraints, testing, and safety. Dense but nearly every clause earns its place; only the trailing 'API: POST /emails (operationId sendEmail, Emails)' line is filler for an agent.

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 14-parameter mutation tool with no output schema and thin schema descriptions, the description covers auth, quota, scheduling, error handling, and the irreversibility warning. Gaps remain around attachment/header/tag usage and what the call returns (email id? queue status?), but nothing essential to invoking it correctly is missing.

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 29% schema coverage across 14 parameters, the description compensates well: it explains the html/text either-or requirement, the tenant_id conflict semantics, the replyTo/scheduledAt aliases, and the natural-language scheduling format. Secondary parameters such as headers, tags, and cc/bcc still get no mention in the description, so it does not fully close the coverage gap.

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?

The description states a specific verb and resource and adds the crucial scope qualifier 'queues one email', which separates it from send_batch_emails and send_broadcast. It also names the underlying operation (POST /emails) so the agent knows exactly which API is wrapped.

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?

It gives concrete routing guidance: call list_domains to find a verified `from` domain, use the delivered@/bounced@ test addresses to avoid real mail, and pass `idempotency_key` when retrying. It lacks an explicit 'use send_batch_emails instead when sending many', so the alternative-selection rule is only implied by 'one email'.

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