mcp
v0.4.1Email 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.
| Parameter | Type | Description |
|---|---|---|
local_part * | string | Part 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_name | string | Optional display name shown in the From header, e.g. "Acme Support". |
domain_id | string | Optional 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.
| Parameter | Type | Description |
|---|---|---|
inbox_id * | string | Id 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.
| Parameter | Type | Description |
|---|---|---|
inbox_id * | string | Id of the sending inbox (from list_inboxes). |
subject * | string | Subject line. |
to * | array | Recipient email addresses; at least one. |
attachments | array | Optional file attachments. The whole message must stay under 10 MB once encoded. |
bcc | array | Optional BCC addresses (not visible to other recipients). |
cc | array | Optional CC addresses. |
client_id | string | Optional idempotency key you choose (e.g. a UUID). Resending with the same client_id returns the original message instead of sending again. |
html | string | Optional HTML body. text is used as the plain-text alternative. |
text | string | Plain-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.
| Parameter | Type | Description |
|---|---|---|
message_id * | string | Id of the message to reply to (from search_messages, get_thread or a webhook event). |
attachments | array | Optional file attachments, same shape as send_message. |
html | string | Optional HTML body of the reply. |
reply_all | boolean | Reply to every original recipient (To and CC) instead of only the sender. Default false. |
text | string | Plain-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.
| Parameter | Type | Description |
|---|---|---|
message_id * | string | Id of the message to forward. |
to * | array | Recipient email addresses; at least one. |
client_id | string | Optional idempotency key; a repeat with the same client_id does not forward twice. |
from_inbox_id | string | Optional inbox to send from. Defaults to the inbox that received the original. |
text | string | Optional 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.
| Parameter | Type | Description |
|---|---|---|
message_id * | string | Id 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.
| Parameter | Type | Description |
|---|---|---|
inbox_id | string | Optional: restrict results to one inbox. |
limit | number | Maximum results, 1-100. Default 25. |
mode | string | Search mode. Default keyword. |
query | string | Search 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.
| Parameter | Type | Description |
|---|---|---|
inbox_id | string | Optional: restrict to threads involving one inbox. |
limit | number | Maximum 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.
| Parameter | Type | Description |
|---|---|---|
thread_id * | string | Thread 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.
| Parameter | Type | Description |
|---|---|---|
inbox_id * | string | Inbox the draft will be sent from. |
bcc | array | Optional BCC addresses. |
cc | array | Optional CC addresses. |
html | string | Optional HTML body. |
reply_to_message_id | string | Id of a message this draft replies to; sets threading headers when sent. |
scheduled_at | string | ISO 8601 timestamp in UTC, e.g. "2026-10-01T09:00:00Z". SentFromAI sends the draft automatically at this time. |
subject | string | Subject. Optional for replies (defaults to "Re: <original subject>"). |
text | string | Plain-text body. |
to | array | Recipients. 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.
| Parameter | Type | Description |
|---|---|---|
draft_id * | string | Id 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.
| Parameter | Type | Description |
|---|---|---|
hostname * | string | Domain 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.
| Parameter | Type | Description |
|---|---|---|
domain_id * | string | Id 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.
| Parameter | Type | Description |
|---|---|---|
url * | string | HTTPS URL that will receive the POSTed events. |
events | array | Event 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.
| Parameter | Type | Description |
|---|---|---|
webhook_id * | string | Id 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.
| Parameter | Type | Description |
|---|---|---|
kind * | string | block to refuse mail matching the pattern; allow to record an allow-listed address. |
pattern * | string | Full email address ("someone@example.com") or bare domain ("example.com", which matches every address at that domain). Case-insensitive. |
direction | string | Where 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.
| Parameter | Type | Description |
|---|---|---|
rule_id * | string | Id of the rule (from add_address_rule or list_address_rules). |