MCP server
How Sales Montana data fits together
Read this once before you change anything over MCP. Most mistakes we have seen came from a wrong picture of how a campaign, its lead lists and its cadence connect, or from reading "completed" as "sent".
Workspace
A workspace is one company's account. Everything an MCP connection does stays inside one workspace. The workspace has a time zone (for example America/New_York). Times are stored in UTC; whoami gives the time zone so you can show times the way the person expects.
A workspace is either self serve (it pays for what it uses in credits) or managed (Sales Montana runs it, and some prices are not shown).
People in a workspace have one of these roles:
| Role | In the app | Over MCP |
|---|---|---|
Admin (org_admin) | Runs the workspace | Every tool their connection level allows, including admin only tools |
Rep (agent) | Calls and works leads | Tools that are not admin only, up to their connection level |
Client (client) | Watches the work of an agency | Read tools only, and not the team tools |
Staff (superadmin) | Sales Montana staff | Every workspace, by passing workspace on each call |
Campaign
A campaign is one outbound effort: who to reach, why, and how. It finds leads and holds them. A campaign has a status:
| Status | Meaning |
|---|---|
draft | Being set up. Nothing sends, nobody dials it. |
live | On. Reps can dial it and its cadence can run if the cadence is started. |
paused | Off. No calls, emails or LinkedIn steps go out. |
done and archived | Finished. Nothing sends. |
A campaign has a plan with its ideal customer (ICP), where leads come from, how they are scored, the reps who work it and a budget. Newer campaigns are set up by Montana with the setup tools; older ones used the step by step builder.
Every workspace also has one holding campaign called "No campaign". It never dials, sends or looks anyone up. Leads sitting there leave it on their own when you add them to a real campaign.
The review queue is where newly found leads wait for a person to say yes or no before they join a campaign. Each has a score from 0 to 100. See list_review_queue and decide_review.
Tools say whether a campaign is really sending with two fields: status (the campaign) and cadence_status (its cadence). Only a live campaign with an active cadence sends. The tools also give a plain state line such as "Live, cadence not started".
Lead and person
A lead is a company (the companies table). It has a name, phone, website, address, owner, notes, research and a score. Tools find a lead by its id, its phone number, its exact name, or a part of its name that matches only one lead.
A person is a contact at a lead (the contacts table): name, title, email, phone, LinkedIn. Tools that say "people" mean contacts.
A lead can be live in only one campaign at a time. Adding it to a second campaign skips it unless you ask to move it.
Lead lists and batches
When leads join a campaign, they land in a lead list: one list per campaign, per day and per source (signals, import, search, maps, or added by hand). The lists of one week make a batch, named by its dates, like "30 Nov to 6 Dec".
The rule since 1 December: a campaign finds leads, its lists hold them in dated batches, and the cadence works only the batches added to it. A lead that is in the campaign but not in an added batch gets no emails, no LinkedIn steps and no cadence calls. Use list_lead_lists to see the batches and add_lists_to_cadence to start one.
Cadence
Every campaign has exactly one cadence. It is the sequence of steps each lead goes through: call, email, LinkedIn, task, and so on, with a wait before each step. The cadence is named after its campaign.
The parts that matter:
cadence_status:draft,active,pausedorarchived. Onlyactivemoves leads.in_cadence: whether a lead in the campaign is being worked by the cadence. It becomes true when its batch is added to the cadence. Every count and preview tool counts only these leads as in the cadence; the others show asnot_in_cadence, have no due time, and get nothing.- Auto add (
cadence_auto_add): when on, a lead added to the campaign joins the cadence at once. It is off by default for campaigns made since 1 December. Change it withset_cadence_auto_add. - Calls only (
calls_only): a lead enrolled withcalls_only: true(enrol_lead,add_leads_to_campaign,create_lead,import_leads,decide_review, or the Calls only switch on Add to campaign in the app) is in the campaign's dial queue and never in its cadence. Auto add, now or later, does not add it, andadd_lists_to_cadenceleaves it out. Without it a lead follows auto add as above.get_leadandcadence_peopleshow it. - Who started and paused it:
cadence_settingsshowscadence_audit, the person who started the cadence and when, and who last paused it and when. Recording began on 2 December; older switches read "not recorded". - Step copy: each message step has general copy with a status of
draftorapproved. A draft step does not send.approve_step_copyapproves it. - Montana writes (
montana_writes, on by default): Montana writes each lead's own email in the background. Turn it off withset_cadence_settingsbefore you load your own copy, so the two never race. - Approve each email (
email_approval_mode):approve_first(the default, shown asapprove_each_email: true) means each lead's email waits for a person to approve it.automeans drafts send as written.set_cadence_writingswitches it;approve_cadenceand pilot mode turn approval off.
Per lead drafts
For each lead and each email step there is one draft with one of these statuses:
| Status | Sends? |
|---|---|
pending_approval | Not while approve each email is on. It also holds the lead on that step. |
approved | Yes. |
edited | Yes. An approved draft that a person then changed. Counts as approved. |
rejected | Never. |
With approve each email off, any draft that is not rejected sends as written, even one that still reads pending_approval, unless it fails the approval check below. If a lead has no draft yet, the sender waits up to three hours for Montana to write one, then uses the step's general copy. With approve each email on and no draft, a step Montana writes waits for a draft, and any other step sends its approved general copy.
A step whose own copy is still draft sends nothing, not even approved lead drafts. Editing a step's words puts it back to draft until it is approved again.
The approval check
Every way of approving a lead draft goes through one check in the database: the app's Approve buttons, approve_lead_drafts, set_lead_drafts and edit_lead_draft with approve, Montana chat, approve_cadence (and switching approval off), and Montana's own approval when a cadence sends without asking. A draft is never approved while:
- A field would go out blank. The sender fills
{{first_name}},{{name}}and{{full_name}}(the first word of the recipient's name),{{company}}and{{company_name}},{{email}}, and{{sender_first_name}},{{sender_name}}and{{my_name}}(the sending mailbox's sender name). Each fails when its value is missing: no name on the person, no name on the lead, no address, no mailbox chosen for the cadence, no chosen mailbox connected, or a chosen mailbox with no sender name (set it withset_mailbox_limitssender_name).{{last_name}}and any other field always fail, as the sender never fills them. In a LinkedIn draft any{{field}}fails, since LinkedIn messages go as written. A field with a fallback,{{first_name|there}}, always passes. - A greeting has a title and no name. Once the fields are filled, a line that is Hi, Hello, Hey, Dear, Greetings or Good morning, afternoon or evening, then Dr, Mr, Mrs, Ms, Mx, Miss, Prof, Professor or Doctor, then a comma, other punctuation or the end of the line: "Hi Dr.,", "Hello Mr.,", "Dear Dr.,".
- An email step has no address. The draft's own person when they have an address, else the lead's first contact with one (front desk last), else the company's address.
A draft that fails stays pending_approval and keeps its reasons (problems in list_lead_drafts); a bulk approve approves the clean ones and lists the rest with why. A waiting draft that fails never sends, even with approve each email off. Drafts approved before 2 December were not checked and stay as they are; upcoming_sends flags their problems.
Each approved draft records approved_by, approved_at and approved_via: person (the app), mcp, montana_chat, cadence_approval (approved with the whole cadence, by the person who did it) or montana_auto (Montana approved what it wrote on a cadence that sends without asking). list_lead_drafts shows them; approvals before 2 December read "not recorded".
Completed is not sent
This trips up almost every agent. The cadence runs every five minutes. When a lead's email step comes due, the system makes an email task for the sender and moves the lead on to the next step at once. That step now counts as completed. The email itself goes out later, when the sender gets past every check: the draft is approved, the step copy is approved, a mailbox has room today, the gap since the mailbox's last email has passed, and the lead is inside the send window.
So "completed 260, sent 61" means 199 emails are queued, usually behind daily limits. Read emails_waiting_to_send and waiting_because in cadence_results, and upcoming_sends for each lead's next email. campaign_emails shows what was really sent.
Reasons an email waits include: draft waiting for approval, waiting for Montana to write, step copy not approved, earlier step not sent yet, step delay not passed, mailbox gap, daily limit, outside hours. No address or no mailbox leaves the task for a person.
The follow up guard
A later email in a cadence never goes before an earlier one actually reached the person. It waits ("earlier step not sent yet"), then also waits for its own delay after the earlier email was sent. A follow up replies in the first email's thread, from the same mailbox. If that mailbox is full today, it waits for tomorrow instead of switching sender.
Mailboxes
A mailbox is a connected email account (Gmail, Outlook or other). It is either connected and sending, or paused (by a person or by the health check).
- A cadence sends only from the mailboxes picked for it with
set_cadence_mailboxes. There is no fallback to the lead owner's mailbox (removed 1 December). - A cadence with an email step cannot start without a connected, unpaused mailbox picked. The database refuses the switch to active from anywhere, and
approve_cadencechecks before changing anything. - Two daily limits apply. Each mailbox has its own daily limit (200 unless changed) that counts everything it sends, from every cadence and every manual email. Each cadence also has its own cap per mailbox (15 a day unless changed). The email goes only if both have room. Both are rolling 24 hours, not calendar days.
- Cadences that share a mailbox share its daily limit and its gap. Two cadences on the same ten mailboxes split one daily limit. The gap (5 minutes unless changed) is per mailbox, across cadences.
- Send window: the campaign's calling hours, always inside 8:00 to 21:00, Monday to Friday unless set, on the lead's own clock. The lead's time zone comes from its phone number, else the workspace time zone. Change it with
set_send_window. - Tracking is off by default. Open and click tracking hurts delivery. A cadence can switch it on with
track_opensandtrack_clicks. - An address is checked before the first email to it. A bad one is suppressed and the lead leaves the cadence.
- Do not email list (
email_suppressions): unsubscribes, bounces, bad addresses and addresses a person blocked withblock_email. Every send checks it. It holds full addresses only, not domains.unblock_emailtakes one off.
Calls and outcomes
Reps make calls in the app. No MCP tool places a call. Each call ends with an outcome (disposition): Connected, Voicemail, No Answer, Wrong Number, Callback, Not Interested, DNC, Bad Number or Other. A campaign can name its own outcomes that map to these; Other is for a campaign's own outcome group. Connected calls get an AI review with a transcript, a summary and a score.
Tasks
A task is a to do for a person: a call back, an email to write, a LinkedIn step, anything else. It has a lead, an owner and a due time. Cadence steps that need a person (calls, manual LinkedIn) become tasks.
Deals and stages
A deal is an opportunity with a lead. Stages belong to each campaign. Every new campaign starts with Interested (interested), Follow-up (follow_up), Commitment (commitment), Won (closed_won) and Lost (closed_lost). Working stages can be added, renamed, moved or removed with edit_deal_stages. Won and Lost can be renamed but never removed. A stage key never changes, so renaming never moves a deal. A lead has at most one open deal: setting a stage moves the lead's open deal.
Signals
A signal is a reason to reach out now: a LinkedIn post about a need, a job ad, a funding round, or a tool the company uses. Signal topics are what a campaign watches; each has a status (proposed, active, paused, rejected) and a monthly credit cap. See signal tools.
Credits
One credit is one US cent. Paid work (finding leads, finding contact details, enrichment, Montana's replies on self serve) is charged in credits. Every price is one and a half times the real cost, in steps of a quarter credit. Lookups are charged only when they find something. Tools that spend credits show the cost first and need confirm: true. credits_overview shows the balance and what is spending.