truncus-mcp-server

v0.2.1
io.github.codevanmoose/truncus-mcp-server Checked 3 days ago Published 1 month ago

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

ParameterTypeDescription
from *stringSender address. Must match a verified Truncus domain.
subject *stringEmail subject.
to *stringRecipient email address.
htmlstringHTML body. Required unless template_id is provided.
idempotency_keystringOptional. 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…
metadataobjectArbitrary key/value metadata stored with the email record.
reply_tostringReply-to address.
send_atstringISO 8601 future datetime to schedule delivery (e.g. 2026-04-01T09:00:00Z).
template_idstringSaved template ID. Mutually exclusive with html.
tenant_idstringIsolate suppression lists per tenant in multi-tenant applications.
textstringPlain-text fallback body.
variablesobjectTemplate 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…

ParameterTypeDescription
from *stringSender address. Must match a verified Truncus domain.
subject *stringEmail subject.
to *stringSingle recipient email address.
htmlstringHTML body.
idempotency_keystringOptional. 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…
metadataobjectArbitrary key/value metadata stored with the email record.
reply_tostringReply-to address.
template_idstringSaved template ID.
tenant_idstringTenant scope for multi-tenant applications.
textstringPlain-text fallback body.
variablesobjectTemplate 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.

ParameterTypeDescription
from *stringSender address.
subject *stringEmail subject.
to *stringRecipient email address.
htmlstringHTML body.
textstringPlain-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.

ParameterTypeDescription
id *stringEmail 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.

ParameterTypeDescription
email_id *stringFilter events for a specific email (required).
limitnumberMax rows (default 50, max 100).
typestringFilter 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.

ParameterTypeDescription
daysnumberLookback period in days (default 30, max 90).
granularitystringBucket 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.

ParameterTypeDescription
email *stringRecipient email address to check.
tenant_idstringScope the check to a specific tenant.