Forke Mail
3 min read
Forke Mail MCP tools
Tools reference
These are the tools the MCP server and CLI offer right now. Every tool that changes something also accepts confirm_token and approval_id, which agents fill in after you confirm or approve.
| Tool | What it does | Level |
|---|---|---|
get_account | Current project, plan, credits and limits, warm-up status, verified sending domains and whether this connection uses a test key. Call this first. | Runs directly |
list_projects | Projects (workspaces) the signed-in user belongs to. | Runs directly |
switch_project | Point this AI connection at another of the user's projects. Only for OAuth connections; API keys always belong to one project. | Runs directly |
send_email | Send one transactional email (sign-in link, receipt, notification). Use html and/or text, or a saved template with data. With a live key this delivers a real email, so it asks for confirmation. With a test key nothing is delivered. | Asks you first with a live key; runs directly with a test key |
get_email | Status and content of one transactional email: queued, sent, delivered, bounced, complained, opened, clicked, or test. | Runs directly |
list_deliveries | Recent emails across transactional and broadcasts with their delivery status. Use it to answer why an email bounced or did not arrive. | Runs directly |
list_domains | Sending domains and their verification status. | Runs directly |
add_domain | Add a domain to send from. Returns the DNS records (DKIM CNAMEs, SPF, DMARC) the user must add at their DNS provider. Then use check_domain. | Runs directly |
check_domain | Re-check a domain's verification and DNS records, with exactly which record is missing. | Runs directly |
list_templates | Saved email templates with their variables. | Runs directly |
get_template | One template with its HTML, text and variables. | Runs directly |
save_template | Create a template, or update the one with the same name. Use {{variable}} for escaped values and {{{variable}}} for raw HTML. kind is transactional (always delivered) or marketing (skipped for unsubscribed contacts). | Runs directly |
delete_template | Delete a template. Emails or workflows using it will fail, so this asks for confirmation. | Asks you first |
list_contacts | Contacts in the project. | Runs directly |
upsert_contact | Create a contact or update their name, custom data and tags. Records a contact.saved event. | Runs directly |
track_event | Record that a contact did something (user.signed_up, order.paid). Creates the contact if needed and starts any workflow triggered by this event, which may send emails. | Runs directly |
list_segments | Saved audiences built from rules, with their size. | Runs directly |
create_segment | Save an audience from rules. Each rule is {"field","op","value"}; fields include email, first_name, last_name, status, tag, created_at, last_engaged_at, event, data.<field>. Use {"field":"group","op":"any"/"all","rules":[...]} for one nested group. Call call_api with POST /api/segments/preview to check the size first. | Runs directly |
create_broadcast | Create a newsletter or announcement as a draft. Nothing is sent until send_broadcast is approved by the user. | Runs directly |
send_broadcast | Launch a broadcast draft to its whole audience. Always needs the project owner's approval in the browser. | Needs your approval in the browser |
get_analytics | Sent, delivered, opened, clicked, bounced and complaint numbers with rates, compared with the previous period. | Runs directly |
create_api_key | Create an API key for the user's app. mode test (default) stores emails without delivering them; mode live sends for real. The key is shown once: tell the user to put it in an environment variable (FORKE_MAIL_API_KEY), never in code. | Asks you first |
call_api | Call any /api endpoint for things the other tools do not cover (workflows, topics, suppressions, team, webhooks, settings, campaigns, reports). Reading is free; risky changes ask for confirmation or approval. See the resource forke-mail://guide for the endpoint list. | Depends on the endpoint (see Safety model) |