Docs
MCPPricingGo to Sales Montana

MCP server

Mailbox and email tools

Which mailboxes send, how much and when, what is about to go, and what went.

ToolWhoLevelConfirmsWhat it does
list_mailboxesAdmins and repsreadnoLists every email mailbox in the workspace with owner, provider, connection, whether sending is on or paused and why, health and the week's bounce numbers, daily limit, gap, what it sent in the last 24 hours, and which cadences chose it.
set_cadence_mailboxesAdminswritenoSets which mailboxes send a campaign's cadence emails and each one's daily cap on this cadence.
set_mailbox_limitsAdminswritenoChanges a mailbox's daily send limit across every campaign, the minimum gap in minutes between two emails from it, or its sender name.
pause_mailbox_sendingAdminsactyesStops one or more mailboxes sending cadence emails, with a reason.
resume_mailbox_sendingAdminsactyesLets paused mailboxes send again, named one by one or every paused one with all_paused.
set_send_windowAdminswritenoSets the hours and days a campaign's cadence emails go out, which is the same window its calls use.
test_sendAdmins and repswriteyesSends one email step, filled in for one lead, to the caller's own account email address only, never to the lead.
upcoming_sendsAdmins and repsreadnoPer lead in the cadence, what a campaign's cadence sends next: the step, and for an email the exact subject and body with fields filled, the recipient, the mailbox, the earliest send time in the lead's zone, and why it is held.
campaign_emailsAdmins and repsreadnoLists a campaign's emails in a period: sent, replies, bounced, failed, or all, with counts by status and sent counts by mailbox.
email_opensAdmins and repsreadnoLists sent emails that were opened or clicked in a window (default today): who, which email, the lead, the campaign, the rep, open and click counts, and the links clicked.
list_emailsAdmins and repsreadnoLists the workspace's email newest first, from every mailbox the caller may see, with filters for mailbox, direction, lead, address, campaign, status, unread and dates.
get_email_threadAdmins and repsreadnoReturns every email with one address, sent and received, from any mailbox the caller may see or only one mailbox, oldest first, with the full text of each.
draft_emailAdmins and repswritenoSaves an email as a draft in the caller's inbox, not sent.
send_emailAdmins and repswriteyesSends one plain text email now from a chosen or default mailbox, with the same checks as the inbox.

Conventions for every tool are on the overview. The order to call them in is on workflows.

Tools

list_mailboxes

Who: Admins and reps. Level: read. Confirms: no.

Lists every email mailbox in the workspace with owner, provider, connection, whether sending is on or paused and why, health and the week's bounce numbers, daily limit, gap, what it sent in the last 24 hours, and which cadences chose it. With campaign it also shows that cadence's cap and use of each mailbox.

ArgumentTypeRequiredAccepts, default and limits
campaignstringnoCampaign id, exact name or unique part of the name. Adds in_this_cadence, cap_here and sent_here_last_24h to each mailbox.

Returns: An object: mailboxes (mailbox, id, name, owner, provider, connection, sending 'on' / 'paused' / 'off (not connected)', paused_since, paused_reason, health, health_reason, bounced_7d, sent_7d, daily_limit, gap_minutes, sent_last_24h, cadences_choosing_it, and with campaign: in_this_cadence, cap_here, sent_here_last_24h), running_cadences_without_chosen_mailboxes (names), note.

Changes: None, read only.

Good to know:

  • sending 'on' means connected and not paused. Only chosen mailboxes ever send for a cadence.
  • sent_last_24h counts every outbound email from the mailbox in the rolling last 24 hours that is not a draft (any campaign, manual sends, test sends, failed ones included). This is what the daily limit is measured against.
  • The 'No campaign' holding campaign is left out of cadences_choosing_it.
  • running_cadences_without_chosen_mailboxes lists active cadences with no mailbox chosen. Those send no email at all, and note says so.
  • in_this_cadence is true only for a mailbox chosen for the given campaign. With none chosen it is false for every mailbox: nothing sends.
  • bounced_7d counts real bounces from the mailbox in the last 7 days (refusals are counted apart, as blocked in a day).
  • A bounce is the recipient's server saying the address does not take mail (550 5.1.1, user unknown, no such domain). The email is stored bounced, the address goes on the do not email list, the lead leaves that cadence, it counts in the mailbox's bounced_7d and the cadence's bounced, and no later step or other mailbox ever sends to it. A refusal is a provider turning the email down because of our side: before it went (an invalid address, the mailbox's sign in, quota or a block) or after (SPF, DKIM, DMARC, spam). It is stored blocked, shown as refused with the reason, suppresses nothing, the lead stays in the cadence, and the step holds: until a person sends it from Tasks when the address was refused, an hour when the mailbox was. Many refusals in a day pause the mailbox. The bounce is read from the delivery report itself, never from the copy of our own message under it.
  • After each cadence email a mailbox waits the time left in today's send window divided by the emails it still has room for today, moved up to a fifth either way at random, never less than the mailbox's own gap and never less than a random 10 to 15 minutes, so each mailbox can reach its daily limit by the end of the window. The wait is worked out again on every send.
WhenMessageWhat to do
campaign given but not found or ambiguousNo campaign "<ref>" in this workspace. / "<ref>" matches several campaigns: ...Use the exact name or id.

Example call:

{
  "name": "list_mailboxes",
  "arguments": {
    "campaign": "Happy Billing Q1"
  }
}

Example result:

{
  "mailboxes": [
    {
      "mailbox": "sam@happybilling.com",
      "id": "5e6f7a8b-4444-4c5d-8e9f-001122334455",
      "name": "Sam Lee",
      "owner": "Sam Lee",
      "provider": "google",
      "connection": "connected",
      "sending": "on",
      "health": "ok",
      "bounced_7d": 0,
      "sent_7d": 64,
      "daily_limit": 40,
      "gap_minutes": 5,
      "sent_last_24h": 12,
      "cadences_choosing_it": [
        "Happy Billing Q1 (cadence active)"
      ],
      "in_this_cadence": true,
      "cap_here": 15,
      "sent_here_last_24h": 9
    }
  ],
  "running_cadences_without_chosen_mailboxes": []
}

set_cadence_mailboxes

Who: Admins. Level: write. Confirms: no.

Sets which mailboxes send a campaign's cadence emails and each one's daily cap on this cadence. Use only for the exact list, changes for per mailbox on, off and cap, or none_chosen to clear the choice. A cadence sends only from mailboxes chosen here.

ArgumentTypeRequiredAccepts, default and limits
campaignstringyesCampaign id, exact name (case does not matter), or a part of the name that matches only one campaign in the workspace.
onlyarray of stringsnoMailbox addresses, ids, or unique parts of an address or sender name. Must not be empty. Replaces the whole list with exactly these, in this order (the first is the one used when rotate_mailboxes is off). Each must be connected.
changesarray of objectsnoEach item { mailbox: address or id, on?: boolean, cap?: number }. Cap 1 to 500, rounded. On true adds the mailbox (must be connected). on false removes it, and fails if it was the last one. cap sets this cadence's cap for that mailbox.
none_chosenbooleannoTrue. Clears the list. No email sends from this cadence until mailboxes are chosen again.

Returns: An object: campaign, sends_from (the mailboxes now on: mailbox, cap, sending 'on' or 'paused', sent_here_last_24h, read back through the cadence_mailboxes database function), note when some are paused. Plus action_id and undo_with.

Changes: Updates campaigns.sends_from.mailbox_ids (when the list changed) and campaigns.cadence_settings.mailbox_caps. Sends nothing by itself, but with a running cadence, emails start going from newly chosen mailboxes on the next send run.

Undo: Yes. undo_action runs set_cadence_mailboxes again with the previous list (or none_chosen when there was none) and the previous caps (15 where none was set). Only while the changed fields still hold what this change set; if someone changed them since, undo refuses and says so.

Good to know:

  • The cap is this cadence's own limit per rolling 24 hours (15 when not set). Each cadence that shares a mailbox has its own cap, and all of them together stay inside the mailbox's daily limit (set_mailbox_limits), which also counts manual sends.
  • Turning a mailbox on does not resume it when it is paused; it shows as paused in the result and sends nothing until resume_mailbox_sending.
  • A cap above the mailbox's daily limit is accepted; the mailbox limit still wins.
  • Order of operations: none_chosen, then only, then each change in order.
  • The database refuses to start a cadence with an email step unless at least one chosen mailbox is connected and not paused. Clearing or emptying the choice on a cadence that is already running is allowed; its emails then wait.
  • It writes the campaign row directly; it does not call the cadence_mailbox_set database function.
  • With none_chosen the summary reads 'no mailbox chosen, so no email sends until one is picked'.
WhenMessageWhat to do
No campaign argumentName a campaign (its name or id). list_campaigns shows them.Pass the campaign name or id.
A partial name matches several campaigns"<ref>" matches several campaigns: A; B. Use the exact name or id.Use the exact name or the id.
Nothing matchesNo campaign "<ref>" in this workspace.Check list_campaigns. Staff may need to pass workspace.
The caller's role is not org_admin or superadmin (checked by the server before run)Only a workspace admin can do this.Ask a workspace admin.
The person is not an admin of this workspace (checked in the database with mcp_is_org_admin; superadmins pass)Only an admin of <workspace> can do this.Ask a workspace admin to do it.
only is an empty list, or on false removes the last mailboxKeep at least one mailbox on, or this cadence cannot send email.Keep one on, or use none_chosen to clear on purpose.
A mailbox to turn on is not connected (for example warming, error, needs_reauth)<address> is still <status>, so it cannot send yet.Wait for it to connect or pick another.
cap outside 1 to 500 or not a numberA mailbox sends between 1 and 500 emails a day here.Use a cap from 1 to 500.
Mailbox ref unknown or ambiguousNo mailbox "<ref>" in this workspace. list_mailboxes shows them. / "<ref>" matches several mailboxes: ... Use the full address.Use the full address or id.
Nothing to changeSay what to change: only (the list to send from), changes ({ mailbox, on, cap }) or none_chosen.Pass only, changes or none_chosen.

Example call:

{
  "name": "set_cadence_mailboxes",
  "arguments": {
    "campaign": "Happy Billing Q1",
    "changes": [
      {
        "mailbox": "sam@happybilling.com",
        "on": true,
        "cap": 25
      }
    ]
  }
}

Example result:

{
  "campaign": "Happy Billing Q1",
  "sends_from": [
    {
      "mailbox": "sam@happybilling.com",
      "cap": 25,
      "sending": "on",
      "sent_here_last_24h": 4
    }
  ],
  "action_id": "c0ffee00-5555-4a4a-9b9b-0123456789ab",
  "undo_with": "undo_action"
}

set_mailbox_limits

Who: Admins. Level: write. Confirms: no.

Changes a mailbox's daily send limit across every campaign, the minimum gap in minutes between two emails from it, or its sender name. Send only what changes.

ArgumentTypeRequiredAccepts, default and limits
mailboxstringyesMailbox address, id, or a unique part of the address or sender name.
daily_limitnumberno1 to 2000. Clamped to 1..2000 (out of range values are clamped, not refused). A value that is not a number keeps the current limit (or 15). Counts every outbound email from the mailbox in a rolling 24 hours.
gap_minutesnumberno0 to 1440. Clamped to 0..1440. Not a number keeps the current gap (or 5). 0 means no gap.
sender_namestringnoAny text. Cut to 120 characters; empty is ignored. Stored as the mailbox display_name, used as the From name and {{sender_first_name}}.

Returns: An object: mailbox and the fields changed (daily_send_limit, min_gap_minutes, display_name). Plus action_id and undo_with.

Changes: Updates email_accounts daily_send_limit, min_gap_minutes and display_name. Affects every cadence and manual send from that mailbox.

Undo: Yes. undo_action runs set_mailbox_limits again with the old values of the fields that changed. Only while the changed fields still hold what this change set; if someone changed them since, undo refuses and says so.

Good to know:

  • The daily limit is shared: every cadence that sends from the mailbox, plus manual and test emails, count toward it. Each cadence also has its own cap there (set_cadence_mailboxes, 15 by default); the sender uses the lower of the two.
  • The gap is checked against any outbound email from the mailbox, from any campaign. When a mailbox has no gap set, the campaign's email_gap_minutes is used (5 by default).
  • It writes the row directly, not through the update_mailbox_settings database function.
WhenMessageWhat to do
The caller's role is not org_admin or superadmin (checked by the server before run)Only a workspace admin can do this.Ask a workspace admin.
The person is not an admin of this workspace (checked in the database with mcp_is_org_admin; superadmins pass)Only an admin of <workspace> can do this.Ask a workspace admin to do it.
No mailboxName a mailbox: its address or id (list_mailboxes shows them).Pass mailbox.
Mailbox unknown or ambiguousNo mailbox "<ref>" in this workspace. list_mailboxes shows them.Use the full address or id.
Nothing givenGive daily_limit, gap_minutes or sender_name.Pass at least one.

Example call:

{
  "name": "set_mailbox_limits",
  "arguments": {
    "mailbox": "sam@happybilling.com",
    "daily_limit": 40,
    "gap_minutes": 6
  }
}

Example result:

{
  "mailbox": "sam@happybilling.com",
  "daily_send_limit": 40,
  "min_gap_minutes": 6,
  "action_id": "a1a1a1a1-6666-4b4b-8c8c-0123456789ab",
  "undo_with": "undo_action"
}

pause_mailbox_sending

Who: Admins. Level: act. Confirms: yes, preview first, then the same call with confirm: true.

Stops one or more mailboxes sending cadence emails, with a reason. The mailbox stays connected and keeps receiving. A cadence whose only chosen mailboxes are paused holds its emails until one is resumed.

ArgumentTypeRequiredAccepts, default and limits
mailboxesarray of stringsyesMailbox addresses, ids, or unique parts of an address or sender name. JSON text of a list is also read as the list.
reasonstringnoAny text. Default: Paused by <person's name>. Cut to 300 characters.
confirmbooleannoTrue, or the text "true". Default: not set (returns the preview). Leave it out first and show the preview to the person. Call again with the same arguments plus confirm: true only after they agree.

Returns: Preview: would_pause (addresses not yet paused), already_paused, needs. After confirm: paused (addresses), reason, plus action_id and undo_with when any was paused.

Changes: Sets email_accounts.sending_paused_at, sending_paused_reason, and health.level 'paused' with the reason. The cadence sender then skips the mailbox for every cadence. Emails already due wait.

Undo: Yes when something was paused: undo_action runs resume_mailbox_sending for those mailboxes with confirm true. Only while the changed fields still hold what this change set; if someone changed them since, undo refuses and says so.

Good to know:

  • A follow up whose first email came from a paused mailbox is not held by the sender: it goes from another chosen mailbox as a new email, not a reply in the thread.
  • Pausing does not affect manual email sends through send_email; it only stops the cadence sender. test_send can still use a paused mailbox when named.
  • A paused mailbox can block starting a cadence: the database refuses to start a cadence with an email step unless at least one chosen mailbox is connected and not paused.
WhenMessageWhat to do
The caller's role is not org_admin or superadmin (checked by the server before run)Only a workspace admin can do this.Ask a workspace admin.
The person is not an admin of this workspace (checked in the database with mcp_is_org_admin; superadmins pass)Only an admin of <workspace> can do this.Ask a workspace admin to do it.
Empty listName the mailboxes to pause.Pass at least one mailbox.
Mailbox unknown or ambiguousNo mailbox "<ref>" in this workspace. list_mailboxes shows them.Use the full address or id.

Example call:

{
  "name": "pause_mailbox_sending",
  "arguments": {
    "mailboxes": [
      "sam@happybilling.com"
    ],
    "reason": "Bounces rising",
    "confirm": true
  }
}

Example result:

{
  "paused": [
    "sam@happybilling.com"
  ],
  "reason": "Bounces rising",
  "action_id": "b2b2b2b2-7777-4c4c-8d8d-0123456789ab",
  "undo_with": "undo_action"
}

resume_mailbox_sending

Who: Admins. Level: act. Confirms: yes, preview first, then the same call with confirm: true.

Lets paused mailboxes send again, named one by one or every paused one with all_paused. This is how a mailbox paused on purpose or by the bounce health check starts sending. The preview names each running cadence that chose these mailboxes and how many emails are due there.

ArgumentTypeRequiredAccepts, default and limits
mailboxesarray of stringsnoMailbox addresses, ids, or unique parts of an address or sender name. Needed unless all_paused is true.
all_pausedbooleannoTrue. Every paused mailbox in the workspace.
confirmbooleannoTrue, or the text "true". Default: not set (returns the preview). Leave it out first and show the preview to the person. Call again with the same arguments plus confirm: true only after they agree.

Returns: Preview: would_resume (mailbox, paused_reason), not_paused, running_cadences_that_start_sending (cadence, how, emails_due_now), note, needs. After confirm: resumed (addresses), plus action_id and undo_with when any was resumed.

Changes: Clears sending_paused_at and sending_paused_reason, sets health_since to now and health to level ok with resumed_at. Running cadences that chose the mailbox start sending its due emails on the next send run, inside window, caps and gap.

Undo: Yes when something was resumed: undo_action runs pause_mailbox_sending for those mailboxes with the first one's old reason and confirm true. Only while the changed fields still hold what this change set; if someone changed them since, undo refuses and says so.

Good to know:

  • The preview only lists cadences that are active on a campaign that is not paused and that chose one of these mailboxes. Cadences with no chosen mailbox never send from them.
  • The bounce counts restart from now (health_since), so the health check judges the mailbox afresh.
  • It writes the row directly; it does not call the mailbox_resume database function the description names.
  • Resuming does not reconnect a disconnected mailbox. A mailbox that is not connected still cannot send.
WhenMessageWhat to do
The caller's role is not org_admin or superadmin (checked by the server before run)Only a workspace admin can do this.Ask a workspace admin.
The person is not an admin of this workspace (checked in the database with mcp_is_org_admin; superadmins pass)Only an admin of <workspace> can do this.Ask a workspace admin to do it.
all_paused true and nothing is pausedNo mailbox is paused.Nothing to do.
No mailboxes and no all_pausedName the mailboxes to resume, or say all_paused.Pass mailboxes or all_paused true.
Mailbox unknown or ambiguousNo mailbox "<ref>" in this workspace. list_mailboxes shows them.Use the full address or id.

Example call:

{
  "name": "resume_mailbox_sending",
  "arguments": {
    "mailboxes": [
      "sam@happybilling.com"
    ]
  }
}

Example result:

{
  "would_resume": [
    {
      "mailbox": "sam@happybilling.com",
      "paused_reason": "Bounces rising"
    }
  ],
  "not_paused": [],
  "running_cadences_that_start_sending": [
    {
      "cadence": "Happy Billing Q1",
      "how": "chosen mailbox",
      "emails_due_now": 7
    }
  ],
  "note": "Emails due now go within minutes, inside each cadence's send window and caps.",
  "needs": "the person's confirm"
}

set_send_window

Who: Admins. Level: write. Confirms: no.

Sets the hours and days a campaign's cadence emails go out, which is the same window its calls use. Times are on each lead's own clock and emails always stay inside 08:00 to 21:00. reset true goes back to the workspace's window.

ArgumentTypeRequiredAccepts, default and limits
campaignstringyesCampaign id, exact name (case does not matter), or a part of the name that matches only one campaign in the workspace.
startstringnoHH:MM, 24 hour, like 09:00. Hours 0 to 23, minutes 00 to 59. Stored as dial_window_start. Emails never start before 08:00 whatever is set.
endstringnoHH:MM, 24 hour, like 17:00. Must be after start. Stored as dial_window_end. Emails never go at or after 21:00.
daysarray of stringsnoDay names (Mon to Sun, the first 3 letters are read, so Monday works) or numbers 1 to 7, 1 is Monday. At least one day; duplicates removed.
resetbooleannoTrue. Clears the campaign's start, end and days so the workspace window applies. Any start, end or days in the same call are then set on top.

Returns: An object: campaign, send_window (in words, after clamping to 08:00 to 21:00 and with the workspace values filled in), note. Plus action_id and undo_with.

Changes: Updates campaigns.dial_window_start, dial_window_end and dial_window_days. This also changes when reps can call this campaign's leads.

Undo: Yes. undo_action puts back the previous start, end and days on the campaign row. Only while the changed fields still hold what this change set; if someone changed them since, undo refuses and says so.

Good to know:

  • Each value not set on the campaign falls back to the workspace's value. With no days anywhere, Monday to Friday is used.
  • The email sender reads the lead's zone from the company phone number; with no usable phone it uses the workspace's business day time zone. It does not use the cadence's time_zone setting for the email window (cadence_email_pending in migration 20261201006000).
  • The window is checked when an email is about to send. Emails due outside it wait in the queue and go once the window opens.
  • With no window of its own (or after reset), a campaign's emails go 08:00 to 17:00 on weekdays in each lead's time zone. Calls follow the workspace's dialing hours.
  • After each cadence email a mailbox waits the time left in today's send window divided by the emails it still has room for today, moved up to a fifth either way at random, never less than the mailbox's own gap and never less than a random 10 to 15 minutes, so each mailbox can reach its daily limit by the end of the window. The wait is worked out again on every send. A longer window means longer gaps, not more emails.
WhenMessageWhat to do
No campaign argumentName a campaign (its name or id). list_campaigns shows them.Pass the campaign name or id.
A partial name matches several campaigns"<ref>" matches several campaigns: A; B. Use the exact name or id.Use the exact name or the id.
Nothing matchesNo campaign "<ref>" in this workspace.Check list_campaigns. Staff may need to pass workspace.
The caller's role is not org_admin or superadmin (checked by the server before run)Only a workspace admin can do this.Ask a workspace admin.
The person is not an admin of this workspace (checked in the database with mcp_is_org_admin; superadmins pass)Only an admin of <workspace> can do this.Ask a workspace admin to do it.
start or end is not HH:MMstart must be HH:MM, like 09:00. / end must be HH:MM, like 09:00.Use 24 hour HH:MM.
A day is not a day name or 1 to 7"<d>" is not a day. Use Mon to Sun or 1 to 7.Use Mon to Sun or 1 to 7.
days is an empty listGive at least one day.Pass at least one day.
Start is not before end (with stored values filled in)The window must start before it ends.Pick a start before the end.
Nothing givenGive start, end, days, or reset: true.Pass at least one.

Example call:

{
  "name": "set_send_window",
  "arguments": {
    "campaign": "Happy Billing Q1",
    "start": "09:00",
    "end": "16:30",
    "days": [
      "Mon",
      "Tue",
      "Wed",
      "Thu"
    ]
  }
}

Example result:

{
  "campaign": "Happy Billing Q1",
  "send_window": "Mon, Tue, Wed, Thu, 09:00 to 16:30 in each lead's own time zone",
  "note": "Calls on this campaign use the same window.",
  "action_id": "d3d3d3d3-8888-4d4d-8e8e-0123456789ab",
  "undo_with": "undo_action"
}

test_send

Who: Admins and reps. Level: write. Confirms: yes, preview first, then the same call with confirm: true.

Sends one email step, filled in for one lead, to the caller's own account email address only, never to the lead. It goes from the cadence's first usable chosen mailbox, or from a named mailbox. A rep can send only from their own mailbox, the same rule as send_email; an admin can use any, and only an admin can use a paused one. The subject starts with [Test]. Use it to see a real email in an inbox before going live.

ArgumentTypeRequiredAccepts, default and limits
campaignstringyesCampaign id, exact name (case does not matter), or a part of the name that matches only one campaign in the workspace.
stepstringnoStep number as get_cadence shows it (1 is the first, switched off steps keep their number), or a step id. Default: The first active top level email step. Must be an email step.
leadstringnoLead id, phone, exact name or unique part of the name. Default: The oldest enrolled lead with status queued or in_progress. The lead does not have to be in the cadence; then no lead draft is used and the step template goes. With no lead at all, fields use their fallbacks.
mailboxstringnoMailbox address, id, or a unique part of the address or sender name. Default: The first chosen mailbox that is connected and not paused. A named mailbox must be connected. For a rep it must be their own and not paused; an admin may name a paused one (this does not resume it).
confirmbooleannoTrue, or the text "true". Default: not set (returns the preview). Leave it out first and show the preview to the person. Call again with the same arguments plus confirm: true only after they agree.

Returns: Preview (no confirm): to, from, written_for, step, words_from, subject, body, mailbox_paused, goes_to_you_only true, needs. After confirm: the same fields plus email_id and sent true.

Changes: After confirm it sends one real email from the mailbox to the caller's own address and records it in emails (campaign_id empty, status sent or failed). That email counts toward the mailbox's daily limit and gap (both count every outbound email of the mailbox), but not toward the cadence's cap. Nothing in the cadence changes. Not tracked and no unsubscribe link.

Good to know:

  • The words are the lead's own draft for that step when one exists and is not rejected, whatever its approval state; otherwise the step template, even if the step copy is not approved. So a test can show words the cadence would hold.
  • The subject is the step's own subject. A real follow up goes as 'Re: <first email subject>' in the first email's thread; the test does not.
  • The send window, the cadence cap and the mailbox gap are not checked. Only the mailbox daily limit is checked, at confirm.
  • Fields are filled for the lead's chosen contact (the draft's contact, else the oldest contact with an email, gatekeepers last, else the company email).
  • With no lead given it writes for the first lead in the cadence, else the first lead in the campaign.
  • For a rep with no mailbox named, when the cadence would use someone else's mailbox, the rep's own connected, unpaused mailbox is used instead.
WhenMessageWhat to do
No campaign argumentName a campaign (its name or id). list_campaigns shows them.Pass the campaign name or id.
A partial name matches several campaigns"<ref>" matches several campaigns: A; B. Use the exact name or id.Use the exact name or the id.
Nothing matchesNo campaign "<ref>" in this workspace.Check list_campaigns. Staff may need to pass workspace.
The caller's account has no valid email addressYour account has no email address to send the test to.The person needs an email on their profile.
No step given and the cadence has no email step<campaign> has no email step yet.Add an email step first.
step number or id not foundNo step <ref>. Steps are numbered 1 to <n> (switched off steps keep their number); get_cadence lists them.Use get_cadence to find the step number.
The step is not an email stepStep <n> is a <channel> step, not an email.Pick an email step.
The step and the lead's draft have no bodyStep <n> has no words yet for <lead>. write_cadence or edit_step gives it some.Write the step copy first.
Named mailbox is not connected<address> is <status>, not connected, so it cannot send.Pick a connected mailbox.
Mailbox ref matches several or none"<ref>" matches several mailboxes: ... Use the full address. / No mailbox "<ref>" in this workspace. list_mailboxes shows them.Use the full address or id.
No mailbox named and every chosen one is pausedEvery mailbox chosen for <campaign> is paused (<list>). Name one with mailbox to send the test from it; this does not resume it.Pass mailbox.
No mailbox named and none chosenNo mailbox can send for this cadence. Name one with mailbox, or choose them with set_cadence_mailboxes.Pass mailbox or choose mailboxes.
At confirm, the mailbox already sent its daily limit in the last 24 hours<address> has reached its daily limit of <n>. Try another mailbox.Use another mailbox or wait.
The provider refused the sendThe test did not go out: <provider message>Check the mailbox connection, then try again.
A rep names a coworker's mailbox, or the cadence's mailbox is not theirs and they have no usable mailbox of their own<address> is not your mailbox. You can send only from your own; an admin can send from any mailbox here.Name your own mailbox, or ask an admin.
A rep's mailbox is pausedSending from <address> is paused (<reason>). resume_mailbox_sending turns it back on, or ask an admin to send the test.Resume the mailbox or ask an admin.

Example call:

{
  "name": "test_send",
  "arguments": {
    "campaign": "Happy Billing Q1",
    "step": "1",
    "lead": "Acme Dental",
    "confirm": true
  }
}

Example result:

{
  "to": "sam@happybilling.com",
  "from": "Sam Lee <sam@happybilling.com>",
  "written_for": "Acme Dental (jo@acmedental.com)",
  "step": 1,
  "words_from": "this lead's own email (approved)",
  "subject": "[Test] Billing at Acme Dental",
  "body": "Hi Jo, ...",
  "mailbox_paused": false,
  "email_id": "9d8e7f60-2222-4c3b-8a1b-112233445566",
  "sent": true
}

upcoming_sends

Who: Admins and reps. Level: read. Confirms: no.

Per lead in the cadence, what a campaign's cadence sends next: the step, and for an email the exact subject and body with fields filled, the recipient, the mailbox, the earliest send time in the lead's zone, and why it is held. Emails already due and waiting in the send queue come first, then leads in the cadence by their next step. Leads that are only in the campaign (not added to the cadence) are never listed; they are counted in leads_not_in_cadence and not_in_cadence or hint says so. Paged.

ArgumentTypeRequiredAccepts, default and limits
campaignstringyesCampaign id, exact name (case does not matter), or a part of the name that matches only one campaign in the workspace.
leadstringnoLead id, phone, exact name or unique part of the name. Narrows both lists to that lead.
channelstringnoEmail or all. Default: email. Enum: email, all. Email shows only leads in the cadence whose current step is an email step (read from the step itself, not the stored next channel), and due email tasks always show. all also shows call, LinkedIn and task steps.
limitnumberno1 to 300, with or without full_body. Default: 15. Clamped to 1..300. Page with offset; due emails come first in a stable order (due time, then id).
offsetnumberno0 or more. Default: 0. Clamped to 0..100000. Use next_offset from the previous page. The offset runs across due emails first, then scheduled leads.
full_bodybooleannoTrue or false. Default: false. False cuts each body to the first 700 characters.

Returns: An object: campaign_id, campaign, cadence_running, not_running_because, approve_each_email, send_window, due_now_waiting_to_send (count of open cadence email tasks), leads_scheduled (leads in the cadence matching the channel filter), leads_in_cadence, leads_not_in_cadence, items, next_offset (only when there is more), hint (only when nothing is listed: either the leads are not in the cadence, or no email is next for anyone), not_in_cadence (a sentence, when some leads are in the campaign but not in the cadence and hint does not already say it), note. Each email item: lead, company_id, to, person, step, channel, step_title, stage ('due now, waiting to send' or 'scheduled'), subject, body, words_from, follow_up_note, from, lead_time_zone, earliest_send, earliest_send_utc, step_due_at, held (list of reasons, or left out), problems (list, or left out). earliest_send is null when held. step_due_at is the lead's stored due time, or 'due now: the cadence picks it up on its next run, every few minutes' when it has none. Other channel items: lead, step, channel, stage, due, what_happens, held.

Changes: None, read only.

Good to know:

  • Held reasons it can give: the campaign or cadence not running, cold email campaign without an approved lead email, lead email waiting for approval, Montana still writing (up to 3 hours after the step came due, approval off), step copy not approved, no words, no email address, address suppressed, no mailbox chosen, every chosen mailbox paused, the first email's mailbox paused, cap for today used.
  • For a follow up whose first email's mailbox is now paused or removed it says held. The real sender does not hold in that case: that mailbox drops out of its list, so it picks another chosen mailbox and sends a fresh email, not a reply in the thread (cadence-email-send.ts:250 and 346).
  • The mailbox for a first email is the chosen mailbox with the most room today (only the first one when rotate_mailboxes is off), as the sender does.
  • earliest_send uses the zone from the cadence's time_zone setting if set, else the lead's phone, else the workspace. The sender itself uses the phone zone, else the workspace zone.
  • Due emails are open email tasks of this campaign with payload source outbound_engine_v1, ordered by due_at. Scheduled leads are enrollments in the cadence (in_cadence true) with status queued or in_progress, ordered by next_touch_at.
  • It does not check the mailbox gap, the follow up guard (a later email waits until the earlier one was sent and the step delay has passed since it), or the address verification before a first email.
  • A lead in the campaign but not in the cadence has no due time and is never shown as scheduled. When nobody is in the cadence, hint reads like: "146 leads are in this campaign but not in the cadence, so nothing sends. Add them with add_lists_to_cadence (or set_cadence_auto_add on so new leads join on their own)."
  • Paging: next_offset appears only when more items exist. With channel email and leads in the cadence but none on an email step, hint says how many leads are on a call, LinkedIn or task step first.
  • problems flags what would go out wrong for that email: a field with no value ('{{sender_first_name}} has no value: no mailbox name, <address> has no sender name (set_mailbox_limits sender_name)', '{{first_name}} has no value: the person it goes to has no name'), a greeting with a title and no name, or no email address. An unfilled field is left showing as {{field}} in subject and body, never printed blank. The rules are the approval check's (see approve_lead_drafts). A waiting draft that fails the check is also held: it is neither approved nor sent until fixed.
  • A cadence that writes each lead's own emails (Montana writes them, a write mode is set, it is a cold email campaign, or the lead had an own email in this campaign before) never sends the step's template in their place. A lead with no usable own email for its email step shows words_from 'nothing yet: this lead has no own email for this step', subject and body null, and a held reason starting 'No own email for this lead yet'. Only a cadence set with set_cadence_writing send_step_template true (or Montana writing off and the lead never had an own email here) shows words_from 'the step's template'.
WhenMessageWhat to do
No campaign argumentName a campaign (its name or id). list_campaigns shows them.Pass the campaign name or id.
A partial name matches several campaigns"<ref>" matches several campaigns: A; B. Use the exact name or id.Use the exact name or the id.
Nothing matchesNo campaign "<ref>" in this workspace.Check list_campaigns. Staff may need to pass workspace.
lead matches several leads"<ref>" matches several leads: ... Use the id.Use the lead id.

Example call:

{
  "name": "upcoming_sends",
  "arguments": {
    "campaign": "Happy Billing Q1",
    "limit": 2
  }
}

Example result:

{
  "campaign": "Happy Billing Q1",
  "cadence_running": true,
  "not_running_because": null,
  "approve_each_email": false,
  "send_window": "Mon, Tue, Wed, Thu, Fri, 08:00 to 17:00 in each lead's own time zone",
  "due_now_waiting_to_send": 3,
  "leads_scheduled": 38,
  "items": [
    {
      "lead": "Acme Dental",
      "to": "jo@acmedental.com",
      "person": "Jo Park",
      "step": 2,
      "channel": "email",
      "stage": "due now, waiting to send",
      "subject": "Re: Billing at Acme Dental",
      "body": "Hi Jo, following up ...",
      "words_from": "this lead's own email (approved)",
      "from": "Sam Lee <sam@happybilling.com>",
      "lead_time_zone": "America/Chicago",
      "earliest_send": "Tue, Dec 3, 8:00 AM (America/Chicago)",
      "earliest_send_utc": "2026-12-03T14:00:00.000Z",
      "step_due_at": "Mon, Dec 2, 6:00 PM (America/Chicago)"
    },
    {
      "lead": "Bright Smiles",
      "step": 1,
      "channel": "email",
      "stage": "scheduled",
      "held": [
        "sam@happybilling.com has used its cap for today here; it sends on a rolling 24 hours."
      ]
    }
  ],
  "next_offset": 2,
  "note": "Times are the earliest the step can go; the sender also keeps each mailbox's gap between emails and works through due emails every few minutes."
}

campaign_emails

Who: Admins and reps. Level: read. Confirms: no.

Lists a campaign's emails in a period: sent, replies, bounced, failed, or all, with counts by status and sent counts by mailbox. Pass email_id to read one email in full. Paged. Use it to check what actually went out, as opposed to steps marked completed.

ArgumentTypeRequiredAccepts, default and limits
campaignstringyesCampaign id, exact name (case does not matter), or a part of the name that matches only one campaign in the workspace.
periodstringnoToday, yesterday, this_week, last_week, last_7_days, this_month, last_30_days, all_time. Default: last_7_days. Enum as listed. Days are in the workspace time zone. all_time works only when from and to are not given.
fromstringnoYYYY-MM-DD. Overrides period. Inclusive.
tostringnoYYYY-MM-DD. Default: now. Inclusive (runs to the end of that day).
kindstringnoSent, replies, bounced, failed, all. Default: sent. Enum as listed. Sent = outbound with status sent, bounced or blocked. bounced = bounced or blocked. failed = failed. replies = inbound. all = outbound queued, sending, sent, failed, bounced or blocked (inbound not included).
leadstringnoLead id, phone, exact name or unique part of the name.
email_idstringnoAn email id from a previous list. Returns that one email in full instead of a list. It must belong to this campaign.
limitnumberno1 to 100. Default: 25. Clamped to 1..100.
offsetnumberno0 or more. Default: 0. Clamped to 0..100000.

Returns: List mode: campaign, kind, period, total, totals {sent, bounced, blocked, failed, replies}, sent_by_mailbox (address to count, left out for replies), emails (email_id, status, lead, person, from, to, subject, snippet, at, intent, reason, opens, automatic_opens, clicks), next_offset when more. Single mode (email_id): the email's fields: id, direction, status, from_address, from_name, to_addresses, subject, body_text (plain text, from HTML when needed), sent_at, received_at, created_at, error_detail, intent, open_count, click_count, first_opened_at, lead.

Changes: None, read only.

Good to know:

  • The period filters on created_at (when the email row was made), not sent_at.
  • totals always count every status for the period and lead, whatever kind is asked. sent_by_mailbox ignores the lead filter and reads at most 5000 rows.
  • Opens and clicks are tracked only when the cadence switched track_opens or track_clicks on; both are off by default since 1 December, so opens and clicks are usually empty. automatic_opens are proxy opens (mail scanners), not people.
  • A step that shows completed in cadence reports was handed to the sender; this tool shows what really went out (status sent).
  • Test sends from test_send have no campaign, so they never show here.
WhenMessageWhat to do
No campaign argumentName a campaign (its name or id). list_campaigns shows them.Pass the campaign name or id.
A partial name matches several campaigns"<ref>" matches several campaigns: A; B. Use the exact name or id.Use the exact name or the id.
Nothing matchesNo campaign "<ref>" in this workspace.Check list_campaigns. Staff may need to pass workspace.
email_id is not an email of this campaignNo such email in this campaign.List first and use an email_id from it.
Unknown periodUnknown period "<p>". Use one of: today, yesterday, ...Use a listed period or from/to.
Bad date"<x>" is not a date. Use YYYY-MM-DD.Use YYYY-MM-DD.

Example call:

{
  "name": "campaign_emails",
  "arguments": {
    "campaign": "Happy Billing Q1",
    "kind": "sent",
    "period": "today"
  }
}

Example result:

{
  "campaign": "Happy Billing Q1",
  "kind": "sent",
  "period": "today",
  "total": 2,
  "totals": {
    "sent": 2,
    "bounced": 0,
    "blocked": 0,
    "failed": 0,
    "replies": 1
  },
  "sent_by_mailbox": {
    "sam@happybilling.com": 2
  },
  "emails": [
    {
      "email_id": "0b1c2d3e-3333-4e5f-9a0b-aabbccddeeff",
      "status": "sent",
      "lead": "Acme Dental",
      "person": "Jo Park",
      "from": "sam@happybilling.com",
      "to": "jo@acmedental.com",
      "subject": "Billing at Acme Dental",
      "snippet": "Hi Jo, ...",
      "at": "2026-12-02T15:04:11Z"
    }
  ]
}

email_opens

Who: Admins and reps. Level: read. Confirms: no.

Lists sent emails that were opened or clicked in a window (default today): who, which email, the lead, the campaign, the rep, open and click counts, and the links clicked. Filter by campaign, rep or lead, or ask for clicks only.

ArgumentTypeRequiredAccepts, default and limits
periodstringnoToday, yesterday, this_week, last_week, last_7_days, this_month, last_30_days, all_time. Default: today. Enum as listed. The window is when the open or click happened, not when the email was sent.
fromstringnoDate YYYY-MM-DD. Must be YYYY-MM-DD. Start of the window at local midnight. Overrides period. With only to given, the window starts at the beginning of time.
tostringnoDate YYYY-MM-DD. Must be YYYY-MM-DD. Inclusive end day. With only from given, the window runs to now.
campaignstringnoCampaign id, exact name (any case), or a part of the name that matches only one campaign in this workspace.
repstringnoRep name (part of it), email, id or "me". Matches the email's sending rep (agent_id).
leadstringnoLead id, phone, exact name or a part of the name that matches one lead.
onlystringnoOpens or clicks. Enum: opens, clicks. Clicks keeps only clicked emails. opens behaves the same as leaving it out, so clicked emails are listed too.
limitnumbernoRows returned. Default: 40. Rounded, clamped 1 to 100. Total still counts every match.

Returns: period, emails (newest activity first), total (all matches before limit), people (distinct recipient lists), and note when nothing matched. Each email: email_id, to, person, lead, lead_id, campaign, rep, subject, sent_at, opens_in_period, automatic_opens_in_period, clicks_in_period, links_clicked (up to 5), last_activity, opens_total, automatic_opens_total, clicks_total. Empty fields are dropped.

Changes: None, read only

Good to know:

  • Automatic opens (automatic_opens_in_period, automatic_opens_total) are a mail app loading images by itself, such as Apple Mail privacy, not a person. Opens within 5 seconds of sending and clicks within 10 seconds are counted as automatic.
  • Opens are only seen on emails sent with tracking on: cadence_settings track_opens and track_clicks for cadence emails, which default to off.
  • An email counted only on its first_opened_at or first_clicked_at (from before events were stored) has no in period numbers.
  • Reads at most 2000 events in the window (the 500 newest emails among them) plus 200 emails by first open or first click date, so very busy windows are cut short.
  • Only outbound emails of this workspace are shown.
  • The empty note always says Nothing opened, even when only clicks were asked for.
WhenMessageWhat to do
period is not one of the listed valuesUnknown period "<x>". Use one of: today, yesterday, this_week, last_week, last_7_days, this_month, last_30_days, or from/to dates.Use a listed period, all_time, or from/to dates.
from or to is not YYYY-MM-DD"<value>" is not a date. Use YYYY-MM-DD.Send dates as YYYY-MM-DD.
a partial name matches more than one campaign"<text>" matches several campaigns: <names>. Use the exact name or id.Repeat with the exact name or the id.
no campaign matchesNo campaign "<text>" in this workspace.Call list_campaigns and use a name or id from it.
rep matches more than one person"<text>" matches several people: <names>. Be more specific.Use the full name, the email or the id.
rep matches nobodyNobody called "<text>" in this workspace.Call list_team and use a name, email or id from it.
lead is a uuid that is not in this workspaceNo lead with id <id> in this workspace.Check the id with search_leads.
a name matches more than one lead"<text>" matches several leads: <name (id)>; .... Use the id.Repeat with the lead id.
no lead matchesNo lead "<text>" in this workspace.Find it with search_leads first.

Example call:

{
  "name": "email_opens",
  "arguments": {
    "period": "this_week",
    "campaign": "Dental clinics Texas"
  }
}

Example result:

{
  "period": "this week",
  "emails": [
    {
      "email_id": "e1e1e1e1-0000-4000-8000-000000000051",
      "to": "dana@brightsmile.com",
      "person": "Dana Ortiz",
      "lead": "Bright Smile Dental",
      "lead_id": "c0ffee00-0000-4000-8000-000000000041",
      "campaign": "Dental clinics Texas",
      "rep": "Sam Reed",
      "subject": "Quick question about new patients",
      "sent_at": "2026-12-01T14:00:03Z",
      "opens_in_period": 2,
      "clicks_in_period": 0,
      "last_activity": "2026-12-01T16:20:44Z",
      "opens_total": 2,
      "clicks_total": 0
    }
  ],
  "total": 1,
  "people": 1
}

list_emails

Who: Admins and reps. Level: read. Confirms: no.

Lists the workspace's email newest first, from every mailbox the caller may see, with filters for mailbox, direction, lead, address, campaign, status, unread and dates. Paged, 25 at a time by default, with the total. Use get_email_thread to read whole messages.

ArgumentTypeRequiredAccepts, default and limits
mailboxstringnoMailbox id, full address, or a unique part of the address or sender name.
directionstringnoIn or out. In, out. In means received, out means sent by us.
leadstringnoLead id, phone number, exact name, or a unique part of the name.
addressstringnoThe other side's email address. Lower cased; must look like an email address.
campaignstringnoCampaign name or id. Exact name first (case does not matter), then a unique part of the name.
statusstringnoSent, received, bounced, refused, failed or draft. Sent, received, bounced, refused, failed, draft. Bounced: the recipient's server said the address does not take mail. refused: a provider turned it down because of our side (stored as blocked); reason says why.
unread_onlybooleannoTrue or false. Default: false. Only received mail not yet opened in the app.
periodstringnoToday, yesterday, this_week, last_week, last_7_days, this_month, last_30_days or all_time. Default: all_time. Counted in the workspace timezone.
fromstringnoYYYY-MM-DD. Overrides period.
tostringnoYYYY-MM-DD, inclusive. Overrides period.
limitnumbernoA number. Default: 25. 1 to 100.
offsetnumbernoA number. Default: 0. 0 to 100000.

Returns: { total, period, emails: [...], next_offset? , note? }. Each email: email_id, at, direction (in or out), from, to, subject, snippet, status (sent, received, bounced, refused, failed, draft, sending), unread, opens, automatic_opens, clicks, reason, intent, mailbox, lead, lead_id, person, campaign. Empty fields are left out. next_offset is present when more pages exist. note appears for non admins.

Changes: None, read only. It does not mark anything as read.

Good to know:

  • An admin (org_admin or superadmin) sees every email in the workspace. Anyone else sees email they sent plus email in their own mailboxes and shared mailboxes.
  • Dates filter on when the email row was created, not on sent_at or received_at, so imported or synced mail can fall outside the window you expect.
  • opens and clicks appear only when tracking was on for that email.
  • Filters combine with AND.
  • A bounce is the recipient's server saying the address does not take mail (550 5.1.1, user unknown, no such domain). The email is stored bounced, the address goes on the do not email list, the lead leaves that cadence, it counts in the mailbox's bounced_7d and the cadence's bounced, and no later step or other mailbox ever sends to it. A refusal is a provider turning the email down because of our side: before it went (an invalid address, the mailbox's sign in, quota or a block) or after (SPF, DKIM, DMARC, spam). It is stored blocked, shown as refused with the reason, suppresses nothing, the lead stays in the cadence, and the step holds: until a person sends it from Tasks when the address was refused, an hour when the mailbox was. Many refusals in a day pause the mailbox. The bounce is read from the delivery report itself, never from the copy of our own message under it.
WhenMessageWhat to do
mailbox matches several"<text>" matches several mailboxes: <addresses>. Use the full address.Use the full address.
mailbox not foundNo mailbox "<text>" in this workspace. The mailboxes here: <addresses>.Pick one from the list in the message.
Part of the name matches more than one lead"<text>" matches several leads: <name (id); ...>. Use the id.Use the lead id from the message.
No lead matches in this workspaceNo lead "<text>" in this workspace.Find the lead with search_leads first.
campaign is emptyName a campaign (its name or id). list_campaigns shows them.Pass a campaign name or id.
Part of the name matches more than one campaign"<text>" matches several campaigns: <names>. Use the exact name or id.Use the exact name or the id.
No campaign matches in this workspaceNo campaign "<text>" in this workspace.Check list_campaigns for the right name.
address is not an email address"<address>" is not an email address.Pass a full address.
from or to not a date"<value>" is not a date. Use YYYY-MM-DD.Use YYYY-MM-DD.
Unknown periodUnknown period "<value>". Use one of: today, yesterday, this_week, last_week, last_7_days, this_month, last_30_days, or from/to dates.Use a listed period or all_time.
The caller has the client roleA client account can only read.A client cannot use this tool.

Example call:

{
  "name": "list_emails",
  "arguments": {
    "direction": "in",
    "unread_only": true,
    "limit": 10
  }
}

Example result:

{
  "total": 3,
  "period": "all time",
  "emails": [
    {
      "email_id": "92a3b4c5-d6e7-4f80-91a2-b3c4d5e6f708",
      "at": "2026-12-01T16:20:00Z",
      "direction": "in",
      "from": "Dana Ruiz <dana@brightsmile.example>",
      "to": "sara@acme.example",
      "subject": "Re: Reminder calls",
      "snippet": "Thursday at 2 works for us.",
      "status": "received",
      "unread": true,
      "intent": "meeting",
      "mailbox": "sara@acme.example",
      "lead": "Bright Smile Dental",
      "lead_id": "8f7e6d5c-4b3a-4291-8a7b-6c5d4e3f2a1b",
      "person": "Dana Ruiz",
      "campaign": "Dental clinics Ohio"
    }
  ]
}

get_email_thread

Who: Admins and reps. Level: read. Confirms: no.

Returns every email with one address, sent and received, from any mailbox the caller may see or only one mailbox, oldest first, with the full text of each. Up to the latest 50. Give address, or an email_id from list_emails to use that email's address.

ArgumentTypeRequiredAccepts, default and limits
addressstringnoThe other side's email address. Wins over email_id when both are given.
email_idstringnoAn email id from list_emails. Must be an id. Used only when address is empty; its other side address is used. The email must be one the caller can see.
mailboxstringnoMailbox id, full address, or a unique part of the address or sender name.
include_draftsbooleannoTrue or false. Default: false.

Returns: { address, lead, total, note?, messages: [...] }. Each message has the list_emails fields (without snippet) plus body (plain text, cut at 8000 characters with " [cut]") and attachments (file names). total counts every matching email; note says "Showing the latest 50 of N." when there are more.

Changes: None, read only. It does not mark anything as read.

Good to know:

  • An admin (org_admin or superadmin) sees every email in the workspace. Anyone else sees email they sent plus email in their own mailboxes and shared mailboxes.
  • The conversation is every email with that address, across subjects and threads, not one provider thread.
  • To answer, use send_email with reply_to_email_id.
WhenMessageWhat to do
mailbox matches several"<text>" matches several mailboxes: <addresses>. Use the full address.Use the full address.
mailbox not foundNo mailbox "<text>" in this workspace. The mailboxes here: <addresses>.Pick one from the list in the message.
Neither address nor email_id, or the email has no other side addressGive an address, or an email_id from list_emails.Pass address.
email_id is not an id"<id>" is not an email id. list_emails shows them.Use an email_id from list_emails.
email_id not visible to the callerNo email <id> you can see in this workspace.Use list_emails to find one you can see.
address is not an email address"<address>" is not an email address.Pass a full address.
The caller has the client roleA client account can only read.A client cannot use this tool.

Example call:

{
  "name": "get_email_thread",
  "arguments": {
    "address": "dana@brightsmile.example"
  }
}

Example result:

{
  "address": "dana@brightsmile.example",
  "lead": "Bright Smile Dental",
  "total": 2,
  "messages": [
    {
      "email_id": "a3b4c5d6-e7f8-4091-a2b3-c4d5e6f70819",
      "at": "2026-11-28T14:00:00Z",
      "direction": "out",
      "from": "Sara Khan <sara@acme.example>",
      "to": "dana@brightsmile.example",
      "subject": "Reminder calls",
      "status": "sent",
      "opens": 2,
      "clicks": 0,
      "mailbox": "sara@acme.example",
      "lead": "Bright Smile Dental",
      "body": "Hi Dana, ..."
    },
    {
      "email_id": "92a3b4c5-d6e7-4f80-91a2-b3c4d5e6f708",
      "at": "2026-12-01T16:20:00Z",
      "direction": "in",
      "from": "Dana Ruiz <dana@brightsmile.example>",
      "to": "sara@acme.example",
      "subject": "Re: Reminder calls",
      "status": "received",
      "unread": true,
      "mailbox": "sara@acme.example",
      "body": "Thursday at 2 works for us."
    }
  ]
}

draft_email

Who: Admins and reps. Level: write. Confirms: no.

Saves an email as a draft in the caller's inbox, not sent. With no lead, the lead is found by the address or added. from picks the mailbox the draft will go from, under the same rules as send_email.

ArgumentTypeRequiredAccepts, default and limits
leadstringnoLead id, phone, exact name or unique partial name. Without it the lead is found from the to address (a contact with that email), or a new lead and contact are added.
tostringyesOne email address. Only checked for format when no lead is given.
subjectstringyesThe subject.
bodystringyesPlain text body.
fromstringnoA mailbox id, full address, or a unique part of the address or sender name (list_mailboxes). When given, it must be connected, not paused, and the caller's own unless the caller is an admin. When left out, the caller's own usable mailbox, else a shared one for an admin; if none, the draft is saved without that choice.

Returns: data.done is the one line message of what happened, data.can_undo says if an undo was stored. When it was, the server adds data.action_id and data.undo_with: "undo_action". When a mailbox was chosen, data.done reads "Drafted to <to>. Sends from <address> (<whose>). Review it in the inbox before it goes." and data.from holds the address.

Changes: Writes or replaces the caller's one open draft on that lead (one draft per rep per lead: a newer draft overwrites the older one). May add a lead and contact when no lead is given. Sends nothing.

Undo: Yes. When the call made a new draft, undo_action deletes it, only while it is still a draft. When it replaced an earlier open draft to the same lead, undo_action puts the earlier draft's words, recipient and mailbox back, only while the draft is still a draft holding what this call wrote.

Good to know:

  • With no usable mailbox and no from, the draft is still saved and data.done says "Drafted to <to>, but no mailbox is connected" followed by a request to connect one.
  • Adding a lead from an address: a contact with the email is matched first; else a company whose website holds the domain; else a new company (named from the domain, or from the person for free mail domains) owned by the caller.
  • To send it, use send_email; this tool never sends.
WhenMessageWhat to do
no lead matchesNo lead "<ref>" in this workspace.Find it with search_leads and pass its id.
a name matches more than one lead"<ref>" matches several leads: <name (id); ...>. Use the id.Pass one of the listed ids.
an id is given that is not in this workspaceNo lead with id <id> in this workspace.Check the id with search_leads.
the lead was deleted between lookup and actionThat account no longer existsLook the lead up again.
the address is on the workspace suppression listThat address is suppressed for this workspaceDo not email it.
no lead and the to address is not an email"<to>" is not an email address.Fix the address.
from names a mailbox that is not connected<address> is not connected (<status>). It has to be reconnected in Settings, Email before it can send.Pick another mailbox.
from names a paused mailboxSending from <address> is paused (<reason>). resume_mailbox_sending turns it back on, or pick another mailbox.Resume it or pick another.
a rep names someone else's mailbox<address> is <owner>'s mailbox. You can send only from your own; an admin can send from any mailbox here.Use your own mailbox.
from matches no mailbox or severalNo mailbox "<ref>" in this workspace. The mailboxes here: <list>. / "<ref>" matches several mailboxes: <list>. Use the full address.Use the full address from list_mailboxes.

Example call:

{
  "name": "draft_email",
  "arguments": {
    "to": "mike@lonestarroofing.com",
    "subject": "Your roof quote",
    "body": "Hi Mike,\n\nAttached is the quote we discussed.\n\nSara"
  }
}

Example result:

{
  "done": "Drafted to mike@lonestarroofing.com. Sends from sara@acme.com (your own mailbox). Review it in the inbox before it goes.",
  "can_undo": true,
  "from": "sara@acme.com",
  "action_id": "a1b2c3d4-0000-4000-8000-000000000024",
  "undo_with": "undo_action"
}

send_email

Who: Admins and reps. Level: write. Confirms: yes, preview first, then the same call with confirm: true.

Sends one plain text email now from a chosen or default mailbox, with the same checks as the inbox. The first call returns a preview of the email and the sending mailbox; the same call with confirm: true sends it. It can reply in a thread, and adds a lead when no lead has that address.

ArgumentTypeRequiredAccepts, default and limits
tostringyesOne email address. Must look like name@domain.tld.
subjectstringyesThe subject.
bodystringyesPlain text, blank lines between paragraphs. No HTML is sent.
namestringnoThe person's name. Only used when a new lead and contact are added.
companystringnoTheir company name. Only used when a new company is added.
fromstringnoA mailbox id, full address, or a unique part of the address or sender name (list_mailboxes). Must be connected and not paused. A rep may only use their own; an admin may use any. Left out: the mailbox of reply_to_email_id, else the caller's own usable mailbox, else a shared one for an admin.
reply_to_email_idstringnoAn email id (uuid) from list_emails or get_email_thread that the caller may see. Replies in that email's thread when it goes from the same mailbox; from another mailbox it goes as a new conversation.
confirmbooleannoTrue to send. Text "true" also works. Default: false (preview only).

Returns: Preview (no confirm): data {sends_from (a sentence), from, from_owner, to, subject, body, thread (only when it replies or joins a thread), needs: "the person's confirm"}. Sent: data {email_id, from, to, company_id, contact_id, lead_added, lead (company name), threaded}.

Changes: On confirm: may add a lead and contact, inserts an emails row, sends the email through the mailbox's provider (Gmail or Outlook), marks it sent (or failed), and logs an email entry on the lead's timeline. A one click unsubscribe link is attached. No credits are charged by this code.

Good to know:

  • The preview does not check the suppression list or the daily limit; those only run on confirm, so a preview can still fail when confirmed.
  • Always show the preview to the person and send confirm: true only after they agree.
  • Without reply_to_email_id, a send to someone this mailbox already wrote to on the same subject (ignoring Re: and Fwd:) joins that thread.
  • A rep replying to an email in a mailbox that is not theirs is refused, since the reply defaults to that email's mailbox; pass from with their own.
  • On confirm the lead is added before the suppression and limit checks, so a refused send can still leave a new lead behind.
  • The daily limit counts outbound, non draft emails from that mailbox in the last 24 hours.
WhenMessageWhat to do
to is not an email"<to>" is not an email address.Fix the address.
subject or body is emptyAn email needs a subject and a body.Send both.
reply_to_email_id is not a uuid"<id>" is not an email id. list_emails shows them.Use an id from list_emails.
reply_to_email_id is unknown or not visible to the callerNo email <id> you can see in this workspace.Check list_emails.
no usable mailbox for the callerYou have no mailbox of your own in <workspace> that can send now. Pass from with one of these: ... / No mailbox here can send for you. The mailboxes in <workspace>: ...Pass from, or connect a mailbox.
from names a mailbox that is not connected, paused, or someone else's for a repSame texts as draft_email's from errors.Pick a usable mailbox.
the address is suppressed (on confirm)<to> is suppressed (<reason>) and cannot be emailed.Do not email it.
the mailbox hit its daily limit (on confirm)<address> has reached its daily send limit. It resets on a rolling 24 hours.Use another mailbox or wait.
the provider refused the sendThe email did not go out: <provider error>Read the reason; the row is marked failed.

Example call:

{
  "name": "send_email",
  "arguments": {
    "to": "mike@lonestarroofing.com",
    "subject": "Your roof quote",
    "body": "Hi Mike,\n\nHere is the quote we discussed.\n\nSara",
    "confirm": true
  }
}

Example result:

{
  "email_id": "f0e1d2c3-0000-4000-8000-000000000099",
  "from": "sara@acme.com",
  "to": "mike@lonestarroofing.com",
  "company_id": "9a8b7c6d-0000-4111-8222-333344445555",
  "contact_id": "c1d2e3f4-0000-4000-8000-000000000001",
  "lead_added": false,
  "lead": "Lone Star Roofing",
  "threaded": false
}