agentisend
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| AGENTISEND_API_KEY | No | Your API key. Read from the environment only — never passed as an argument, because process arguments are visible to every other process on the machine. | |
| AGENTISEND_MCP_URL | No | The hosted endpoint this launcher proxies to. Defaults to https://api.agentisend.com/mcp. | https://api.agentisend.com/mcp |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
AGENTISEND_API_KEY is not set, so this server can list its tools but cannot run them. Create an API key at https://console.agentisend.com/api-keys, set it as AGENTISEND_API_KEY in the env block of your MCP client config, then restart the client.
AgentiSend sends email and tells you why when it does not.
Start here:
whoamisays which account you are on, what this connection may do, and how much budget is left. Call it once, first.A sending domain:
create_domain, thensetup_domainfor the zone file and copy-paste commands. Publish those records, thenwait_for_domain. If someone else owns the DNS, calldomains_setup_linkand send them the url. The page shows the records and checks them. The link lasts 7 days. Send to an address ending in@simulator.agentisend.comwhile you wait, or fromonboarding@agentisend.comto a member sign-in address (20 a day).preflight_emailruns every check a send runs and sends nothing. Use it when you are unsure about an address, a sender domain, or whether a send would be refused.send_emailtakes one recipient or a list. It returns a message id immediately; delivery happens after.Receiving mail at your own domain: turn receiving on for a verified domain and publish its MX record; list_received_emails and get_received_email read it.
When something is refused:
Every refusal carries
code,message,fix,docs_urlandretryable. Readfixand do what it says.retryable: falsemeans waiting cannot help. Do not loop.retryable: truecarriesretry_after_seconds; wait exactly that long.If you are not sure why a message has not arrived, call
explain_emailwith its id, orwhy_was_this_not_sentwith its id — or with no id to read the state of this connection.
Three things are the account owner’s decision and no tool here can make them:
Approving a send that was held.
request_approvalis how you ask;list_agent_actionsis how you hear the answer.Resuming a key that was paused.
Raising a budget or a per-minute ceiling.
set_limitonly lowers them. When you meet one of these, say so and stop. Retrying, rewording or a different tool will not change it.
Working safely:
Send to an address ending in
@simulator.agentisend.comto test. Those cost nothing, reach nobody, and work before a domain is verified.Pass
idempotency_keyon anything that changes something whenever a retry could do the work twice.An address on the suppression list asked not to be contacted. Leave it there.
Unsolicited mail is refused; there is no tool for it.
tools/liststarts with the common tools.list_more_toolsnames the rest by category (metrics, templates, broadcasts, segments, keys and automations among them) and adds them totools/listfor this connection. Call them once your client shows them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
| prompts | {} |
| resources | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| send_emailA | Purpose: send one email now, or at a time you name. Takes one recipient or a list. Each To, CC and BCC recipient counts as one email. NOT for: checking whether a send would work (preflight_email), sending many different messages at once (send_batch), or asking a person first (request_approval). Returns: the message id and its status, immediately. Delivery happens after; get_email has the outcome. Refusals name the gate and the cure: validation_error lists the bad fields, domain_not_verified points at verify_domain, suppressed_recipient says the address asked not to be contacted, agent_unconfirmed means every recipient has to be the human until POST /agent/verify, and recipient_ramp names when the next new recipient is allowed. Addresses ending in @simulator.agentisend.com cost nothing, reach nobody, and work before any domain is verified. from onboarding@agentisend.com delivers real mail only to this account's member sign-in addresses, 20 per UTC day, with no cc, bcc, attachments, tracking, or extra headers. Sending twice is sending twice: pass an idempotency_key and a retry returns the first message id instead of a second email. |
| get_emailA | Purpose: read one message you sent, with its event timeline — queued, sent, delivered, bounced, complained. NOT for: working out what to DO about a bounce (explain_email), or finding an id (list_emails). Returns: the same message GET /emails/:id returns (from, to, cc, bcc, subject, html, text, tags, status, created_at and the rest), plus events in order. not_found means the id is not one of this account's; it is not retryable. |
| list_emailsA | Purpose: find messages, newest first. Filter by status, sender, recipient (to, cc or bcc), tag, domain or a search string — the same filters GET /emails takes. NOT for: analytics or counting — it pages rows, it does not aggregate. Returns: data, has_more, and next_cursor. Page again by passing next_cursor as cursor; when has_more is false you have everything. |
| create_domainA | Purpose: register a domain to send from, and get the exact DNS records to publish. NOT for: publishing those records — only whoever runs the DNS can do that — or checking them afterwards (verify_domain). Returns: the same domain view GET /domains/:id returns — every record with host, zone-relative name, value_strings, TTL, priority, required and observed, plus tls_mode (opportunistic by default, or enforced). The domain name is the name argument. Region is optional: us is the default, eu the other value. It is recorded on the domain; today all mail is sent from our US nodes, and eu domains move to EU sending automatically when it ships. A new domain reads pending while DNS spreads, which takes minutes to a day or two. Opportunistic — try TLS, fall back to plain when the receiver has none (the default). Enforced — refuse to deliver to a receiver that cannot do TLS; mail to such receivers bounces. |
| get_domainA | Purpose: read one domain and see which of its DNS records are in place. NOT for: re-checking DNS — this returns the last check; verify_domain runs a new one. Returns: the same domain view GET /domains/:id returns, including tls_mode, every record with its status, host, value_strings, TTL, priority, required and observed, plus recent_events (the five newest timeline rows; the full list is GET /domains/:id/events). Pass the domain id or the domain name as domain_id. id and name mean the same thing. |
| setup_domainA | Purpose: get the one-shot DNS sheet for a domain already registered with create_domain — zone file, copy-paste commands, provider, and every record with host, value_strings and whether it is required. NOT for: registering the domain (create_domain) or re-checking DNS (verify_domain / wait_for_domain). Returns: zone_file (required records first), commands for Cloudflare, Route 53 and gcloud, provider_hints, and the records to publish. Each record says action: add, edit (an SPF or DMARC record is already there — change it to value, never add a second), none (already in place) or check (what is there could not be read; see note). Pass the domain id or the domain name as domain. name means the same thing. |
| domains_setup_linkA | Purpose: a page the person who owns DNS can open without signing in. Call this when you cannot publish the records yourself, and send them the url. NOT for: reading the records yourself (setup_domain) or checking them (verify_domain). Returns: url and expires_at. The link lasts 7 days. A later call replaces it; the previous url stops opening. Pass the domain id or the domain name as domain. name means the same thing. |
| wait_for_domainA | Purpose: wait until a sending domain is verified or failed, without re-checking DNS yourself. Pass the id or the domain name as domain (name means the same thing). timeout=0 is a snapshot of the last check. NOT for: publishing DNS, or forcing a new lookup (verify_domain). The server keeps checking on its own for 72 hours. Returns: status, next_poll_seconds (when the server will check again), deadline (when the 72-hour window closes), reason, and progress (required_verified of required_total). If it is still pending, call again after next_poll_seconds, or send to an address ending in @simulator.agentisend.com meanwhile. |
| set_limitA | Purpose: lower the period budget or the per-minute ceiling on a key of this account — cap a job before it runs, or stand a key down after a mistake. NOT for: raising either one. A value above what the key has now is refused with human_action_required: that is the account owner's decision, made in the console. An agent_budget_exceeded or rate_ceiling_exceeded refusal is not cured here — wait for the period, or ask a person. Returns: the key id and confirmation the new, lower limits are stored. |
| get_agent_budgetA | Purpose: see how much of this key's send budget is left, when it refills, and its per-minute ceiling. Read it before a batch, and after an agent_budget_exceeded refusal. NOT for: changing any of it. Raising is the account owner's. Returns: budget, consumed, remaining, the period and when it resets, and the per-minute ceiling with its current window. |
| get_kill_switch_stateA | Purpose: find out whether this key is stopped, since when, and the reason recorded. Read it when a send fails with kill_switch_active. NOT for: lifting it. Nothing here can; a person resumes a key in the console. Returns: paused, paused_at, the reason, and where a person goes to undo it. |
| list_pending_approvalsA | Purpose: see which of your actions are waiting on a person, newest first. NOT for: deciding one — no tool approves or rejects — or reading a held message's contents, which stay out of reach by design. Returns: each action's id, kind, age and a shape of what it holds: recipient counts, whether there is a subject, whether there is a body. |
| request_approvalA | Purpose: ask a person before sending. Reach for it when a send is large, unusual, irreversible, or something you were told to check first. NOT for: sending. NOTHING IS SENT and no budget is spent. No tool approves one, including this one. Returns: the action id, state pending, sent: false, and where a person decides it. list_agent_actions is how you hear the answer. A payload that would be refused anyway is refused here rather than queued, so nobody is asked to approve a send that cannot succeed. |
| list_agent_actionsA | Purpose: read your held actions in any state — pending, approved, rejected, killed — and find out what a person decided and why. NOT for: reading what a held message said; tools see shapes, not contents. Returns: each action with its state, decision time, the reason given, and a shape of its payload. Filter by state, or omit it for everything. list_pending_approvals is this list narrowed to what is still waiting. |
| explain_emailA | Purpose: understand one message's outcome and act on it. Use it after a bounce, a complaint or a failure instead of guessing. NOT for: the raw timeline (get_email), or the state of the whole key (why_was_this_not_sent). Returns: the verdict, the evidence behind it (diagnostic code, feedback type, transport reason), whether retrying the identical send can work, and remediation as callable steps — each carrying the method, path and body. A step with no call is one only a person can do. |
| preflight_emailA | Purpose: find out exactly what a send would do, without doing it. Runs every gate a real send runs — validation, sending domain, sandbox, trust, suppression, budget, loop guard, content scan. NOT for: sending. Nothing leaves and no budget is spent, ever. Free and unlimited on purpose. Returns: the same ok/error POST /emails would return for the same payload, plus each gate's own verdict, and simulated: true when every recipient is a simulator address. The arguments are the same ones send_email takes: copies, headers, attachments, an inline image content_id, a template and a topic. |
| whoamiA | Purpose: the one read to make before deciding anything, and again after any refusal. Answers who you are and what you may do. NOT for: changing anything. Returns: the account and key, the scopes held, the tools those scopes can call, budget consumed and remaining with its refill time, the per-minute ceilings, whether the kill switch is down, the account trust standing, can_send_now as the summary for real recipients, can_send_to_simulator for test sends to @simulator.agentisend.com addresses, capacity.per_mail_system_per_hour (this account's own cap for one receiving mail system; 10 until the account is 7 days old) and capacity.shared_pool_per_mail_system_per_hour (all customers together), pending_approvals: sends from this key waiting for a person, which hold only those sends, test_send: before a domain verifies, the address a first test goes from and the account's own addresses it can go to, sending_domains.limit: how many verified sending domains this plan may hold (null when the plan has no cap), and next_step: when this account has no domain, one sentence telling you to offer setup plus the tools create_domain, get_domain and wait_for_domain (null once a domain exists). |
| why_was_this_not_sentA | Purpose: find out what is holding a send. Name an email_id for one message, or omit it to ask what is blocking this key and this account right now. NOT for: the outcome of a delivered message (get_email) or what to do about a bounce (explain_email). Returns: every blocker, each with why, the fix, and is_normal_wait — the field that matters, because a scheduled send and a paused key look identical without it. When nothing is blocking, it says so and says what it checked rather than implying a message exists. |
| get_trust_standingA | Purpose: read the account's standing — ok, warning, throttled or paused — and the reasons behind it. Check it first when a send fails with trust_paused. NOT for: changing it. Standing follows delivery outcomes; nobody sets it directly. Returns: the state, each reason with its metric, value, threshold and window, and when it is next reviewed. |
| cancel_emailA | Purpose: stop a message that has not gone out yet — scheduled or still queued. NOT for: recalling sent mail. Already-sent mail is history, and the refusal names the status it is actually in. Returns: the message id and its new status. A cancel is not the end: reschedule_email can revive a canceled message. |
| reschedule_emailA | Purpose: move a scheduled — or canceled — message to a new send time. NOT for: a settled message. Sent, bounced, failed, complained and suppressed cannot be moved, and the refusal names the status. Returns: the message id, its status and the new scheduled time. |
| send_batchA | Purpose: send up to 500 different messages in one call, the same ceiling as POST /emails/batch. Each item takes the same fields as send_email, including headers and attachments. NOT for: one message to many recipients — that is send_email with a list of addresses. Each To, CC and BCC recipient counts as one email. Returns: sent, failed, and one result per item IN THE ORDER YOU SENT THEM, each carrying the same code and fix a single send would have given. One bad address does not fail the batch. Each accepted item costs its own recipient count, and each To, CC and BCC recipient counts as one email. Pass an idempotency_key: a retried batch without one sends every accepted item again. |
| list_domainsA | Purpose: see the domains this account can send from and where each one stands. Call it before sending from an address you have not used. NOT for: the DNS records of one domain (get_domain) or re-checking them (verify_domain). Returns: each domain with its id, region, status and when it last verified. |
| verify_domainA | Purpose: re-read the public DNS for a domain and report which records are in place. NOT for: creating records. Publishing DNS is done wherever the domain is hosted, by whoever runs it. Returns: the same domain view GET /domains/:id returns after the check — every record with status, host, value_strings, required and observed. A domain with nothing published yet stays pending rather than failing: DNS takes minutes to a day or two to spread, and calling that a failure would make you give up on a domain that is about to work. Pass the domain id or the domain name as domain_id. id and name mean the same thing. |
| list_suppressionsA | Purpose: see which addresses this account will not send to, and why each one is on the list. Pass an email to read that one row, including its id. NOT for: a general contact list (list_contacts). Returns: each row with its id, address, level, origin (bounce, complaint or manual), source_id, stream, and platform. platform true means the row applies to every account. Filter with origin when you only want one of those three. |
| add_suppressionA | Purpose: stop sending to an address, or to a whole domain (pass "@example.com"). Use it the moment someone asks not to be contacted. NOT for: undoing one (remove_suppression). Returns: the row that now blocks that address. Adding is always allowed and always safe; it is the direction that protects the account. |
| remove_suppressionA | Purpose: let mail reach an address again, once you know the reason it was blocked is gone — a mailbox that was full, an address that was mistyped. Pass the id or the address. NOT for: an address that unsubscribed or reported a message as spam. Those are refused with human_action_required: somebody said no, and only they can change that. A platform row cannot be removed from this account. Returns: the id and confirmation it is gone. Removing a hard bounce you have not actually fixed damages every send that follows. |
| list_templatesA | Purpose: see the templates on this account and which version of each is live. NOT for: rendering one (render_template) or making a draft live (publish_template). Returns: each template with its current published version number. One with no published version cannot be sent yet. |
| render_templateA | Purpose: see exactly what a template produces with your values, and find out which variables it needs. NOT for: sending. Nothing leaves. Returns: the rendered HTML. An unknown or missing variable comes back named, with the fix, instead of shipping a half-filled email. |
| publish_templateA | Purpose: make a template's draft the version send_email uses. NOT for: editing. Published versions are immutable; publishing again makes the next one, so nothing already sent can change under you. Returns: the template id and the new version number. |
| list_segmentsA | Purpose: see the saved groups of contacts, the rules that define them, and how many people each currently matches. NOT for: sending to one. Who receives a broadcast is a person's decision. Returns: each segment with its rules and current size. |
| list_contactsA | Purpose: look up the people this account already has a relationship with. Pass an email to find one. NOT for: finding addresses to contact for the first time. This product has no feature for that and will not grow one. Returns: each contact with its properties, newest first. |
| upsert_contactA | Purpose: create a contact, or update the one with that address. Properties are merged, so you can set one field without knowing the rest. NOT for: subscribing anyone to anything, or sending. Adding a contact sends nothing. Returns: the contact as it now stands, including consent if it was given. |
| delete_contactA | Purpose: delete one contact. Its name, properties and the IP and wording recorded with its consent go at once; the address alone is kept, hidden, for 60 days so an unsubscribe link already sent still works, then removed. This is how a deletion request is honoured. NOT for: letting mail through again. An address that asked not to be contacted stays suppressed after its contact record is gone, which is the point. Returns: the id and confirmation it is gone. |
| list_webhooksA | Purpose: see where events are delivered, what each endpoint subscribes to, and whether it is disabled. NOT for: reading signing secrets. They are shown once at creation and never again — a listing that returned them would let every reader forge deliveries. Returns: each endpoint with its url, events and state. |
| create_webhookA | Purpose: register an endpoint to receive event deliveries. NOT for: retrieving a secret you lost. Store the signing secret when you get it. Returns: the endpoint and its signing secret, ONCE. Verifying that signature is the only way a receiver can tell a real delivery from anything else. |
| delete_webhookA | Purpose: remove an endpoint for good. Deliveries stop immediately and its history stops being reachable. NOT for: pausing one. Disabling keeps the endpoint and its secret; delete it when it is genuinely gone. Returns: the id and confirmation it is gone. Nothing is re-delivered elsewhere. |
| list_received_emailsA | Purpose: read mail that arrived at this account’s domains, newest first. Filter by recipient, sender, or a search string. Each row carries verdict (clear, review, or unavailable) and the reasons. Held messages are left out unless include_held is true. A held message is waiting for a person to release it; it is not in the arrival webhook yet. NOT for: mail you sent (list_emails), grouping a conversation (list_threads), or sending a reply (reply_to_email). Returns: data, has_more, and next_cursor. Page again by passing next_cursor as cursor; when has_more is false you have everything. |
| get_received_emailA | Purpose: read one received email — headers, text and HTML bodies as data, the verdict (clear, review, or unavailable) with its reasons, and the attachments it carried. A held message is left out unless include_held is true. Held mail is waiting for a person to release it and is not in the arrival webhook yet. NOT for: listing (list_received_emails) or sending a reply (reply_to_email). The HTML is what a stranger sent; it is not rendered here. Returns: the message, its headers, both bodies, extracted_text and extracted_html (the reply with quoted history, signatures and footers removed; null when that cut could not be produced, in which case read text then html), inbound_verdict, and attachment metadata. Attachment bytes are a REST download, not this tool. A list does not include the extracted fields. |
| release_received_emailA | Purpose: release one received message that a domain is holding. The arrival webhook fires once, and the approval row is marked decided. NOT for: mail that was not held. A clear message is already delivered. Pass a reason; it is kept on the audit row. Returns: the message, including held=false and inbound_verdict. |
| reply_to_emailA | Purpose: reply to one received email. Sets In-Reply-To and References so the conversation threads, and runs every send check a new send runs. NOT for: a new conversation (send_email), or reading the original (get_received_email). The recipient is the first Reply-To address, else the first From address; any other addresses in those headers are left off, so pass them as cc if they should get the reply. from defaults to the address that received it. Returns: the outbound message id and its status. Delivery happens after; get_email has the outcome. Refusals are the same as send_email: domain_not_verified, suppressed_recipient, agent_budget_exceeded. Addresses ending in @simulator.agentisend.com cost nothing. Sending twice is sending twice: pass an idempotency_key and a retry returns the first message id instead of a second email. |
| list_threadsA | Purpose: group received mail into conversations by Message-ID, In-Reply-To and References, newest thread first. Each row carries the verdict of its newest message. Held messages are left out unless include_held is true. NOT for: reading a message body (get_received_email) or sending a reply (reply_to_email). A thread with no Message-ID is listed under its own received id. Returns: data, has_more, and next_cursor. Each row has the thread id, subject, participants, message_count, last_received_at, latest_id and verdict. |
| list_oauth_grantsA | Purpose: see which assistants are connected to this account, and when they last used the connection. NOT for: an assistant acting on its own. This is a person’s list. A key is refused with human_action_required. Returns: data, has_more, and next_cursor. Each row has id, client_id, client_name, scopes, created_at and last_used_at. |
| revoke_oauth_grantA | Purpose: disconnect one assistant. Every token it holds, and the key behind them, die immediately. NOT for: an assistant acting on its own. A key is refused with human_action_required. Do this in the console Connections page. Returns: the connection id and deleted: true. Repeating the call on an already-revoked id is not_found. |
| list_more_toolsA | Purpose: see the rest of this server's tools when tools/list only showed the default set, and add them to tools/list for this connection. Filter by category if you already know the area; only that category is added. NOT for: calling a tool. Once your client re-reads tools/list, call the new tools like any other. Not a second permission check. Returns: data, has_more (always false), and next_cursor (always null). Each row has name, title, description, category and required_scopes. |
| get_email_eventsA | Purpose: read every event recorded for one sent message, oldest first, with the provider detail. NOT for: deciding what to do about a bounce (explain_email) or counting across many messages (get_metrics). Returns: data, has_more, and next_cursor. Each row has type, occurred_at, recipient, detail and provider_message_id. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| send_first_test | One test email to your own inbox, to see AgentiSend work. Before a domain is set up it goes from the shared onboarding address, so there is nothing to configure. |
| send_safely | The order of operations for sending: check what you may spend, test the send for free, then send once. |
| diagnose_delivery | What to call, in order, when an email did not arrive. |
| set_up_domain | The sequence for a new domain, including the part only a person can do. |
| set_up_my_domain | Offer domain setup, then create the domain, show the person the DNS records for their provider, and wait until it verifies. |
| stopped_what_now | How to read a refusal, and why retrying most of them is the wrong move. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| errors | Every error code with its fix and whether retrying can help. Read this before writing retry logic — most refusals here are not cured by waiting. |
| tools | Every tool with the scopes it needs and whether it changes anything. |
| limits | What this credential is allowed to spend, and how retries are made safe. |
| guardrails | The deliberate stops, why each one exists, and which human lifts it. Reading this is faster than discovering them one refusal at a time. |
| domains | The domains on this account and whether each is verified enough to send from. |
| templates | The templates on this account, and which of them have a published version. |
| thresholds | The published bounce and complaint rates that move an account down the ladder, and what each rung does. |
| emails-view | Recent sends with status, filters by status, and a peek at any message with its delivery events. |
| agents-view | One row per API key with its send budget, per-minute ceiling, loop guard and 30-day sends; the budget meter and stop state of the key this connection uses; and a stand-down that shows its effect before it runs. |
| domain-view | The DNS records a sending domain needs, each with the value to publish and its live status, and a button that checks DNS again. |
| preflight-view | What a real send would get: the verdict, the refusal and its fix when there is one, and every gate with what it found. Sends nothing. |
TDQS
Scored across 46 tools
Most tools have explicit Purpose and NOT for sections that clearly separate send, receive, domain, suppression, contact, webhook, approval and diagnostic workflows. However, the large set creates real overlap between get_email/get_email_events, list_agent_actions/list_pending_approvals, whoami and the specific budget/kill-switch/trust reads, and the several domain verification/setup tools.
The set overwhelmingly uses snake_case with action-oriented names such as send_email, list_domains, verify_domain and create_webhook. A few exceptions stand out, especially whoami and the noun-first domains_setup_link, plus list_more_tools, but the overall convention remains predictable.
The 46-tool surface is far above the typical 3-15 range and is heavy even for a broad email platform, forcing agents to navigate many closely related reads and diagnostics. list_more_tools also adds meta-complexity rather than reducing the load.
Core sending, receiving, domain, suppression, contact, webhook, approval and account-limit workflows are covered. Notable gaps remain: templates support list/render/publish but not create or edit, webhooks lack an update/disable operation, domains lack delete/update operations, and get_metrics is referenced in another description but is absent from this tool set.