mcp

v0.9.30
io.github.agenticmail/mcp Checked 14 hours ago Published 19 days ago

Real email and SMS for AI agents — send mail, receive verification codes, drive a real inbox.

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

send_email

Send an email from the agent's mailbox. The PRIMARY primitive for multi-agent coordination. **Use `to` and `cc` as the email standard intends** — `to` is the actor(s) the message is addressed to (one or two recipients in most cases); `cc` is everyone else on the thread for awareness. Lumping every participant on `to` is wrong and defeats the wake gating. WAKE SEMANTICS (0.9.0+): by default only local @localhost recipients on `to:` get a host wake; CC'd local agents receive the mail but don't wake — they see it on their next natural wake. To override: pass `wake: ["alice","bob"]` for specif…

ParameterTypeDescription
subject *stringEmail subject line
to *stringPrimary actor — the agent(s) you want to act on this message. Usually one address; rarely two. **Everyone else on the thread goes on `cc`, NOT here.** Lumping all participants on `to` defeats the wa…
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…
attachmentsarrayFile attachments
ccstringCC recipients — the team. Comma-separated, e.g. "vesper@localhost, orion@localhost". CC'd local recipients receive the mail but DO NOT wake by default (0.9.0+). Put the actor on `to`; CC the rest fo…
htmlstringHTML body (optional)
inReplyTostringMessage-ID to reply to (optional)
referencesarrayMessage-IDs for threading (optional)
textstringPlain text body
wakeOptional wake-control. Accepts: (1) an array of agent names — `["alice","bob"]` — to wake exactly those agents (overrides default To-only behaviour); (2) the string `"all"` to wake every local rec…

broadcast_email

Send the SAME email to N agents as N SEPARATE, ISOLATED emails — no CC, no shared thread. Each recipient sees ONLY their own address on the `To:` line and reads the message as a private 1:1 from you. Use this when you need to fan-out an announcement, hand the same task to several workers in parallel, or poll multiple agents for independent answers without letting them see each other's replies. **Not** a replacement for `send_email` + CC — use CC when the team should see each other and collaborate in one thread; use `broadcast_email` when the conversations are independent. Each per-recipien…

ParameterTypeDescription
subject *stringSubject line shared by every per-recipient delivery.
to *arrayList of recipient addresses. Accepts an array of strings (preferred) or a single comma-separated string. Each address gets its OWN email — there is no CC, no shared thread, no way for recipients to…
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…
attachmentsarrayFile attachments. Same set is attached to every per-recipient delivery.
htmlstringHTML body shared by every per-recipient delivery (optional).
textstringPlain text body shared by every per-recipient delivery.
wakeOptional wake-control. Accepts: (1) an array of agent names — `["alice","bob"]` — to wake exactly those recipients (others still receive the mail but stay asleep); (2) the string `"all"` to wake e…

list_inbox

List recent emails in the agent's inbox

ParameterTypeDescription
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…
limitnumberMaximum number of messages to return (default: 20)
offsetnumberNumber of messages to skip (default: 0)

read_email

Read the full content of a specific email by its UID

ParameterTypeDescription
uid *numberThe UID of the email to read
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…

delete_email

Delete an email by its UID

ParameterTypeDescription
uid *numberThe UID of the email to delete
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…

search_emails

Search emails by criteria (from, to, subject, text, date range). By default searches the local inbox only. Set searchRelay=true to also search the connected Gmail/Outlook account — results include relay UIDs that can be imported with import_relay_email.

ParameterTypeDescription
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…
beforestringMessages before date (ISO 8601)
fromstringFilter by sender address
searchRelaybooleanAlso search the connected Gmail/Outlook account (default: false). Use this to find past emails from the user's main inbox.
seenbooleanFilter by read/unread status
sincestringMessages since date (ISO 8601)
subjectstringFilter by subject keyword
textstringSearch body text
tostringFilter by recipient address

import_relay_email

Import an email from the connected Gmail/Outlook account into the agent's local inbox. This downloads the full message with all headers (Message-ID, In-Reply-To, References) so you can continue the thread using reply_email. Use search_emails with searchRelay=true first to find the relay UID.

ParameterTypeDescription
uid *numberThe relay UID of the email to import (from search_emails relay results)
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…

reply_email

Reply to an email. Fetches the original message, auto-fills To, Subject (Re:), In-Reply-To, and References, then sends with quoted body. **For multi-agent thread coordination, pass `replyAll: true`** — the original sender lands on To:, every other thread participant lands on Cc:. **Wake routing is body-aware**: if your reply addresses a specific CC'd agent ("Marlow —", "@kepler", "handing off to rivet", etc.), the dispatcher wakes them automatically. If your body has no such addressing, the original sender (on To:) wakes by default. **Pass `wake` to override** explicitly (e.g. `wake: ["mar…

ParameterTypeDescription
text *stringYour reply text
uid *numberUID of the email to reply to
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…
htmlstringHTML reply (optional)
replyAllbooleanReply to all recipients (default: false)
wakearrayOptional. Names of the agents who should get a host turn from the dispatcher when this reply lands. CC'd agents NOT in this list still receive the email but stay asleep — saves significant tokens on…

forward_email

Forward an email to another recipient. Outbound guard applies — HIGH severity content is held for review. Pass `wake` to limit which local recipients get a host turn from the dispatcher when this forward lands.

ParameterTypeDescription
to *stringRecipient to forward to
uid *numberUID of the email to forward
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…
textstringAdditional message (optional)
wakearrayOptional. Names of the agents who should get a host turn when the forward lands. Pass `[]` to deliver silently. Omit to wake everyone CC'd.

move_email

Move an email to another folder (e.g., Trash, Archive)

ParameterTypeDescription
to *stringDestination folder (e.g., Trash, Archive)
uid *numberUID of the email to move
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…
fromstringSource folder (default: INBOX)

mark_unread

Mark an email as unread

ParameterTypeDescription
uid *numberUID of the email
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…

mark_read

Mark an email as read

ParameterTypeDescription
uid *numberUID of the email
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…

list_folders

List all mail folders/mailboxes

ParameterTypeDescription
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…

list_folder

List messages in a specific folder

ParameterTypeDescription
folder *stringFolder path (e.g., INBOX, Trash, Sent)
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…
limitnumberMax messages (default: 20)
offsetnumberSkip messages (default: 0)

batch_delete

Delete multiple emails by UIDs

ParameterTypeDescription
uids *arrayArray of UIDs to delete
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…
folderstringFolder (default: INBOX)

batch_mark_read

Mark multiple emails as read

ParameterTypeDescription
uids *arrayArray of UIDs to mark as read
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…
folderstringFolder (default: INBOX)

manage_contacts

List, add, or delete contacts

ParameterTypeDescription
action *stringAction to perform
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…
emailstringContact email (for add)
idstringContact ID (for delete)
namestringContact name (for add)

manage_drafts

List, create, update, send, or delete drafts. On send, you can pass `wake` to limit which local recipients get a host turn — same semantics as send_email.

ParameterTypeDescription
action *stringAction to perform
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…
idstringDraft ID (for update/send/delete)
subjectstringSubject (for create/update)
textstringBody text (for create/update)
tostringRecipient (for create/update)
wakearrayOptional, for action=send. Names of the agents who should get a host turn when the drafted mail lands. Pass `[]` to deliver silently. Omit to wake everyone CC'd.

manage_scheduled

Manage scheduled emails: create a new scheduled email, list pending ones, or cancel one. Accepts flexible time formats for create: ISO 8601, relative ("in 30 minutes"), named ("tomorrow 8am"), day-based ("next monday 9am"), or human-friendly ("02-14-2026 3:30 PM EST").

ParameterTypeDescription
action *stringAction to perform (default: create)
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…
idstringScheduled email ID (for cancel)
sendAtstringWhen to send (for create)
subjectstringEmail subject (for create)
textstringBody text (for create)
tostringRecipient email (for create)

create_folder

Create a new mail folder for organizing emails

ParameterTypeDescription
name *stringFolder name (e.g., Projects, Clients, Newsletters)
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…

manage_tags

Create, list, delete tags, tag/untag messages, get messages by tag, or get all tags for a specific message.

ParameterTypeDescription
action *stringAction to perform
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…
colorstringTag color hex code (for create, e.g. #ff0000)
folderstringFolder the message is in (default: INBOX)
idstringTag ID (for delete, tag_message, untag_message, get_messages)
namestringTag name (for create)
uidnumberMessage UID (for tag_message, untag_message)

create_account

Create a new AgenticMail agent (email account + identity + API key + persona derived from role/metadata). Requires master API key. After creation: address them at `<name>@localhost`, delegate work via `call_agent({ target: "<name>", task: ... })`, or hand off via `send_email` / `message_agent`. The new agent acts as themselves — you never need to (and must not) roleplay them inside your host's native sub-agent tool.

ParameterTypeDescription
name *stringAgent name (will be used as email local part)
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…
domainstringEmail domain (default: localhost)
rolestringAgent role (default: secretary)

setup_operator_email

Save the operator's notification email address for bridge-escalation alerts. When sub-agents mail a host bridge (e.g. `wake: ["codex"]`) AND no fresh host session is available for a headless resume, the dispatcher forwards a digest to this address so the operator gets a phone push (via Gmail / Apple Mail / whichever app handles their address). Master-key scoped. The host agent should call this during bootstrap after asking the operator: "what email should we alert you at when sub-agents need your attention?" — the answer is typically the operator's personal Gmail with mobile push enabled. Id…

ParameterTypeDescription
email *stringOperator notification email (e.g. you@example.com). Pass `null` or an empty string to clear an existing setting.
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…

setup_email_relay

Configure Gmail/Outlook relay for sending real internet email (requires master API key). BEGINNER-FRIENDLY: Just needs a Gmail/Outlook email + app password. Agents send as user+agentname@gmail.com. Automatically creates a default agent (secretary) unless skipped. Best for: quick setup, personal use, no domain needed.

ParameterTypeDescription
email *stringYour real email address (e.g., user@gmail.com)
password *stringApp password (not your regular password)
provider *stringEmail provider (gmail, outlook, or custom)
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…
agentNamestringName for the default agent (default: secretary). This becomes the email sub-address, e.g., user+secretary@gmail.com
agentRolestringRole for the default agent (default: secretary)
imapHoststringIMAP host (auto-filled for gmail/outlook)
imapPortnumberIMAP port (auto-filled for gmail/outlook)
skipDefaultAgentbooleanSkip creating the default agent (default: false)
smtpHoststringSMTP host (auto-filled for gmail/outlook)
smtpPortnumberSMTP port (auto-filled for gmail/outlook)

setup_email_domain

Set up a custom domain for real internet email via Cloudflare (requires master API key). ADVANCED: Requires Cloudflare account, API token, and a domain. Emails send from agent@yourdomain.com with full DKIM/SPF/DMARC. Optionally configures Gmail SMTP as outbound relay (recommended for residential IPs). After setup with gmailRelay, use setup_gmail_alias for each agent.

ParameterTypeDescription
cloudflareAccountId *stringCloudflare account ID
cloudflareToken *stringCloudflare API token (Zone>Zone>Read, Zone>DNS>Edit, Zone>Email Routing Rules>Edit, Account>Cloudflare Tunnel>Edit, Account>Workers Scripts>Edit; optional: Account>Registrar: Domains>Edit for domain p…
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…
domainstringDomain to use (if already owned)
gmailRelayobjectGmail SMTP relay for outbound delivery (recommended for residential IPs without PTR records)
purchaseobjectPurchase a new domain (if domain not provided)

setup_guide

Get a comparison of email setup modes (Relay vs Domain) AND the optional channels — realtime voice (OPENAI_API_KEY), phone call-control with a 46elks-vs-Twilio provider choice, and the Telegram channel — each with difficulty levels, requirements, pros/cons, and step-by-step instructions. Show this to users who want to set up real internet email, voice calls, phone, or Telegram.

ParameterTypeDescription
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…

setup_gmail_alias

Get step-by-step instructions (with exact field values) to add an agent email as a Gmail "Send mail as" alias. Returns the Gmail settings URL and all field values. Required after domain mode setup with gmailRelay to show correct From address. The agent can automate this via browser tools or present instructions to the user.

ParameterTypeDescription
agentEmail *stringAgent email to add as alias (e.g., secretary@yourdomain.com)
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…
agentDisplayNamestringDisplay name for the alias (defaults to agent name)

setup_payment

Get instructions for adding a payment method to Cloudflare (required before purchasing domains). Returns Option A (self-service link) and Option B (browser automation steps). Card details go directly to Cloudflare — never stored by 🎀 AgenticMail.

ParameterTypeDescription
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…

purchase_domain

Search for available domains via Cloudflare Registrar (requires master API key). NOTE: Cloudflare API only supports READ access — domains must be purchased manually at https://dash.cloudflare.com or from another registrar (then point nameservers to Cloudflare).

ParameterTypeDescription
keywords *arrayKeywords to search for (e.g., ["mybot", "aimail"])
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…
tldstringPreferred TLD (default: checks .com, .net, .io, .dev)

check_gateway_status

Check the current email gateway status — relay mode, domain mode, or not configured

ParameterTypeDescription
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…

send_test_email

Send a test email through the gateway to verify configuration (requires master API key)

ParameterTypeDescription
to *stringEmail address to send the test to
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…

list_agents

List all AI agents in the system with their email addresses and roles. Use this to discover which agents you can call via call_agent (sync RPC) or email via send_email / message_agent (async). DO NOT spawn one of your host's native sub-agents and roleplay AS these agents — each one is a real identity with its own mailbox; just address them through AgenticMail and let them work as themselves.

ParameterTypeDescription
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…

message_agent

Async fire-and-forget: deliver a message to another AI agent's inbox. They will process it on their own schedule (immediately if a dispatcher is attached, later otherwise) and may reply by email. Use this for non-blocking handoffs. Prefer `call_agent` when you need a structured reply back. Both flows let the target agent do the work AS THEMSELVES — never roleplay them inside your own host.

ParameterTypeDescription
agent *stringName of the recipient agent (e.g. "researcher", "writer")
subject *stringMessage subject — describe the purpose clearly
text *stringMessage body
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…
prioritystringPriority level (default: normal)

check_messages

Check for new unread messages from other agents or external senders. Returns a summary of pending communications. Use this to stay aware of requests and coordinate with other agents.

ParameterTypeDescription
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…

delete_agent

Delete an agent account. Archives all emails and generates a deletion report before removing the account permanently. Returns the deletion summary. Requires master API key.

ParameterTypeDescription
name *stringName of the agent to delete
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…
reasonstringReason for deletion (optional)

stop_agent

HARD-stop an agent mid-task WITHOUT deleting it. Sets the agent's `stopped` flag and (0.9.29+) immediately ABORTS any in-flight worker for that agent — the running SDK call is killed via AbortController, any queued coalesced wakes are dropped, and any deferred rate-limit retries are cancelled. After the stop, the dispatcher refuses to wake the agent for any reason (allowlists, To/Cc, task events all silently no-op). Mail STILL lands in the mailbox, so the email-thread audit trail is preserved. Use this instead of `delete_agent` when you want to halt a churning sub-agent right now and keep th…

ParameterTypeDescription
name *stringName of the agent to stop
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…
reasonstringOptional free-form reason (e.g. "task superseded", "user requested halt") — stored on the agent row for later audit.

resume_agent

Reverse a previous `stop_agent` call. Clears the `stopped` flag so the dispatcher resumes waking this agent on incoming mail and task events. The agent's inbox is exactly as it was during the pause — any mail that arrived while stopped is still there and will be picked up on the next natural wake. Requires master API key.

ParameterTypeDescription
name *stringName of the agent to resume
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…

deletion_reports

List past agent deletion reports or retrieve a specific report by ID. Shows archived email summaries from deleted agents. Requires master API key.

ParameterTypeDescription
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…
idstringDeletion report ID (omit to list all reports)

manage_signatures

List, create, or delete email signatures

ParameterTypeDescription
action *stringAction to perform
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…
idstringSignature ID (for delete)
isDefaultbooleanSet as default signature (for create)
namestringSignature name (for create)
textstringSignature text content (for create)

manage_templates

List, create, or delete email templates

ParameterTypeDescription
action *stringAction to perform
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…
idstringTemplate ID (for delete)
namestringTemplate name (for create)
subjectstringTemplate subject (for create)
textstringTemplate body text (for create)

batch_mark_unread

Mark multiple emails as unread

ParameterTypeDescription
uids *arrayArray of UIDs to mark as unread
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…
folderstringFolder (default: INBOX)

batch_move

Move multiple emails to another folder

ParameterTypeDescription
to *stringDestination folder (e.g., Trash, Archive)
uids *arrayArray of UIDs to move
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…
fromstringSource folder (default: INBOX)

whoami

Get the current agent's account info — name, email, role, and metadata

ParameterTypeDescription
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…

update_metadata

Update the current agent's metadata. Merges provided keys with existing metadata.

ParameterTypeDescription
metadata *objectMetadata key-value pairs to set or update
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…

check_health

Check 🎀 AgenticMail server health status

ParameterTypeDescription
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…

wait_for_email

Block until a matching email (or task) lands in your inbox. Push-based (SSE) — far more efficient than polling. Supports filtering by sender, subject substring, thread (In-Reply-To), or a participants list. The single-most-useful tool for thread-based coordination: send a kickoff email CC'ing your team, then `wait_for_email({ subject: "<core thread subject>" })` to wake on the first reply. Non-matching events that arrive during the wait are ignored — you only resume when something you asked for shows up (or timeout).

ParameterTypeDescription
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…
fromstringOnly resume on an email FROM this address (case-insensitive substring match on the bare address — "orion" matches "orion@localhost").
inReplyTostringOnly resume on an email whose In-Reply-To header equals this Message-ID. Most precise thread filter — use when you have the exact Message-ID of the message you expect a reply to.
includeTasksbooleanInclude task-assignment events as matches (default: true). Set false if you only care about email.
participantsarrayOnly resume on an email from ANY of these addresses (case-insensitive). Use this to wait for any teammate's reply, e.g. ["vesper@localhost", "orion@localhost"].
subjectstringOnly resume on an email whose subject contains this string (case-insensitive). The thread's core subject works — "Build a small game" matches "Re: Build a small game".
timeoutnumberMax seconds to wait (default: 120, max: 300)

batch_read

Read multiple emails at once by UIDs. Returns full parsed content for each message in a single call.

ParameterTypeDescription
uids *arrayArray of UIDs to read
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…
folderstringFolder (default: INBOX)

inbox_digest

Get a compact inbox digest with subject, sender, date, flags and text preview for each message. More efficient than listing then reading individually.

ParameterTypeDescription
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…
folderstringFolder (default: INBOX)
limitnumberMax messages (default: 20, max: 50)
offsetnumberSkip messages (default: 0)
previewLengthnumberPreview text length (default: 200, max: 500)

template_send

Send an email using a saved template with variable substitution. Variables like {{name}} are replaced.

ParameterTypeDescription
id *stringTemplate ID
to *stringRecipient email
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…
bccstringBCC recipients
ccstringCC recipients
variablesobjectVariables to substitute: { name: "Alice" }
wakearrayOptional. Names of the agents who should get a host turn when this template-rendered mail lands. Pass `[]` to deliver silently. Omit to wake everyone CC'd.

manage_rules

Manage server-side email rules that auto-process incoming messages (move, tag, mark read, delete).

ParameterTypeDescription
action *stringAction to perform
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…
actionsobjectActions on match: { move_to?, mark_read?, delete?, add_tags? }
conditionsobjectMatch conditions: { from_contains?, subject_contains?, subject_regex?, to_contains?, has_attachment? }
idstringRule ID (for delete)
namestringRule name (for create)
prioritynumberHigher priority rules match first (for create)

cleanup_agents

List or remove inactive non-persistent agent accounts (requires master API key)

ParameterTypeDescription
action *stringAction to perform
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…
agentIdstringAgent ID (for set_persistent)
dryRunbooleanPreview without deleting (for cleanup)
hoursnumberInactivity threshold in hours (default: 24)
persistentbooleanSet persistent flag (for set_persistent)

save_thread_memory

Persist a one-paragraph memory of where THIS agent stands on the given thread. Called at the end of every wake — Claude Code reads it back into the next wake's prompt so the agent doesn't re-derive context from scratch by re-reading 10 prior messages. Pass `threadId` from `get_thread_id`. Fields are a snapshot: summary (where the thread stands), commitments (what you committed to), openQuestions (what you are blocked on), lastAction (what you just did), lastUid (newest UID you have digested). The file overwrites; you do not need to merge with the previous version — the dispatcher reads onl…

ParameterTypeDescription
threadId *stringStable thread id from get_thread_id. Required.
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…
commitmentsarrayThings you have committed to doing on this thread.
lastActionstringThe last action you took on the thread (e.g. "replied UID 41 asking for raw counts").
lastUidnumberNewest message UID you have digested into this memory.
openQuestionsarrayThings you are waiting on / open questions.
summarystringOne-paragraph narrative of where the thread stands.

get_thread_id

Resolve the stable thread id for a message UID. Use this BEFORE calling save_thread_memory or when you want to inspect the cache for a thread. Pass the UID of any message on the thread (root or reply) — the API normalises the subject, resolves the canonical root sender, and returns the same id every time. `folder` defaults to INBOX.

ParameterTypeDescription
uid *numberMessage UID.
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…
folderstringIMAP folder where the UID lives. Defaults to INBOX.

tail_worker

Tail the log of a running (or recently-finished) dispatcher worker. Use this when check_activity shows a worker has been running a long time or is marked stale, and you want to see what it is actually doing — every tool call, tool result, and assistant chunk is logged as a one-liner. Returns the last N lines (default 80). The workerId comes from check_activity output. Requires master key.

ParameterTypeDescription
workerId *stringWorker id from check_activity output.
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…
linesnumberHow many trailing log lines to return. Default 80, max 1000.

check_activity

Check which agents are currently being woken by the dispatcher. Use this when you sent mail to a teammate and want to know if they have actually started working, or to audit the live multi-agent state. Returns active workers with the agent name, what triggered the wake (mail UID + subject, or task id), how long they have been running, the most recent tool they invoked, how many tool calls they have made, a `stale` flag (true if the dispatcher has not heartbeated in 90s+), and a preview of recently-finished work. Workers may run for hours — there is no auto-eviction; staleness is just a hint.…

ParameterTypeDescription
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…
agentstringFilter to a specific agent by name (case-insensitive). Omit to see every active and recently-finished worker.
includeRecentbooleanInclude workers that finished in the last ~2 minutes (default: true). Set false to see only currently-running workers.

check_tasks

Check for pending tasks assigned to you (or a specific agent) or tasks you assigned to others

ParameterTypeDescription
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…
assigneestringCheck tasks for a specific agent by name (only for incoming direction)
directionstringincoming (assigned to me) or outgoing (I assigned)

claim_task

Claim a pending task assigned to you

ParameterTypeDescription
id *stringTask ID to claim
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…

submit_result

Submit the result for a claimed task, marking it as completed

ParameterTypeDescription
id *stringTask ID
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…
resultobjectTask result data

call_agent

Synchronous RPC to delegate work to another AgenticMail agent. Pipeline: the task is queued in AgenticMail, the target agent processes it AS THEMSELVES (under their real identity, mailbox, persona, and audit trail), and the structured result returns into your call. THIS IS HOW MULTI-AGENT COORDINATION IS SUPPOSED TO WORK from any MCP host. Do not, instead, spawn one of your host's native sub-agents and tell it to "act as <target>" — that produces output under your identity, never touches the target's inbox, and skips their persona. Pass outputSchema to require a structured deliverable shape:…

ParameterTypeDescription
target *stringName of the agent to call
task *stringTask description
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…
outputSchemaobjectOptional JSON Schema (draft-7 subset: type, required, properties, items, enum, additionalProperties, minLength/maxLength, minimum/maximum) describing the shape submit_result must conform to. The worke…
payloadobjectAdditional data
timeoutnumberMax seconds to wait (default: 180, max: 300)

manage_spam

Manage spam: list spam folder, report a message as spam, mark as not-spam, or get the spam score of a message. Emails are auto-scored on arrival; high-scoring messages are moved to Spam automatically.

ParameterTypeDescription
action *stringAction to perform
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…
folderstringSource folder (for report/score, default: INBOX)
limitnumberMax messages to list (for list, default: 20)
offsetnumberSkip messages (for list, default: 0)
uidnumberMessage UID (for report, not_spam, score)

manage_pending_emails

Check the status of pending outbound emails blocked by the outbound guard. You can list all your pending emails or get details of a specific one. You CANNOT approve or reject — only the owner can do that.

ParameterTypeDescription
action *stringAction to perform (list or get only — approve/reject require owner)
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…
idstringPending email ID (required for get)

sms_setup

Configure SMS/phone number access. Supports Google Voice legacy forwarding and direct 46elks provider delivery/webhooks.

ParameterTypeDescription
phoneNumber *stringSMS phone number in E.164 format (e.g. +46701234567 or +12125551234)
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…
apiUrlstring46elks only: optional API base URL override
forwardingEmailstringGoogle Voice only: email address Google Voice forwards SMS to (defaults to agent email)
forwardingPasswordstringGoogle Voice only: app password for a separate forwarding Gmail
passwordstring46elks only: API password
providerstringSMS provider (default: google_voice)
usernamestring46elks only: API username
webhookSecretstring46elks only: shared secret required on inbound SMS webhooks

sms_send

Send an SMS text message. Direct provider configs such as 46elks send through the provider API; Google Voice legacy configs return browser-send instructions.

ParameterTypeDescription
body *stringText message body
to *stringRecipient phone number
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…

sms_messages

List SMS messages (inbound and outbound). Use direction filter to see only received or sent messages.

ParameterTypeDescription
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…
directionstringFilter by direction
limitnumberMax messages (default: 20)
offsetnumberSkip messages (default: 0)

sms_check_code

Check for recent verification/OTP codes received via SMS. Scans inbound SMS for common code patterns (6-digit, 4-digit, alphanumeric). Use this after requesting a verification code during sign-up flows.

ParameterTypeDescription
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…
minutesnumberHow many minutes back to check (default: 10)

sms_parse_email

Parse an SMS from a forwarded Google Voice email. Use this when you receive an email from Google Voice containing an SMS. Extracts the sender number, message body, and any verification codes.

ParameterTypeDescription
emailBody *stringThe email body text to parse
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…
emailFromstringThe email sender address

storage

Full database management system for agents. 28 actions: DDL (create/alter/drop/clone/rename tables & columns), DML (insert/upsert/query/aggregate/update/delete/truncate), indexing (create/list/drop/reindex), import/export (JSON/CSV, conflict handling), raw SQL, maintenance (stats/vacuum/analyze/explain), archiving. WHERE supports operators: $gt, $gte, $lt, $lte, $ne, $like, $ilike, $in, $not_in, $is_null, $between. Works on SQLite, Postgres, MySQL, Turso.

ParameterTypeDescription
action *stringcreate_table, list_tables, describe_table, insert, upsert, query, aggregate, update, delete_rows, truncate, drop_table, clone_table, rename_table, rename_column, add_column, drop_column, create_index,…
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…
columnobjectFor add_column: {name, type, ...}
columnNamestringFor drop_column
columnsarrayFor create_table: [{name, type, required?, default?, unique?, primaryKey?, references?: {table, column, onDelete?}, check?}]
conflictColumnstringFor upsert/import
descriptionstringFor create_table: human-readable description
distinctbooleanSELECT DISTINCT
formatstringFor export: json|csv
groupBystringGROUP BY clause
havingstringHAVING clause
includeArchivedbooleanFor list_tables
includeDatabooleanFor clone_table
includeSharedbooleanFor list_tables
indexColumnsarrayFor create_index
indexNamestringFor create/drop_index
indexUniquebooleanFor create_index
indexWherestringPartial index condition
indexesarrayFor create_table: [{columns, unique?, name?, where?}]
limitnumberMax rows
newNamestringFor rename_table/rename_column/clone_table
offsetnumberSkip rows
oldNamestringFor rename_column
onConflictstringFor import: skip|replace|error
operationsarrayFor aggregate: [{fn: count|sum|avg|min|max|count_distinct, column?, alias?}]
orderBystringORDER BY clause
paramsarrayFor sql/explain: query params
rowsarrayFor insert/upsert/import: row objects
selectColumnsarraySpecific columns to select
setobjectFor update: {column: newValue}
sharedbooleanFor create_table: shared across agents
sqlstringFor sql/explain: raw SQL
tablestringTable name
timestampsbooleanFor create_table: auto-add created_at/updated_at (default: true)
whereobjectFilter conditions with operator support

sms_config

Get the current SMS/phone number configuration for this agent. Shows whether SMS is enabled, the phone number, and forwarding email.

ParameterTypeDescription
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…

sms_read_voice

Get instructions and URL for reading SMS directly from Google Voice web (FASTEST method). Returns the voice.google.com URL and guidance for browser-based SMS reading. Primary method - much faster than email forwarding.

ParameterTypeDescription
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…

sms_record

Record an SMS message read from Google Voice web or any other source. Saves to SMS database and extracts verification codes. Use after reading a message from voice.google.com.

ParameterTypeDescription
body *stringSMS message text
from *stringSender phone number
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…

phone_transport_setup

Configure the phone call-control transport for this agent. This stores provider credentials and webhook settings; it does not start a call. Pick ONE provider — 46elks or twilio — and supply that provider's credentials. For 46elks pass username + password; for twilio pass accountSid + authToken (or the generic username + password — for twilio username is the account SID and password is the auth token).

ParameterTypeDescription
phoneNumber *stringOwned caller phone number in E.164 format, e.g. +43123456789
webhookBaseUrl *stringPublic HTTPS base URL for AgenticMail phone webhooks
webhookSecret *stringShared secret included on provider webhook URLs (at least 24 characters)
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…
accountSidstringTwilio only: the account SID (alias for username when provider is "twilio").
apiUrlstringOptional provider API base URL override (46elks or Twilio REST root)
authTokenstringTwilio only: the account auth token (alias for password when provider is "twilio").
capabilitiesarrayTransport capabilities, e.g. ["call_control"] or ["call_control","realtime_media"]
passwordstring46elks API password. For twilio this is the auth token — prefer the authToken param for clarity.
providerstringPhone provider: "46elks" (default) or "twilio". Both support call-control missions and realtime voice.
supportedRegionsarraySupported region scopes: AT, DE, EU, WORLD
usernamestring46elks API username. For twilio this is the account SID — prefer the accountSid param for clarity.

phone_capabilities

Show the configured phone provider, caller number, supported regions, and whether realtime media is available.

ParameterTypeDescription
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…

telegram_setup

Configure the Telegram channel for this agent — register a bot token from @BotFather and link the chat(s) allowed to message the agent. The token is verified with Telegram and stored encrypted. Defaults to poll mode (call telegram_poll on a schedule); pass mode "webhook" with a public HTTPS webhookUrl + webhookSecret for push delivery.

ParameterTypeDescription
botToken *stringTelegram bot API token from @BotFather (e.g. 123456789:AA...).
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…
allowedChatIdsarrayAdditional chat ids permitted to message the agent. An empty allow-list means only the operator chat can reach the agent (fail-closed).
modestringInbound transport: "poll" (default — pull updates with telegram_poll) or "webhook" (Telegram pushes updates).
operatorChatIdstringThe chat id of the operator — always allowed to message the agent and to answer ask_operator questions.
webhookSecretstringWebhook mode only: shared secret echoed in the X-Telegram-Bot-Api-Secret-Token header (at least 16 chars, A-Z a-z 0-9 _ -).
webhookUrlstringWebhook mode only: public HTTPS URL Telegram delivers updates to.

telegram_config

Get the current Telegram channel configuration for this agent — whether it is enabled, the bot username, linked chats, and transport mode. Credentials are redacted.

ParameterTypeDescription
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…

telegram_send

Send a Telegram message from this agent's bot to a chat. Requires the Telegram channel to be configured (telegram_setup) and enabled.

ParameterTypeDescription
chatId *stringTarget Telegram chat id.
text *stringMessage text to send.
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…
replyToMessageIdnumberOptional Telegram message id to reply to.

telegram_messages

List stored Telegram messages (inbound and outbound) for this agent, newest first.

ParameterTypeDescription
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…
chatIdstringFilter by chat id.
directionstringFilter by direction.
limitnumberMax messages (default: 20, max: 100).
offsetnumberSkip messages (default: 0).

telegram_poll

Pull and process new Telegram updates (poll-mode transport). Call this on a schedule when the channel is in poll mode to ingest new inbound messages and answer ask_operator questions sent from the operator chat.

ParameterTypeDescription
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…

call_phone

Start a tracked outbound phone mission. This is call-control only unless the configured transport reports realtime_media; risky decisions must be encoded in policy and may require the operator. POLICY SCHEMA — every field below is REQUIRED and the literal values shown are the ONLY accepted values (anything else returns `unsafe-confirm-policy` / `invalid-policy`). Do not guess synonyms ("abort", "never_ever", true) — use the literals exactly. Minimal valid policy (copy-paste, then adjust the cost / duration / regions to taste): { "policyVersion": 1, "regionAllowlist": ["WORLD"], "ma…

ParameterTypeDescription
policy *objectPhone mission policy — see tool description for the minimal valid shape. All fields required.
task *stringConcrete call objective, e.g. "reserve a table for two at 19:30"
to *stringTarget phone number in E.164 format (e.g. +15555550100)
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…
dryRunbooleanWhen true, store the mission without calling the provider
voiceRuntimeRefstringOptional external voice runtime/session reference for future realtime integration

call_status

Get one phone mission by id, or list recent phone missions when id is omitted.

ParameterTypeDescription
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…
idstringPhone mission id
limitnumberMax missions when listing (default: 20, max: 100)
offsetnumberSkip missions when listing
statusstringOptional status filter when listing missions

call_transcript

Read the transcript entries recorded for a phone mission.

ParameterTypeDescription
id *stringPhone mission id
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…

call_cancel

Cancel a tracked phone mission in AgenticMail. Provider-side hangup is not guaranteed in this call-control slice.

ParameterTypeDescription
id *stringPhone mission id
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…

call_open_queries

List PENDING ask_operator queries on a phone mission (or all of an agent's missions when id is omitted). Use this BEFORE assuming a verification-style message from the operator is a fresh chat question — if there's an open query, the operator is most likely answering it. Pair with call_answer_query to inject the answer.

ParameterTypeDescription
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…
idstringPhone mission id. Omit to scan all of your agent's missions for open queries.

call_answer_query

Inject an answer to a pending ask_operator query on a live phone call. The voice agent's next poll picks it up within ~3 seconds and relays the answer verbatim to the other party on the line. Use when the operator has provided info the call needs (DOB / account # / address / yes-or-no decision) — this beats redialing by a factor of 30× in wall-clock time and preserves the original call's context. If the mission was already terminated and the query auto-closed, this returns alreadyAnswered=true and is a no-op. When the call had already dropped, the answer arms a callback-on-disconnect that t…

ParameterTypeDescription
answer *stringThe literal answer to relay back to the call (e.g. "11/26/1998", "Yes go ahead", "Approved up to $200"). The voice agent reads this verbatim to the other party.
mission_id *stringPhone mission id (oq_ ids are bound to one mission; you can get this from call_open_queries).
query_id *stringOperator-query id, e.g. "oq_abc-123…". From call_open_queries.
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…

media_capabilities

Report which media binaries (ffmpeg, ffprobe, ImageMagick, whisper.cpp, Python, edge-tts) are installed and available. Media tools are opt-in — call this first to see what operations are possible before attempting them.

ParameterTypeDescription
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…
refreshbooleanRe-probe the binaries instead of using the cached result (e.g. after installing one).

media_tts

Convert text to speech using Edge TTS (free, local — requires the optional node-edge-tts package). Returns an audio file path (OGG/Opus when ffmpeg is available, else MP3).

ParameterTypeDescription
text *stringText to speak.
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…
pitchstringPitch shift, e.g. "+5Hz" or "-10Hz".
ratestringSpeaking rate, e.g. "+20%" or "-10%".
voicestringPreset name (guy, jenny, aria, davis, tony, ana, brian, emma, ryan, sonia, william, natasha) or a full Edge voice id.

media_tts_voices

List the available text-to-speech voice presets.

ParameterTypeDescription
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…

media_image_edit

Edit an image: resize, crop, rotate, convert format, compress, overlay text, flip, blur, sharpen, grayscale. Requires ImageMagick.

ParameterTypeDescription
action *stringThe edit action to perform.
input *stringAbsolute path to the input image.
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…
anglenumberRotation angle in degrees (rotate).
blurRadiusnumberBlur radius (blur). Default: 5.
directionstringFlip direction. Default: horizontal.
fontColorstringText colour (text_overlay). Default: white.
fontSizenumberFont size in points (text_overlay). Default: 36.
formatstringOutput format: png, jpg, webp, gif, bmp, tiff (convert).
heightnumberTarget height in pixels (resize/crop).
offsetXnumberCrop X offset from top-left. Default: 0.
offsetYnumberCrop Y offset from top-left. Default: 0.
positionstringText position: north, south, center, northeast, etc. Default: south.
qualitynumberJPEG/WebP quality 1-100 (compress). Default: 80.
textstringText to overlay (text_overlay).
widthnumberTarget width in pixels (resize/crop).

media_video_edit

Edit a video. Basic: trim, extract_frame, extract_frames, convert, gif, compress, resize, add_audio, remove_audio, speed. Cinematic: color_grade, transition, text_overlay, picture_in_picture, split_screen, ken_burns, slow_motion, watermark, concatenate, audio_mix, auto_caption. Requires ffmpeg (ImageMagick for text/captions, whisper.cpp for auto_caption).

ParameterTypeDescription
action *stringThe edit action.
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…
audioPathstringPath to an audio file (add_audio, audio_mix).
bgVolumestringBackground audio volume for audio_mix. Default: 0.3.
captionColorstringAuto-caption text colour. Default: white.
captionFontSizenumberAuto-caption font size. Default: auto-scaled.
colorPresetstringColour grade preset: warm, cool, vintage, cinematic, dramatic, bleach, noir, vivid, muted, golden_hour.
crfnumberQuality 0-51, lower is better. Default: 28.
durationstringDuration in seconds.
endstringEnd time: "00:00:15" or "15".
fgVolumestringForeground audio volume for audio_mix. Default: 1.0.
filesarrayArray of file paths (concatenate).
fontColorstringText colour. Default: white.
fontSizenumberFont size for text_overlay. Default: 72.
formatstringOutput format: mp4, webm, mov, avi, mkv.
fpsnumberFrame rate.
heightnumberTarget height.
inputstringAbsolute path to the input video (or image for ken_burns). Not required for concatenate.
intervalnumberSeconds between extracted frames. Default: 1.
lutPathstringPath to a .cube LUT file for color_grade.
overlayOpacitynumberWatermark opacity 0.0-1.0. Default: 0.7.
overlayScalenumberWatermark scale 0.0-1.0. Default: 0.2.
pipPositionstringPiP position: top-left, top-right, bottom-left, bottom-right.
pipWidthnumberPicture-in-picture overlay width. Default: 320.
secondInputstringSecond video/image path (transition, picture_in_picture, split_screen).
speedFactornumberSpeed multiplier: 0.5 = half, 2 = double.
splitDirectionstringSplit-screen direction. Default: horizontal.
startstringStart time: "00:00:05" or "5".
textstringText for text_overlay.
textBgstringText background colour with opacity, e.g. "black@0.5".
textEndstringWhen text disappears (seconds).
textPositionstringText position: center, top, bottom, top-left, top-right, bottom-left, bottom-right.
textStartstringWhen text appears (seconds). Default: 0.
timestampstringTimestamp for single frame extraction.
transitionDurationnumberTransition duration in seconds. Default: 1.
transitionTypestringTransition type: fade, wipeleft, slideright, circlecrop, etc. Default: fade.
watermarkPathstringPath to the watermark/logo image.
watermarkPositionstringWatermark position: top-left, top-right, bottom-left, bottom-right, center.
whisperModelstringAbsolute path to a whisper.cpp model file (.bin) — required for auto_caption.
widthnumberTarget width.
zoomDirectionstringKen Burns: zoom_in, zoom_out, pan_left, pan_right, pan_up, pan_down.
zoomDurationnumberKen Burns output duration in seconds. Default: 5.
zoomFactornumberKen Burns zoom factor 1.0-3.0. Default: 1.5.

media_audio_edit

Edit audio: trim, convert format, merge files, adjust volume, change speed, extract from video, reverse, fade in/out. Requires ffmpeg.

ParameterTypeDescription
action *stringThe edit action.
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…
durationstringDuration (trim): "10".
endstringEnd time (trim): "00:00:15".
fadeDurationnumberFade duration in seconds (fade). Default: 3.
fadeTypestringFade direction (fade).
filesarrayArray of file paths to merge (merge).
formatstringOutput format: mp3, wav, ogg, flac, aac, m4a (convert/extract).
inputstringAbsolute path to the input audio (or video for extract). Not required for merge.
speedFactornumberSpeed: 0.5 = half, 2 = double (speed).
startstringStart time (trim): "00:00:05" or "5".
volumestringVolume: "1.5" (150%), "0.5" (50%), or "10dB", "-5dB".

media_info

Get metadata about any media file: duration, resolution, codec, bitrate, channels, etc. Requires ffprobe.

ParameterTypeDescription
input *stringAbsolute path to the media file.
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…

media_video_understand

Analyse a video before editing it. Extracts frames at intervals and (when a whisper model is supplied) transcribes the audio, returning a structured timeline of what is shown and said. Requires ffmpeg; transcription additionally needs whisper.cpp + a model file.

ParameterTypeDescription
input *stringAbsolute path to the video file.
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…
frameIntervalnumberSeconds between extracted frames. Default: 3.
maxFramesnumberMaximum number of frames to extract. Default: 30.
whisperModelstringAbsolute path to a whisper.cpp model file (.bin). When supplied, the audio is transcribed and merged into the timeline.

media_voice_clone

Synthesise speech in a reference voice using F5-TTS. Requires a Python interpreter with the f5-tts and soundfile packages. You MUST supply a reference audio sample and its transcript — there is no built-in voice.

ParameterTypeDescription
refAudio *stringAbsolute path to the reference audio sample (required).
refText *stringTranscript of the reference audio (required).
text *stringText to speak in the cloned voice. Keep it short (~15 words) for best quality.
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…
devicestringCompute device for F5-TTS: cpu, cuda, mps. Default: cpu.

memory

Your persistent, long-term memory — knowledge that survives across every conversation, like a human employee learning on the job. Use `set` to remember something durable (a preference, a fact, a correction, a learned skill); `search` to recall by topic; `list` to browse; `get` to read one entry; `delete` to forget. Memory is private to you and persists forever unless it decays from disuse or you delete it. Store things you would want to still know weeks from now — not transient task state.

ParameterTypeDescription
action *stringset | get | search | list | delete
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…
categorystringset: memory category (default: context).
contentstringset: the thing to remember (plain text).
idstringget | delete: the memory entry id.
importancestringset: how important this is (default: normal). critical entries never decay.
limitnumbersearch | list: max entries to return (default 50).
querystringsearch: the topic to recall.
tagsarrayset: optional tags.
titlestringset: a short title/label for the memory (optional — derived from content if omitted).

memory_reflect

Record a self-reflection into your persistent memory — an insight or lesson you want to carry forward (stored as a high-confidence `reflection` entry). Use this at the end of a task or conversation to capture what you learned.

ParameterTypeDescription
content *stringThe reflection / insight to remember.
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…
importancestringDefault: normal.
titlestringOptional short title.

memory_context

Get a ranked markdown digest of your most relevant persistent memory — what you would want loaded into your working context right now. Optionally pass a `query` to bias the digest toward a topic. This is the same memory block a voice/phone session injects so you act with full continuity.

ParameterTypeDescription
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…
maxTokensnumberApproximate size budget (default 1500).
querystringOptional topic to focus the digest on.

memory_stats

Get aggregate statistics about your persistent memory — total entries, breakdown by category / importance / source, and average confidence.

ParameterTypeDescription
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…

skill_list

List available phone-call skill playbooks, optionally filtered by category (e.g. "negotiation", "reservations", "debt-collection") or tag. Returns summaries (id, name, description, tags) — call `skill_load` with the id to get the full playbook.

ParameterTypeDescription
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…
categorystringFilter by category. Valid: negotiation, customer-service, reservations, medical-admin, legal-admin, finance-admin, real-estate, travel, subscription, home-services, social, civic, employment, debt-col…
tagstringFilter by a single tag (case-insensitive).

skill_load

Load the FULL skill playbook by id. Returns the complete JSON document: principles, scripted phrases, tactic priority list, boundaries, success/failure signals, exit strategy. Use the response to ground your next turns on the call — the playbook should drive your phrasing, tactic order, and exit decisions.

ParameterTypeDescription
id *stringSkill id (lowercase-hyphenated, e.g. "negotiate-bill-reduction").
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…

request_tools

Discover AgenticMail tools that are NOT already in your loaded tool list. Returns a text catalogue grouped by set (mail_extras, sms, agent_coord, …) with each tool name and its schema summary. After calling this, use `invoke` to call any tool by name. Optional filters: `query` (substring match on tool name/description) or `sets` (return only the named sets).

ParameterTypeDescription
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…
querystringCase-insensitive substring filter on tool name or description (e.g. "signature", "voice").
setsarrayRestrict the output to these set names (e.g. ["sms", "mail_extras"]). See SET_DESCRIPTIONS for valid names.

invoke

Call ANY AgenticMail tool by name with structured args — including tools not in your pre-loaded tool list. Use after `request_tools` to discover the right tool. Pass `_account` either at the top level OR inside `args`; either works. Example: invoke({ tool: "manage_signatures", args: { action: "create", name: "default", body: "—\nFola" }, _account: "Fola" }).

ParameterTypeDescription
tool *stringThe AgenticMail tool name to call (e.g. "manage_signatures", "sms_send"). See request_tools for the full catalogue.
_accountstringOptional. Override identity for THIS call: pass the AgenticMail agent name (e.g. "Fola") to authenticate as that agent. Requires AGENTICMAIL_ACCOUNT_KEYS_JSON to contain a matching key. Omit to use th…
argsobjectArguments for the target tool. Same shape you would pass if calling the tool directly.