truncus-mcp-server
v0.2.1Truncus email MCP server: send, send_sync, validate, events, stats, domains, suppression tools.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
truncus_send Send a transactional email
Send a transactional email without waiting for the delivery outcome. The call hands the email to the sending provider and returns a `message_id` with `status: sent` once the provider has accepted it (`scheduled` when send_at is set); whether it reached the inbox is reported later — read it with truncus_get_email or truncus_list_events. Use this for fire-and-forget transactional sends (welcomes, receipts, password resets). For synchronous delivery confirmation use truncus_send_sync. The `from` address must be on a verified Truncus domain — list yours with truncus_list_domains.
| Parameter | Type | Description |
|---|---|---|
from * | string | Sender address. Must match a verified Truncus domain. |
subject * | string | Email subject. |
to * | string | Recipient email address. |
html | string | HTML body. Required unless template_id is provided. |
idempotency_key | string | Optional. Stable key tied to your business event (e.g. order-1234-receipt). Omit it and the server derives one deterministically from this call's arguments, so an identical retry is recognised as a du… |
metadata | object | Arbitrary key/value metadata stored with the email record. |
reply_to | string | Reply-to address. |
send_at | string | ISO 8601 future datetime to schedule delivery (e.g. 2026-04-01T09:00:00Z). |
template_id | string | Saved template ID. Mutually exclusive with html. |
tenant_id | string | Isolate suppression lists per tenant in multi-tenant applications. |
text | string | Plain-text fallback body. |
variables | object | Template variable substitutions ({{key}} syntax). |
truncus_send_sync Send an email and wait for delivery confirmation
Send a single transactional email and wait for the receiving mail server to accept it, on the same call. Returns the final delivery status — `delivered`, `bounced`, `complained`, `failed`, or `blocked` (Truncus refused the send before handing it to a provider: sending domain not found, not verified, paused or over its daily cap; sandbox recipient restriction; message type not matching the domain type; or all recipients suppressed — the response carries a `code`) — instead of just `queued`. If no outcome arrives within 25 seconds it returns `pending` with the `message_id` — check it lat…
| Parameter | Type | Description |
|---|---|---|
from * | string | Sender address. Must match a verified Truncus domain. |
subject * | string | Email subject. |
to * | string | Single recipient email address. |
html | string | HTML body. |
idempotency_key | string | Optional. Stable key tied to your business event (e.g. order-1234-receipt). Omit it and the server derives one deterministically from this call's arguments, so an identical retry is recognised as a du… |
metadata | object | Arbitrary key/value metadata stored with the email record. |
reply_to | string | Reply-to address. |
template_id | string | Saved template ID. |
tenant_id | string | Tenant scope for multi-tenant applications. |
text | string | Plain-text fallback body. |
variables | object | Template variable substitutions. |
truncus_validate Validate an email payload (dry-run)
Run the pre-send deliverability checks (suppression, domain health, content quality, deliverability score) without sending. Returns `valid`, a `confidence_score` (0–1), the per-check results in `checks` — including `from_domain_healthy.dkim_status` (`pass`, `fail` or `unknown`); `from_domain_healthy.spf` and `.dmarc` reflect whether the domain is verified with Truncus, not a live DNS check — non-blocking `warnings`, and a `recommendation` (`safe_to_send`, `send_with_caution` or `do_not_send`). Use before truncus_send to catch issues early when generating email content from an LLM.
| Parameter | Type | Description |
|---|---|---|
from * | string | Sender address. |
subject * | string | Email subject. |
to * | string | Recipient email address. |
html | string | HTML body. |
text | string | Plain-text fallback body. |
truncus_get_email Get email details and event timeline
Look up a specific email by its Truncus ID. Returns the full send record plus the event timeline (queued, sent, delivered, opened, clicked, bounced, complained). Use to verify outcome of an earlier send, debug deliverability issues, or read tracked engagement.
| Parameter | Type | Description |
|---|---|---|
id * | string | Email ID returned by truncus_send or truncus_send_sync. |
truncus_list_events List events for an email
Return the chronological event timeline for a single email — every state transition SES (or the configured provider) reports back. Use when the agent needs to surface "why did this email fail" or to wait for a specific event type.
| Parameter | Type | Description |
|---|---|---|
email_id * | string | Filter events for a specific email (required). |
limit | number | Max rows (default 50, max 100). |
type | string | Filter by event type: 'queued', 'sent', 'delivered', 'opened', 'clicked', 'bounced', 'complained', 'failed'. |
truncus_get_stats Get sending statistics
Aggregated send/open/click/bounce/complaint counts across the account for a configurable lookback window. Use to surface "how is my domain doing" answers, or to gate further sends on bounce-rate health.
| Parameter | Type | Description |
|---|---|---|
days | number | Lookback period in days (default 30, max 90). |
granularity | string | Bucket size: 'hour' or 'day' (default 'day'). |
truncus_list_domains List sending domains
List all domains attached to the account with verification status and per-domain stats (sent today, daily cap, bounce rate, complaint rate, health green/yellow/red). Use this before truncus_send to confirm which `from` addresses are usable.
truncus_check_suppression Check if an email is suppressed
Check whether a given recipient is on the account-wide (or tenant-scoped) suppression list. Always returns `email`, `suppressed`, `scope`, `reason` and `since`; a clean address is `suppressed: false` (HTTP 200, not a 404). Use to short-circuit sends to addresses that have previously bounced, complained, or unsubscribed.
| Parameter | Type | Description |
|---|---|---|
email * | string | Recipient email address to check. |
tenant_id | string | Scope the check to a specific tenant. |