Docs
MCPPricingGo to Sales Montana

MCP server

Lead draft tools

Each lead in a cadence gets its own email for each email step. These tools read, write and approve those drafts.

ToolWhoLevelConfirmsWhat it does
list_lead_draftsAdmins, reps and clientsreadnoLists each lead's own email or LinkedIn draft written for a campaign's steps, newest first, 20 a page.
write_lead_emailsAdminswritenoMontana's AI writer writes each lead's own email, LinkedIn note and LinkedIn message for every approved step, for a slice of up to 12 leads per call.
set_lead_draftsAdminswriteyesWrites or replaces the own draft of up to 200 leads for one step in one call.
edit_lead_draftAdminswritenoRewrites the subject or body of one lead's own draft.
approve_lead_draftsAdminswriteyesApproves the waiting (pending_approval) lead drafts of a campaign: all of them, one step's, or chosen draft ids.
writing_styleAdmins and repsreadnoShows how Montana writes emails for a rep: the style it learned from the rep's own sent mail, or the workspace style when the rep has none yet, plus the workspace's own writing rules, which always win.

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

Tools

list_lead_drafts

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

Lists each lead's own email or LinkedIn draft written for a campaign's steps, newest first, 20 a page. Filter by step, by status, or by one lead. Use it to read what will send, who approved it and how, why a waiting draft cannot be approved, and to find draft_id values.

ArgumentTypeRequiredAccepts, default and limits
campaignstringyesCampaign id, exact name (any case), or a part of the name that matches only one campaign. Looked up inside the current workspace only.
stepstringnoStep number or step id. Default: every step.
statusstringnoPending_approval, approved, edited or rejected. Default: all. Not checked; any other value simply matches nothing.
leadstringnoA person's email, a person (contact) id, a lead (company) id, company name or phone. An email or contact id is turned into its company. Otherwise the lead lookup is used (id, phone, exact name, unique partial name).
pagenumberno0 based page. Default: 0. 0 to 500. 20 drafts a page.

Returns: total (all matching drafts), page, drafts: each draft_id, step (number), status, lead (company name), company_id, person (contact name), subject, body (first 600 characters). An approved or edited draft also has approved_by (the person's name, 'Montana (auto approve)', or 'not recorded'), approved_at (or 'not recorded'), approved_via (person, mcp, montana_chat, cadence_approval, montana_auto, or 'not recorded') and approved_how in words. A waiting draft that fails the approval check has problems (a list of reasons) and can_approve false. With no steps it returns {drafts: [], total: 0}.

Changes: None, read only.

Good to know:

  • Drafts on every top level step are listed, including steps that are switched off.
  • Status meanings: pending_approval waits for a person (in approve first mode); approved and edited send; rejected never sends. edited means it was changed after it was approved.
  • body is cut at 600 characters. The result does not show who wrote a draft (Montana or a person).
  • approved_via: person is the app's Approve buttons; mcp an MCP connection; montana_chat Montana chat; cadence_approval approved with the whole cadence (approve_cadence, or switching approval off), by the person who did it; montana_auto Montana approved what it wrote on a cadence that sends without asking. Recording began on 2 December, so older approvals read 'not recorded'.
  • In auto mode (approve_each_email false) a pending_approval draft sends as written anyway, unless it has problems: then it waits until fixed.
WhenMessageWhat to do
The campaign is not foundNo campaign "<name>" in this workspace.Call list_campaigns and use the exact name or id.
A partial name matches more than one campaign"<name>" matches several campaigns: A; B. Use the exact name or id.Use the exact name or the id.
The step number or id is not one of the campaign's stepsNo step <ref> in this campaign. Steps are numbered 1 to <n> (switched off steps keep their number); get_cadence lists them.Read get_cadence and use the number shown there.
The lead given is not foundNo lead "<x>" in this workspace.Use search_leads, then pass the lead id.
The lead name matches several leads"<x>" matches several leads: A (id); B (id). Use the id.Pass the id.

Example call:

{
  "name": "list_lead_drafts",
  "arguments": {
    "campaign": "Dental clinics TX",
    "status": "pending_approval",
    "page": 0
  }
}

Example result:

{
  "total": 1,
  "page": 0,
  "drafts": [
    {
      "draft_id": "d1b2c3d4-0000-4000-8000-000000000031",
      "step": 1,
      "status": "approved",
      "lead": "Lone Star Roofing",
      "company_id": "c1b2c3d4-0000-4000-8000-000000000011",
      "person": "Dana Cole",
      "subject": "Your crews in Dallas",
      "body": "Hi Dana, ...",
      "approved_by": "Sara Khan",
      "approved_at": "2026-12-02T16:20:00+00:00",
      "approved_via": "mcp",
      "approved_how": "through an MCP connection"
    }
  ]
}

write_lead_emails

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

Montana's AI writer writes each lead's own email, LinkedIn note and LinkedIn message for every approved step, for a slice of up to 12 leads per call. Call again while remaining is above 0. step narrows it to one step and lead to one lead. Nothing is sent by writing.

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. The step's copy must be approved.
leadstringnoLead id, phone, exact name or unique part of the name. Must have a queued or in_progress enrollment in this campaign. Writes for that lead only (limit becomes 1).
limitnumberno1 to 12. Default: 8. Clamped to 1..12. Leads this call. The slice is picked in random order among leads missing a draft.

Returns: An object: campaign, written (leads written this call), remaining (leads still missing a draft after this slice), leads_in_cadence (enrollments that are queued, in progress or paused and in the cadence), waits_for_approval, next, not_in_cadence (when some leads in the campaign are not in the cadence and no lead was given).

Changes: Inserts cadence_drafts rows (one per lead per approved email or LinkedIn step that had none). Status is approved when approval is off and the draft passed the quality check, else pending_approval; a flagged draft carries context.qa_flag. Existing drafts are never overwritten. Makes AI calls (recorded as AI usage); no credit charge is made in this code path. Sends nothing.

Good to know:

  • When cadence_settings.montana_writes is false and neither step nor lead is given, it writes nothing and returns written 0, remaining 0, leads_in_cadence 0, and next says every lead has its emails. That is misleading: pass step or lead to write anyway, or turn montana_writes back on.
  • A lead whose save failed 3 times in the last 24 hours is skipped in a bulk call (not when lead is given).
  • The writer writes to the oldest contact with an email that is not a gatekeeper, else one with a LinkedIn profile. First name and company are written in; the sender name stays a field filled at send time.
  • Each written email passes a quality check; a failing one is rewritten once, and if it still fails it is saved as pending_approval with a flag. With approval off the email sender does not hold such a draft.
  • No admin check in the database for this tool; the server's admin check applies.
  • Only enrollments with in_cadence true are written. With lead given for a lead that is in the campaign but not in the cadence, it refuses: "<lead> is in <campaign> but not in its cadence, so Montana writes nothing for it yet. Add its batch with add_lists_to_cadence first."
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.
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 for the number.
lead has no queued or in_progress enrollment here<lead> is not in <campaign>'s cadence.Add the lead first, or pick another.
No approved email or LinkedIn step (or the named step is not approved)No approved email or LinkedIn step to write for. Approve the step copy first (approve_step_copy).Approve the step copy, then call again.
lead is in the campaign but not in its cadence<lead> is in <campaign> but not in its cadence, so Montana writes nothing for it yet. Add its batch with add_lists_to_cadence first.Add the lead's batch with add_lists_to_cadence.

Example call:

{
  "name": "write_lead_emails",
  "arguments": {
    "campaign": "Happy Billing Q1",
    "limit": 12
  }
}

Example result:

{
  "campaign": "Happy Billing Q1",
  "written": 12,
  "remaining": 30,
  "leads_in_cadence": 42,
  "waits_for_approval": true,
  "next": "Call again to write the next slice."
}

set_lead_drafts

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

Writes or replaces the own draft of up to 200 leads for one step in one call. Use it when the person brings their own copy per lead. Drafts are saved waiting for approval, or approved with approve: true (which needs confirm: true in approve first mode).

ArgumentTypeRequiredAccepts, default and limits
campaignstringyesCampaign id, exact name (any case), or a part of the name that matches only one campaign. Looked up inside the current workspace only.
stepstringyesStep number or step id. Must be an email, sms, linkedin_message or linkedin_connect step.
draftsarray of objectsyesObjects { lead, subject, body }; JSON text of the array is also read. lead is a person's email, a person (contact) id, a lead (company) id, company name or phone. First 200 items are used. subject 200 characters, body 4000. An item with no lead or no body is skipped. Leaving subject out keeps the old subject on a replaced draft. A person's email or contact id also sets who the draft is written to.
approvebooleannoTrue or false. Default: false.
confirmbooleannoTrue or false. Default: false. Needed only when approve is true and the campaign is in approve first mode.

Returns: Preview (approve true, approve first mode, no confirm): campaign, step, would_save_approved, skipped, what_will_send, needs. Done: campaign, step, saved, status ('approved' or 'waiting for approval (approve_lead_drafts approves them)'), skipped (each {lead, why}). When drafts saved approved fail the approval check they are saved waiting instead and listed in not_approved (up to 50 of {lead, draft_id, problems}) with not_approved_count and not_approved_note.

Changes: Inserts or updates cadence_drafts rows, saved as written by a person (model 'person'). Approved drafts send when the lead reaches the step, at the mailbox pace. No credits.

Good to know:

  • You can approve and confirm in one call: approve: true with confirm: true saves them approved straight away, and approve_lead_drafts is not needed.
  • Without approve: true there is no preview at all; the drafts are saved at once.
  • In auto mode (email_approval_mode 'auto', approve_each_email false) drafts are saved approved even without approve, and no confirm is asked.
  • Status rules: a draft a person loaded earlier (model 'person') that was approved or edited becomes edited. A draft Montana wrote is replaced as a fresh one: approved with approve or auto mode, otherwise pending_approval, even if Montana's draft had been approved.
  • Per item skips: lead not found, no live enrollment in this campaign (status queued, in_progress or paused), or the step already went to that lead. The lead does not need to be in the cadence yet (in_cadence is not checked).
  • Race with Montana: Montana's writer never overwrites an existing draft, but it can write first. When loading your own copy, set montana_writes false (set_cadence_settings) before approving the step copy. In auto mode a Montana draft can send before you replace it.
  • Items are handled one by one, so 200 items take a while.
  • Approving here goes through the same approval check as approve_lead_drafts; approved drafts record approved_via mcp (or montana_chat).
WhenMessageWhat to do
The campaign is not foundNo campaign "<name>" in this workspace.Call list_campaigns and use the exact name or id.
A partial name matches more than one campaign"<name>" matches several campaigns: A; B. Use the exact name or id.Use the exact name or the id.
The step number or id is not one of the campaign's stepsNo step <ref> in this campaign. Steps are numbered 1 to <n> (switched off steps keep their number); get_cadence lists them.Read get_cadence and use the number shown there.
The step has no words (call, task, linkedin_engage)Step <n> is a <channel> step, with no words to write.Pick a message step.
drafts is emptyGive drafts: a list of { lead, subject, body }.Send the list.

Example call:

{
  "name": "set_lead_drafts",
  "arguments": {
    "campaign": "Dental clinics TX",
    "step": "1",
    "drafts": [
      {
        "lead": "dana@smilebright.com",
        "subject": "Front desk calls",
        "body": "Hi Dana, ..."
      }
    ],
    "approve": true,
    "confirm": true
  }
}

Example result:

{
  "campaign": "Dental clinics TX",
  "step": 1,
  "saved": 1,
  "status": "approved",
  "skipped": [
    {
      "lead": "Oak Dental",
      "why": "not in this campaign's cadence (add_leads_to_campaign adds it)"
    }
  ]
}

edit_lead_draft

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

Rewrites the subject or body of one lead's own draft. With approve: true the new wording is saved approved in the same call. Use it for one lead at a time; use set_lead_drafts for many.

ArgumentTypeRequiredAccepts, default and limits
campaignstringyesCampaign id, exact name (any case), or a part of the name that matches only one campaign. Looked up inside the current workspace only.
draft_idstringyesDraft_id from list_lead_drafts. Must belong to one of this campaign's steps.
subjectstringnoText. 200 characters.
bodystringnoText. 4000 characters.
approvebooleannoTrue or false (text 'true' is read as true) Default: false. True only when the person said this wording is the one to send.

Returns: draft_id and status (the new status). action_id and undo_with are added. status is what was saved; when approve was asked but the draft fails the approval check it stays pending_approval and the result has problems and not_approved.

Changes: Updates one cadence_drafts row. An approved draft sends when its step comes due, at the mailbox pace.

Undo: Yes. undo_action puts back the old subject, body and status (approved_by and approved_at are not reset).

Good to know:

  • Status after the edit: a draft that was approved or edited becomes edited, with or without approve. A pending_approval or rejected draft becomes approved with approve: true, and pending_approval without it (so editing a rejected draft puts it back in the waiting list).
  • Unlike set_lead_drafts, approve: true here needs no confirm.
  • It does not check whether the draft was already sent.
  • An approved draft edited so that it fails the approval check goes back to pending_approval with its problems.
WhenMessageWhat to do
The campaign is not foundNo campaign "<name>" in this workspace.Call list_campaigns and use the exact name or id.
A partial name matches more than one campaign"<name>" matches several campaigns: A; B. Use the exact name or id.Use the exact name or the id.
The draft is not on this campaign's stepsNo such draft in this campaign. list_lead_drafts shows them.Check the campaign and the draft_id.
Neither subject nor body givenGive a new subject or body.Send a subject or a body.

Example call:

{
  "name": "edit_lead_draft",
  "arguments": {
    "campaign": "Dental clinics TX",
    "draft_id": "e5...",
    "body": "Hi Dana, shorter version...",
    "approve": true
  }
}

Example result:

{
  "draft_id": "e5...",
  "status": "approved",
  "action_id": "7a1...",
  "undo_with": "undo_action"
}

approve_lead_drafts

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

Approves the waiting (pending_approval) lead drafts of a campaign: all of them, one step's, or chosen draft ids. Drafts that fail the approval check (a blank field, a greeting with a title and no name, no email address) are not approved and come back with the reason. The first call without confirm returns how many would be approved. Approved drafts send at the mailbox pace.

ArgumentTypeRequiredAccepts, default and limits
campaignstringyesCampaign id, exact name (any case), or a part of the name that matches only one campaign. Looked up inside the current workspace only.
stepstringnoStep number or step id. Default: every step.
draft_idsarray of stringsnoDraft ids from list_lead_drafts; JSON text of the array is also read. Default: all waiting drafts. Up to 2000. Values that are not ids are dropped; if none of the given values is an id the call refuses and approves nothing.
confirmbooleannoTrue or false. Default: false.

Returns: Preview: campaign, would_approve (waiting drafts that pass the check), would_not_approve and why (when some fail), what_will_send, needs. Done: approved (how many), not_approved (up to 100 of {draft_id, lead, problems}), not_approved_count and not_approved_note (one line with the commonest reasons) when the check kept some back, and not_waiting (a sentence) when some given draft_ids were not waiting drafts of this campaign.

Changes: Sets status approved, approved_by, approved_at and approved_via (mcp, or montana_chat from Montana chat) on the matching pending_approval drafts that pass the check; the rest stay pending_approval with their problems saved. Approved drafts send when due, at the mailbox caps.

Good to know:

  • The server does not require a preview first: a call with confirm: true acts at once. Only send confirm: true after the person agreed.
  • Approving a lead draft does not send it while the step's own copy is still draft. Approve the step copy too.
  • draft_ids given but none of them a draft id: the call refuses and approves nothing. Leave draft_ids out to approve every waiting draft in scope.
  • The approval check (the same for every way of approving: the app, the MCP, Montana chat, approving the whole cadence, and Montana's own auto approve). A draft is never approved while: (1) a {{field}} with no fallback would go out blank: first_name, name or full_name when the person it goes to has no name; company or company_name when the lead has no name; email when there is no address; sender_first_name, sender_name or my_name when no mailbox is chosen for the cadence, no chosen mailbox is connected, or a chosen mailbox has no sender name; last_name and any other field always (the sender never fills them); in a LinkedIn draft any {{field}} at all, since LinkedIn messages go as written; (2) a line, once the fields are filled, is a greeting with a title and no name: Hi, Hello, Hey, Dear, Greetings or Good morning/afternoon/evening, then Dr, Mr, Mrs, Ms, Mx, Miss, Prof, Professor or Doctor, then a comma, colon, other punctuation or the end of the line ("Hi Dr.,"); (3) an email step whose lead has no email address (the draft's person, else the first contact with an address, front desk last, else the company's address). {{field|fallback}} always passes. A draft that fails stays pending_approval and its problems are saved on it (list_lead_drafts shows them).
WhenMessageWhat to do
The campaign is not foundNo campaign "<name>" in this workspace.Call list_campaigns and use the exact name or id.
A partial name matches more than one campaign"<name>" matches several campaigns: A; B. Use the exact name or id.Use the exact name or the id.
The step number or id is not one of the campaign's stepsNo step <ref> in this campaign. Steps are numbered 1 to <n> (switched off steps keep their number); get_cadence lists them.Read get_cadence and use the number shown there.
The campaign has no stepsThis campaign has no steps.Write a cadence first.
draft_ids is given but none of the values is a draft idNone of those draft_ids is a draft id, so nothing was approved. list_lead_drafts shows the ids; leave draft_ids out to approve all waiting drafts.Use ids from list_lead_drafts.

Example call:

{
  "name": "approve_lead_drafts",
  "arguments": {
    "campaign": "Dental clinics TX",
    "step": "1",
    "confirm": true
  }
}

Example result:

{
  "approved": 18,
  "not_approved": [
    {
      "draft_id": "d1b2c3d4-0000-4000-8000-000000000032",
      "lead": "Peachtree Pain Clinic",
      "problems": [
        "{{sender_first_name}} has no value: no mailbox name, no mailbox is chosen for this cadence"
      ]
    }
  ],
  "not_approved_count": 1,
  "not_approved_note": "1 not approved. {{sender_first_name}} has no value: no mailbox name, no mailbox is chosen for this cadence. Fix them (edit_lead_draft, the lead's contact, or the cadence's mailbox name) and approve again."
}

writing_style

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

Shows how Montana writes emails for a rep: the style it learned from the rep's own sent mail, or the workspace style when the rep has none yet, plus the workspace's own writing rules, which always win. With no rep it lists every rep with a learned style.

ArgumentTypeRequiredAccepts, default and limits
repstringnoRep name (part of it), email, id or "me". Default: everyone.

Returns: With rep: rep, how_it_works, uses (their own style, the workspace style, or only the workspace rules), their_style or workspace_style ({style, emails_learned, learned_at, newest_email_read}), workspace_rules (text from the brain's writing style section, or left out). Without rep: how_it_works, workspace_rules, workspace_style, reps (list of {rep, style, emails_learned, learned_at, newest_email_read}). Empty fields are dropped.

Changes: None, read only

Good to know:

  • Reads up to 200 style rows. The workspace style is the row with no rep.
  • To change the rules, edit the brain's writing section; this tool only reads.
WhenMessageWhat to do
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.

Example call:

{
  "name": "writing_style",
  "arguments": {
    "rep": "me"
  }
}

Example result:

{
  "rep": "Sam Reed",
  "how_it_works": "Montana writes each email in the voice of the rep it is sent as, ...",
  "uses": "their own style",
  "their_style": {
    "style": "Short, friendly, first names, one question per email.",
    "emails_learned": 84,
    "learned_at": "2026-12-02T06:00:12Z",
    "newest_email_read": "2026-12-01T22:10:00Z"
  },
  "workspace_rules": "Never mention price in a first email."
}