mcp

v0.4.1
ai.sentfrom/mcp Checked 2 days ago Published 2 months ago

Email for AI agents: inboxes, send/reply/forward, search, threads, webhooks — 21 SentFromAI tools.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

create_inbox Create inbox

Create an email inbox for this tenant and return it (id, address, display_name, created_at). Uses the managed mail.sentfrom.ai domain unless domain_id names one of your verified custom domains. The address is live immediately. Errors: 400 invalid local_part, 402 plan inbox limit reached, 409 address already taken.

ParameterTypeDescription
local_part *stringPart before the @, e.g. "support" or "agent-42". Only a-z, 0-9, dot, underscore and hyphen; normalised to lowercase. Must be unique on the domain.
display_namestringOptional display name shown in the From header, e.g. "Acme Support".
domain_idstringOptional id of a verified custom domain (from add_domain / get_domain). Omit to use mail.sentfrom.ai.

list_inboxes List inboxes

List every inbox in this tenant (id, address, display_name, created_at). Call this before create_inbox to reuse an existing address.

delete_inbox Delete inbox

Permanently delete an inbox. Its address stops accepting mail immediately; messages already received stay searchable. Cannot be undone. Errors: 404 unknown inbox.

ParameterTypeDescription
inbox_id *stringId of the inbox to delete (from list_inboxes).

send_message Send email

Send a new email from one of your inboxes and return the created message (id, thread_id, delivery_status). Starts a new thread; to continue a conversation use reply_to_message so threading headers are set. Recipients matching a block rule are refused and addresses that previously bounced are suppressed. Pass client_id to make retries idempotent. Errors: 400 missing fields, 402 plan send limit reached, 413 message over 10 MB, 422 all recipients blocked or suppressed.

ParameterTypeDescription
inbox_id *stringId of the sending inbox (from list_inboxes).
subject *stringSubject line.
to *arrayRecipient email addresses; at least one.
attachmentsarrayOptional file attachments. The whole message must stay under 10 MB once encoded.
bccarrayOptional BCC addresses (not visible to other recipients).
ccarrayOptional CC addresses.
client_idstringOptional idempotency key you choose (e.g. a UUID). Resending with the same client_id returns the original message instead of sending again.
htmlstringOptional HTML body. text is used as the plain-text alternative.
textstringPlain-text body. Provide text, html, or both.

reply_to_message Reply to email

Reply inside an existing thread and return the created message. Sent from the inbox that received the original, to the original sender (or to everyone on the thread with reply_all), with the subject and In-Reply-To/References headers set so mail clients thread it correctly. Block rules and suppression apply. Errors: 404 unknown message, 402 plan send limit reached.

ParameterTypeDescription
message_id *stringId of the message to reply to (from search_messages, get_thread or a webhook event).
attachmentsarrayOptional file attachments, same shape as send_message.
htmlstringOptional HTML body of the reply.
reply_allbooleanReply to every original recipient (To and CC) instead of only the sender. Default false.
textstringPlain-text body of the reply.

forward_message Forward email

Forward a message to new recipients as a fresh thread, quoting the original and re-attaching its files, and return the created message. Useful for handing a conversation to a human. Errors: 404 unknown message, 402 plan send limit reached.

ParameterTypeDescription
message_id *stringId of the message to forward.
to *arrayRecipient email addresses; at least one.
client_idstringOptional idempotency key; a repeat with the same client_id does not forward twice.
from_inbox_idstringOptional inbox to send from. Defaults to the inbox that received the original.
textstringOptional note placed above the quoted original.

get_message Get message

Fetch one message by id: from/to/cc, subject, plain-text and HTML bodies, direction, delivery_status, thread_id, timestamps, and time-limited download URLs for attachments. Errors: 404 unknown message.

ParameterTypeDescription
message_id *stringId of the message (from search_messages, list_threads/get_thread or a webhook event).

search_messages Search messages

Search this tenant's messages, or list the most recent ones when query is omitted (the way to check for new mail). Returns up to limit message summaries (id, thread_id, direction, from_addr, to_addrs, subject, sent_at/received_at), newest first; use get_message for bodies. mode keyword matches words in subject and body, semantic finds messages by meaning, hybrid combines both.

ParameterTypeDescription
inbox_idstringOptional: restrict results to one inbox.
limitnumberMaximum results, 1-100. Default 25.
modestringSearch mode. Default keyword.
querystringSearch text. Omit to list the most recent messages.

list_threads List threads

List conversation threads, most recently active first: id, subject, participants, message_count, last_message_at. Use get_thread to read the messages of one thread.

ParameterTypeDescription
inbox_idstringOptional: restrict to threads involving one inbox.
limitnumberMaximum threads to return, 1-100. Default 25.

get_thread Get thread

Fetch a thread with all of its messages in chronological order, bodies included. Errors: 404 unknown thread.

ParameterTypeDescription
thread_id *stringThread id (from list_threads or a message's thread_id).

create_draft Create draft

Create a draft without sending it and return it (id, status draft or scheduled). Set scheduled_at to have it sent automatically at that time, or send it later with send_draft. With reply_to_message_id the draft becomes a threaded reply: recipients and subject default to the original message. Errors: 404 unknown inbox or message.

ParameterTypeDescription
inbox_id *stringInbox the draft will be sent from.
bccarrayOptional BCC addresses.
ccarrayOptional CC addresses.
htmlstringOptional HTML body.
reply_to_message_idstringId of a message this draft replies to; sets threading headers when sent.
scheduled_atstringISO 8601 timestamp in UTC, e.g. "2026-10-01T09:00:00Z". SentFromAI sends the draft automatically at this time.
subjectstringSubject. Optional for replies (defaults to "Re: <original subject>").
textstringPlain-text body.
toarrayRecipients. Optional for replies (defaults to the original sender).

send_draft Send draft

Send an existing draft now and return the resulting message. Works for drafts in status draft or scheduled; a draft that was already sent cannot be sent again. Errors: 404 unknown draft, 409 already sent.

ParameterTypeDescription
draft_id *stringId of the draft (from create_draft or list_drafts).

list_drafts List drafts

List this tenant's drafts: id, inbox_id, to, subject, status (draft, scheduled, sent) and scheduled_at.

add_domain Add sending domain

Register a custom domain for sending and receiving and return it (id, status pending) together with the DNS records to add: DKIM CNAMEs, MX and SPF for the mail-from subdomain, and DMARC. SentFromAI re-checks DNS automatically and marks the domain verified once the records propagate; poll with get_domain. Errors: 400 invalid hostname, 409 already registered.

ParameterTypeDescription
hostname *stringDomain or subdomain you control, e.g. "mail.example.com".

get_domain Get domain status

Get a domain's verification status (pending, verified, failed), the DKIM, SPF and DMARC check results, and the exact DNS records still required. Errors: 404 unknown domain.

ParameterTypeDescription
domain_id *stringId of the domain (from add_domain).

create_webhook Create webhook

Register an HTTPS endpoint that receives events as signed JSON POSTs and return it with its signing secret, which is shown only this once. Events: message.received (inbound mail, the default), message.delivered, message.bounced, message.complained, message.rejected. Failed deliveries are retried with backoff.

ParameterTypeDescription
url *stringHTTPS URL that will receive the POSTed events.
eventsarrayEvent types to subscribe to. Default ["message.received"].

list_webhooks List webhooks

List webhook endpoints: id, url, events, created_at. Signing secrets are never returned after creation.

delete_webhook Delete webhook

Delete a webhook endpoint. Event deliveries to it stop immediately. Cannot be undone. Errors: 404 unknown endpoint.

ParameterTypeDescription
webhook_id *stringId of the endpoint (from create_webhook or list_webhooks).

add_address_rule Add allow/block rule

Add a rule for an email address or a whole domain and return it (id, kind, direction, pattern). Block rules are enforced server-side for every inbox in the tenant: matching senders are refused on receive and matching recipients are refused on send. Allow rules are recorded for reference and are not enforced as exceptions. Errors: 400 invalid kind or pattern.

ParameterTypeDescription
kind *stringblock to refuse mail matching the pattern; allow to record an allow-listed address.
pattern *stringFull email address ("someone@example.com") or bare domain ("example.com", which matches every address at that domain). Case-insensitive.
directionstringWhere the rule applies: inbound (receiving), outbound (sending) or both. Default both.

list_address_rules List allow/block rules

List this tenant's allow/block rules: id, kind, direction, pattern, created_at.

delete_address_rule Delete allow/block rule

Delete an allow/block rule by id. Takes effect immediately. Cannot be undone. Errors: 404 unknown rule.

ParameterTypeDescription
rule_id *stringId of the rule (from add_address_rule or list_address_rules).