These twenty-four tools cover Engage’s planning surface: the campaigns you run and their key elements, each campaign’s brief, the dated deliverables that make up its plan, the campaign steps Leed’s assistant can run for you, the personas and accounts a campaign is aimed at, and the email figures that come back afterwards. There is an honest seam running through all of it. These tools plan, approve and record; they do not send. Creating an email deliverable plans a piece of work — it does not put a message in anybody’s inbox, and no tool here does. The one thing on this page that reaches your site is approving a page deliverable, which schedules that page to publish — and that tool stops and asks first.
If you are looking for the distribution channels a page publish fans out to, or the merged plan calendar that shows scheduled revisions and deployments alongside campaign work, those live with the publishing tools on MCP Tools: Publishing, Distribution and Users.
Reads need contact:read. Writes need contact:write, and approving, rejecting and rescheduling a deliverable need contact:publish — both held by Content Publisher and above. Starting a campaign step, answering one and approving its proposal need the Content Publisher role too, checked before the plan gate, so a caller without it gets 403 role_required with the reason rather than an upgrade prompt. The five step-run tools are MCP only; every other tool here is also available in the Leed Assistant. Three deletes — delete_campaign, delete_campaign_deliverable and delete_persona — are assistant-only and never shown to an MCP client.
Campaigns
list_campaigns
GET /api/campaigns · Returns { campaigns }, each with its key elements and readiness · Confirm-gated: no
Takes no parameters.
get_campaign
GET /api/campaigns/:id · Returns { campaign, audience, readiness }, or 404 · Confirm-gated: no
| Parameter | Type | Required | Default | Notes |
|---|---|---|---|---|
id | integer | Yes | — | The campaign id |
One campaign with its key elements, its audience as { personaIds, accountIds }, and its readiness as { ready, missing }. The tool tells a model to check readiness before starting campaign work: a campaign is ready to run once goal (and goalDetail for a custom goal), businessStage, at least one audience persona, at least one KPI, launchDate, timezone, ownerId, postsPageTypeId, channels ([] for posts only) and contextSources are set. missing names what is not. Readiness gates nothing on these routes; the plan, draft and schedule steps refuse a campaign that is not ready.
create_campaign
POST /api/campaigns · Returns { campaign, audience, readiness } · Confirm-gated: no
| Parameter | Type | Required | Default | Notes |
|---|---|---|---|---|
name | string, min 1 | Yes | — | Campaign name |
status | draft | scheduled | active | No | draft | Lifecycle state |
goal | attract-initial-traffic | drive-demos | brand-awareness | thought-leadership | custom | No | — | What the campaign is for. Needed for ready |
goalDetail | string, ≤ 280 | No | — | The goal in words; needed for ready when goal is custom |
businessStage | launching | new-product | growth | No | — | The company’s market stage. Needed for ready |
kpis | array of { id?, name, target, unit?, metric? }, ≤ 10 | No | — | Measurable targets. Omit id for a new KPI and the server assigns the next K-NN; metric names the Leed number metric that tracks it. At least one is needed for ready |
launchDate | YYYY-MM-DD | No | — | Day 0, in the campaign’s timezone. Needed for ready |
startDate, endDate | YYYY-MM-DD | No | — | Start on or before launch, end on or after it |
timezone | IANA timezone | No | the company’s | Needed for ready |
ownerId | string | No | the caller | CMS user id of the owner. Needed for ready |
postsPageTypeId | string | No | — | The posts page type the campaign’s posts are drafted in. Needed for ready |
channels | array of { channel, account, assigneeId? }, ≤ 10 | No | — | channel is x, linkedin, bluesky or discord; [] means posts only. Must not be null for ready |
authorIds | string[], ≤ 20 | No | — | CMS user ids of the campaign’s authors |
voiceNotes | string, ≤ 1,000 | No | — | Notes on voice and tone |
constraints | string, ≤ 2,000 | No | — | Rules the content must follow |
contextSources | { pageTypeIds, pageIds, urls, none? } | No | — | Extra context an agent may use. Always send all three lists; send { pageTypeIds: [], pageIds: [], urls: [], none: true } for no extra context. Needed for ready |
subject, preview | string or null | No | — | Email subject line and preheader, for email campaigns only |
Only name is required; the owner defaults to you and the timezone to the company’s. Omit a field to leave it unset, and send null to clear one. Dates are checked as real calendar dates and in order — start, launch, end — and a duplicate channel and account, or a duplicate KPI id, is a 400. A new campaign starts in draft, and it is moved to scheduled for you when a deliverable is approved, so you rarely need to set status by hand. What each key element means for the campaign is explained on Campaigns and Deliverables.
update_campaign
PUT /api/campaigns/:id · Returns { campaign, audience, readiness }, or 404 · Confirm-gated: no
Takes id (integer, required) plus any field from the create_campaign table, all optional. Omit a field to keep it and send null to clear it. A kpis, channels, authorIds or contextSources value you send replaces the whole list: send a stored KPI’s id to keep it, and omit the id for a new one — an id the campaign does not hold is refused, and a removed KPI id is never reissued. The date-order rule is checked on the merged record, so moving one date past another you did not send is a 400.
Deleting a campaign is not an MCP action — delete_campaign is registered but never shown to an MCP client, because it deletes the campaign’s deliverables and audience targeting with it. It is available in the Leed Assistant, where it parks for approval.
Brief
A campaign’s brief is its narrative, its messages, the questions its audience asks and the research behind them. Two tools read and write it.
get_campaign_brief
GET /api/campaigns/:id/brief · Returns { brief } · Confirm-gated: no
| Parameter | Type | Required | Default | Notes |
|---|---|---|---|---|
id | integer | Yes | — | The campaign id |
sections | array of narrative | messages | questions | research | No | all | Read only these, beside status, revision and updatedAt |
The brief holds narrative (text or null), messages ({ id: CM-nn, text, sources }), questions ({ id: Q-nn, personaId, journeyId, text }) and research (runs as R-nn, sources as S-nn, findings as F-nn). A source reference is { kind: page, pageId }, { kind: research, sourceId }, { kind: finding, findingId } or { kind: user, note }, and every item and the narrative carry writtenBy — agent or person — set by the server. Some fields are computed on every read and never stored: each question’s coveredBy (the deliverables, not rejected, that list it), each finding’s stale (every source it cites was retrieved more than 90 days ago), and status, which counts research findings, covered questions and deliverables and lists danglingQuestionIds. A campaign with no brief reads as empty sections at revision 0.
update_campaign_brief
PUT /api/campaigns/:id/brief · Returns { revision, updatedAt, status, warnings } · Confirm-gated: no
| Parameter | Type | Required | Default | Notes |
|---|---|---|---|---|
id | integer | Yes | — | The campaign whose brief to write |
baseRevision | integer | Yes | — | The revision you read, or 0 before the first write |
narrative | string, ≤ 2,000, or null | No | kept | The campaign’s one story; null clears it |
messages | array, ≤ 30 | No | kept | Replaces every message. Omit an item’s id to get the next free one |
questions | array, ≤ 200 | No | kept | Replaces every question. Omit an item’s id to get the next free one |
research | object | No | kept | Replaces all the research. Never sent with appendResearch |
appendResearch | { run, sources, findings, refresh? } | No | — | Adds one new research run without resending the stored research |
writtenBy | agent | person | No | agent over MCP | Who wrote this write; see below |
Each section you send replaces that section, and sections you do not send are kept. A write must send at least one. Over MCP the write is stamped as agent-written. Every write is guarded on the revision you read: a brief changed since is 409 concurrent_update and nothing is written, so re-read with get_campaign_brief and plan again. That guard is why this write is not confirm-gated — it cannot overwrite a change it never saw, and its scope is one campaign’s brief.
refresh in appendResearch re-dates sources you read again, and is the only way to add a source whose URL is already on the brief. A refused item is a 400 naming the section and item, and removing a question that a deliverable which is not rejected still lists is 409 brief_question_in_use, naming those deliverables. Every write is also held to the campaign checks — the same checks as campaign.mjs check brief, and check research when the write sends research. An agent-written write that fails one on an item it adds or changes is a 400 whose findings list each { section, id, message }; any other write is saved, with what the checks found in warnings.
Deliverables
A deliverable is one dated item on a campaign’s plan: a page to publish or republish, a site update or deploy, an email to send, a social post, or an event. Eight tools cover them: list, create and edit at low risk; approve, reject and reschedule behind two-phase confirmation; and a delete that only the assistant can run.
list_campaign_deliverables
GET /api/campaigns/:id/deliverables · Returns { deliverables } · Confirm-gated: no
| Parameter | Type | Required | Default | Notes |
|---|---|---|---|---|
id | integer | Yes | — | The campaign id |
Ordered by sequence, then by date. Each deliverable carries its type, its target (pageId, deploymentId or leadBatchId, null while unwritten), approvalStatus (draft, approved or rejected), ref, channel, account, copy, personaId, journeyId, questionIds, review, rejectionReason and completedAt. Match deliverables by ref when you run a plan again.
A new-page or republish deliverable also carries page — its page’s status, scheduledAt (while SCHEDULED), kind and deleted, or null while it links none. Once approved it carries pageSync, saying whether the page is still where approval scheduled it: scheduled, published (its live revision went live at or after approval), docs (the release pipeline schedules it), or mismatch with a reason of rescheduled (with the page’s scheduledAt), unscheduled or deleted. A mismatch was made outside the plan; it is shown, never undone. An unmanaged page deliverable carries siteSync instead — see below. Other types carry page: null and pageSync: null.
create_campaign_deliverable
POST /api/campaigns/:id/deliverables · Returns 201 with { deliverable, warnings } · Confirm-gated: no
| Parameter | Type | Required | Default | Notes |
|---|---|---|---|---|
id | integer | Yes | — | The campaign to add the deliverable to — not a deliverable id |
title | string, min 1 | Yes | — | Shown on the plan and calendar |
type | new-page | republish | social | deploy | site-update | email | event | Yes | — | Decides which target column it uses |
scheduledDate | integer | Yes | — | Publish or send time, in milliseconds since the epoch |
pageId | string or null | No | — | The target of a new-page, republish or social item; for an unmanaged page, the pageId in its .hbs front matter |
deploymentId | integer or null | No | — | The target of a deploy or site-update item; on an unmanaged page item, the staging deployment its push started |
leadBatchId | string or null | No | — | The target of an email item |
sequence | integer, ≥ 0 | No | last | Position in the plan |
detail | string, ≤ 10,000, or null | No | — | Free-text notes: an SEO brief, an image brief, a claims list |
assigneeId | string or null | No | — | CMS user id responsible for it |
ref | string or null | No | — | The plan’s asset id: 1–64 letters, digits and hyphens, unique within the campaign |
channel | x | linkedin | bluesky | discord, or null | Social only | — | Required for social, refused on every other type |
account | string, ≤ 100, or null | Social only | — | The account that posts; required with channel |
copy | string, ≤ 3,000, or null | No | — | Social only: the exact text to post, tracked link included |
personaId | integer or null | No | — | The persona this deliverable serves; must exist |
journeyId | string or null | No | — | A journey stage from list_journey_stages; must exist |
questionIds | string[], ≤ 50, or null | No | — | Brief question ids this deliverable answers, unique |
review | object or null | No | — | The persona-review result. Replaces any stored review; never accepts override |
sitePath | string or null | No | — | new-page or republish only: makes it an unmanaged page — see below |
nav | { menuId, parentItemId?, label?, menuItemId? } or null | No | — | new-page or republish only: where the page belongs in navigation |
writtenBy | agent | person | No | agent over MCP | Who wrote this write; an agent write that fails a campaign check is refused |
The body is strict: a field it does not name is refused rather than dropped, which keeps the server-owned fields — approvalStatus, the approval and rejection stamps, completedAt and review.override — out of every writer’s reach.
{
"id": 7,
"title": "Publish the Q3 launch post",
"type": "new-page",
"scheduledDate": 1780272000000,
"ref": "A-03",
"pageId": "9f1c0f5e-6b1a-4b2e-9a77-0c2d5a1f8e10",
"personaId": 3,
"questionIds": ["Q-02"],
"assigneeId": "usr_4b2c"
}update_campaign_deliverable
PUT /api/campaigns/:id/deliverables/:itemId · Returns { deliverable, page, warnings } · Confirm-gated: no
Takes id (the campaign), itemId (the deliverable) and any field from the create_campaign_deliverable table. Pass only the fields to change, and null to clear one. Changing an approved deliverable’s type, target, title, detail, channel, account or copy returns it to draft; changing its scheduledDate, sequence, assigneeId, personaId, journeyId, questionIds, review, ref or nav keeps it approved. Any change to a rejected deliverable returns it to draft. A new review replaces the stored one and clears a person’s acceptance of it. An edit that races another write to the same deliverable is 409 deliverable_changed: read it again and retry.
This tool can never change a schedule, which is why it is low risk. An edit that would move an approved new-page or republish deliverable’s scheduled page, or unschedule it, is 409 confirm_required and changes nothing — the tool has no confirm flag to get past that. Move the date with reschedule_campaign_deliverable, and reject the deliverable before changing its content.
Campaign checks on every deliverable write
Both write tools are held to the campaign checks: the campaign.mjs chars limits on social copy, and the check post rules on a campaign-draft’s blocks. Over MCP a write counts as agent-written, so one that fails a check on this deliverable is a 400 whose findings list each { section, id, message }. A write sent as writtenBy: "person" is saved, with what the checks found in warnings.
Unmanaged page deliverables
A new-page or republish deliverable with a sitePath is an unmanaged page: a .hbs file in your site checkout rather than a page edited in the CMS. sitePath is that file’s path from the checkout root — under src/, ending .hbs, with no .. segment, at most 300 characters — and the URL comes from it, so src/compare/leed-vs-acme.hbs builds /compare/leed-vs-acme/. Its pageId is the UUID in the file’s front matter; there may be no CMS page behind it until the production build indexes it.
Approving an unmanaged page schedules nothing: it ships with the site. Once approved it carries a read-only siteSync instead of pageSync, worked out from your deployments:
siteSync | Meaning |
|---|---|
awaiting-push | Approved; not yet pushed |
staging-building | The staging build its push started is running |
staging-failed | That staging build failed |
on-staging | Pushed and built on staging — not live |
live | Promoted to production |
removed | The page has gone from the site |
Link the staging deployment its push started as the deliverable’s deploymentId; that edit keeps it approved.
nav records where a planned page belongs in navigation, on any new-page or republish deliverable: menuId (from list_menus), an optional parentItemId (omit for the top level), an optional label (the page’s title when omitted), and menuItemId, recorded once the item has been added so a re-run never adds it twice. Changing nav keeps the deliverable approved.
approve_campaign_deliverable
PUT /api/campaigns/:id/deliverables/:itemId/approve · Returns a preview, then the result · Confirm-gated, route mode · Needs contact:publish
| Parameter | Type | Required | Default | Notes |
|---|---|---|---|---|
id | integer | Yes | — | The campaign |
itemId | integer | Yes | — | The deliverable to approve |
confirm | boolean | No | false | Omit for a preview; true to execute, after the user’s explicit yes |
Approves a draft deliverable and moves its campaign from draft to scheduled; a scheduled or active campaign keeps its status. Approving a new-page or republish deliverable schedules its page to publish at exactly the deliverable’s scheduledDate, with page scheduling’s own checks, and a page already scheduled elsewhere moves to that date. A docs page (documentation or API) is approved without scheduling, because the release pipeline schedules it. Social and event deliverables are only approved, to post by hand, and an unmanaged page ships with the site.
The route runs the dry run itself: the preview shows the title, date, target, status, the page’s status and slot, the planned action, and every refusal. Approval is refused for a deliverable that is not a draft; with 409 deliverable_target_required when it does not link the target its type needs yet; with 409 deliverable_page_taken, naming the holder in existing, when another approved page deliverable in any campaign already schedules the page; and with 409 deliverable_schedule_refused when the page cannot be scheduled — its code is page_publish_required, internal_page_not_publishable, missing_required_fields (with missingFields), page_not_schedulable (a published page must be revised first), private_page, page_deleted or date_in_past. A refused deliverable stays draft, and 409 deliverable_changed means it changed while this ran.
reject_campaign_deliverable
PUT /api/campaigns/:id/deliverables/:itemId/reject · Returns a preview, then the result · Confirm-gated, route mode · Needs contact:publish
| Parameter | Type | Required | Default | Notes |
|---|---|---|---|---|
id | integer | Yes | — | The campaign |
itemId | integer | Yes | — | The deliverable to reject |
reason | string, 1–500 | Yes | — | Why it is rejected; recorded on the deliverable |
confirm | boolean | No | false | Omit for a preview; true to execute |
Rejects a draft or approved deliverable. Any later edit returns it to draft. Rejecting an approved new-page or republish deliverable unschedules its SCHEDULED page, back to DRAFT, or to IN_REVISION once it has been published; a PUBLISHED or docs page is untouched. The unschedule needs page:publish on the page, or the call is 409 deliverable_schedule_refused with code page_publish_required. The preview shows the title, date, target, status, the page action and any refusal.
reschedule_campaign_deliverable
PUT /api/campaigns/:id/deliverables/:itemId/reschedule · Returns a preview, then the result · Confirm-gated, route mode · Needs contact:publish
| Parameter | Type | Required | Default | Notes |
|---|---|---|---|---|
id | integer | Yes | — | The campaign |
itemId | integer | Yes | — | The deliverable to move |
scheduledDate | integer | Yes | — | The new date, in milliseconds since the epoch |
confirm | boolean | No | false | Omit for a preview; true to execute |
Moves a deliverable to a new date. An approved new-page or republish deliverable’s SCHEDULED page moves with it, under approval’s checks (409 deliverable_schedule_refused with its code, date_in_past included). A page that is not SCHEDULED, a docs page or a deleted one is left alone and only the date changes. plannedDate is never touched. Moving a rejected deliverable returns it to draft, as any edit does; the preview says so in returnsToDraft, beside the date it moves from and to, the page’s status and slot and the planned page action.
Deleting a deliverable is not an MCP action
delete_campaign_deliverable is registered but never shown to an MCP client. Deleting an approved page deliverable unschedules its SCHEDULED page (never a PUBLISHED or docs page), so it stays in the Leed Assistant, where it parks and waits for your approval; Leed Assistant shows what that looks like. The overlay a person uses to review a whole campaign’s worth of items at once is described in Campaigns and Deliverables.
Campaign steps
Five MCP-only tools let a client hand a step of the campaign to Leed’s own assistant, which runs it server-side, so a campaign moves forward with no Claude skill installed. A run never writes as it goes: it collects every write it would make into a proposal, which is applied only when you approve it. Starting a run, answering it and approving it need the Content Publisher role and the campaign planner entitlement. What each step does, and how the same runs look from the campaign screen, is on Running a campaign’s steps; this section is the tool reference.
stateDiagram-v2
[*] --> queued: start_campaign_step
queued --> running
running --> waiting_for_answer: asks a question
waiting_for_answer --> running: answer_campaign_step_run
running --> waiting_for_approval: proposal ready
waiting_for_approval --> applying: approve_campaign_step_run
applying --> applied
running --> failed
applying --> failed
waiting_for_approval --> cancelled: rejected in Leed
applied --> [*]
start_campaign_step
POST /api/campaigns/:id/steps/:step · Returns 202 with { run } · MCP only · Confirm-gated: no
| Parameter | Type | Required | Default | Notes |
|---|---|---|---|---|
id | integer | Yes | — | The campaign |
step | setup | plan | draft | review | schedule | Yes | — | The step to run |
Starting writes nothing. plan, draft and schedule need a ready campaign (409 not_ready, with missing). A campaign runs one step at a time: a start while a run is active is 409 run_active, naming it. Research is not a Leed step — run it in your AI tool with /leed:campaign-research, or skip it. Follow the run with get_campaign_step_run.
start_campaign_setup_from_idea
POST /api/campaigns/setup-runs · Returns { run } · MCP only · Confirm-gated: no
| Parameter | Type | Required | Default | Notes |
|---|---|---|---|---|
idea | string, 1–2,000 | Yes | — | The campaign idea or goal, in the user’s own words |
Runs the setup step for a campaign that does not exist yet. Starting creates nothing: the run proposes the campaign as item 0 (proposal:0) with every key element it can infer, proposes a new persona when the audience matches none, and asks one question at a time for what it cannot infer. Approving the run creates the campaign and the personas you kept, and answers with its campaignId. Item 0 cannot be dropped, and a dropped persona leaves the audience. You hold one open draft at a time; starting another while one is open is 409 run_active.
get_campaign_step_run
GET /api/campaign-step-runs/:runId · Returns { run } · MCP only · Confirm-gated: no · Needs contact:read
| Parameter | Type | Required | Default | Notes |
|---|---|---|---|---|
runId | string, 1–64 | Yes | — | From the start call |
The run’s status — queued, running, waiting_for_answer, waiting_for_approval, applying, applied, failed or cancelled — the question it waits on, its proposal (each item’s index, tool, arguments, summary and, once approved, outcome), the model it ran on, its token usage and any error.
answer_campaign_step_run
POST /api/campaign-step-runs/:runId/answer · Returns 202 with { run } · MCP only · Confirm-gated: no
| Parameter | Type | Required | Default | Notes |
|---|---|---|---|---|
runId | string | Yes | — | The run |
answer | string, 1–4,000 | Yes | — | The user’s own answer, in their words |
Answers the question a run in waiting_for_answer is waiting on, and the run resumes from it. Answer once per question: anything else is 409 not_waiting_for_answer. The answer should be the user’s, not one the model makes up.
approve_campaign_step_run
POST /api/campaign-step-runs/:runId/approve · Returns a preview, then { run, applied, campaignId } · MCP only · Confirm-gated, route mode
| Parameter | Type | Required | Default | Notes |
|---|---|---|---|---|
runId | string | Yes | — | A run in waiting_for_approval |
drops | integer[] | No | — | Indexes of proposal items not to apply |
edits | array of { index, args } | No | — | Items to apply with these arguments instead |
confirm | boolean | No | false | Omit for a preview; true to apply, after the user’s explicit yes |
The preview lists every item and whether it applies. Confirmed, the kept writes are applied in order as you, each through its own route with that route’s checks. An item that uses what a dropped item creates is refused up front (400 invalid_choices). Applying stops at the first item that fails, and every item records its outcome; a run that stopped partway answers 422 with what was applied. Rejecting or cancelling a run is done in Leed, not over MCP.
Audience
A campaign’s audience is a set of persona ids and account ids. Reading it is ordinary; replacing it stops and asks.
get_campaign_audience
GET /api/campaigns/:id/audience · Returns { personaIds, accountIds } · Confirm-gated: no
| Parameter | Type | Required | Default | Notes |
|---|---|---|---|---|
id | integer | Yes | — | The campaign id |
Ids only. Resolve persona ids with list_personas and account ids with list_engage_accounts.
set_campaign_audience
PUT /api/campaigns/:id/audience · Returns { ok: true } · Confirm-gated: yes, in local mode
| Parameter | Type | Required | Default | Notes |
|---|---|---|---|---|
id | integer | Yes | — | The campaign to retarget |
personaIds | array of integers | No | [] | Persona ids to target |
accountIds | array of integers | No | [] | Account ids to target |
confirm | boolean | No | false | Omit for a preview; true to execute |
Two-phase confirmation
set_campaign_audience replaces the audience wholesale. Whatever arrays you send become the campaign’s targeting; anything you left out is removed. Omitting personaIds and accountIds entirely defaults them both to [], which clears the audience. Every id must be one of your own workspace’s personas or accounts: a foreign or unknown id is refused with 400 unknown audience ids, listing the offending personaIds and accountIds, and nothing is stored. Because the local preview is built from your arguments alone, it cannot catch a bad id — the confirming call does.
Because MCP clients have no uniform way for a server to interrupt and ask a question, that approval is expressed inside the tool contract instead. This tool is gated in local mode, which means the MCP layer refuses to dispatch the call at all until it is confirmed, and builds the preview itself rather than asking the API route for one. The first call — with confirm omitted or false — changes nothing and returns:
{
"preview": true,
"action": "set_campaign_audience",
"summary": "Replace campaign 7's audience targeting wholesale with 2 persona(s) and 5 account(s).",
"effects": [
"personaIds → [3, 9]",
"accountIds → [11, 12, 14, 21, 33]"
],
"instruction": "This was a preview — nothing was changed. Present this plan to the user and ask for approval; only call set_campaign_audience again with the same arguments plus confirm: true after the user explicitly approves."
}Your client shows you that plan; you approve it; the model calls the tool again with the same arguments plus confirm: true. There is no separate endpoint, no token and no session state to carry — the same arguments, twice. Why the mechanism exists at all, and which other tools use it, is explained once on How Leed’s AI Is Guarded.
Campaign performance
get_campaign_email_metrics
GET /api/campaigns/:id/email-metrics · Returns { summary, batches } · Confirm-gated: no
| Parameter | Type | Required | Default | Notes |
|---|---|---|---|---|
id | integer | Yes | — | The campaign id |
Rolls up real per-recipient engagement across every email deliverable in the campaign that has a lead batch behind it. summary totals batches, recipients, sent, opened, clicked, unsubscribed and bounced; batches breaks the same figures out per send.
These are true aggregates, never estimates or placeholders. A campaign that has not sent anything yet returns a zeroed summary and an empty batches array — not an error. Where the open and click numbers come from, and what they can and cannot tell you, is covered in Tracked Links and Open Tracking.
Personas
A persona is a buyer archetype. Each persona carries a list of job-title keywords, and a contact is tagged with the persona when one of them appears as a whole word in the contact’s title. Campaigns target personas rather than individual people.
list_personas
GET /api/personas · Returns { personas } · Confirm-gated: no
Takes no parameters. Ungated by plan.
create_persona
POST /api/personas · Returns { persona } · Confirm-gated: no
Only name is required.
Every persona field
| Parameter | Type | Required | Default | Notes |
|---|---|---|---|---|
name | string, min 1 | Yes | — | Display name, e.g. “VP of Engineering” |
keywords | string[] | No | — | Job-title keywords, matched whole-word and case-insensitive. A present array replaces the stored set. At most 200, each up to 64 characters |
summary | string or null | No | — | Who this persona is |
goals | string or null | No | — | What they are trying to achieve |
pains | string or null | No | — | Problems that motivate them |
triggers | string or null | No | — | What makes them start looking |
objections | string or null | No | — | Why they might say no |
preferredContent | string or null | No | — | Formats they engage with |
kpis | string or null | No | — | How they are measured |
Every field except name and keywords is free text, so these are as much a brief for the model as a database record — a persona with real pains and objections written out gives a drafting prompt something to work from. A persona has no buying-committee role; roles are set on contacts by people.
update_persona
PUT /api/personas/:id · Returns { persona } · Confirm-gated: no
Takes id (integer, required) plus any of the fields above. Omit a field to keep it, and send null to clear it. A keywords array you send replaces the whole set.
Changing keywords re-tags contacts immediately. Deleting a persona is not an MCP action; delete_persona is assistant-only, and a deletion removes the persona’s tags from contacts at once. Personas covers keyword matching from the Engage side.
list_campaigns_for_persona
GET /api/campaigns/for-persona/:personaId · Returns { campaigns }, each with its readiness · Confirm-gated: no
| Parameter | Type | Required | Default | Notes |
|---|---|---|---|---|
personaId | integer | Yes | — | The persona id |
The reverse lookup: every campaign that targets this persona. Note that this one lives on the campaign routes and therefore carries the campaign-planner gate, unlike the other three persona tools.
If the tool name you came here for is not on this page, the Operator MCP Tool Index lists every tool alphabetically with the page that documents its parameters.