Skip to main content
Glama

campaigns_update

CRUD + actions for campaigns.

Method: PATCH /api/v1/workspaces/{workspace_sqid}/campaigns/{sqid}/

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "sqid": "<sqid>"
    },
    "name": "campaigns_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoCampaign display name (e.g. 'Q2 2026 — SaaS CTOs cold').
sqidYes
pinnedNoShow in the sidebar navigation for quick access. Cosmetic only.
segmentNo
priorityNoInteger; higher priority campaigns consume mailbox send slots first when quotas are tight. Default 0.
sequenceNo
add_limitNoUTC-daily cap on how many NEW leads **autopilot** may enrol into step 1 from this campaign's segment. Counter resets at UTC midnight (see `current_add_count` / `last_add_reset_at`). **Applies to autopilot only.** With `is_autopilot_enabled=false` nothing is enrolled automatically at all — enrol with `campaigns_add_leads`, which ignores this cap. `0` stops autopilot enrolling while leaving it free to keep the segment stocked, which is how you stage leads ahead of turning sending on. In-progress leads flow through the remaining steps either way. Typical setting: 50–200 for ramp-up on a fresh domain.
is_activeNoTrue = sending. Writable shorthand for `state`: setting it true moves the campaign to ACTIVE, setting it false to PAUSED (a campaign that is already cancelled or archived keeps that state). Prefer `campaigns_activate` / `campaigns_pause` — they also do the queue work.
mailboxesNoSqids of Mailbox rows used for sending (SMTP) and reply ingestion (IMAP) on this campaign. At least one enabled SMTP mailbox must be attached for `campaigns_activate` to succeed — list available mailboxes via `workspaces_mailboxes_list`. Settable on create AND update; on update this **replaces** the set (pass the full desired list, not a delta). Omit on PATCH to leave the existing set unchanged.
email_configsNoLegacy field — use mailboxes instead. Sqids of EmailConfig rows used for sending/receiving.
footer_templateNoThe footer added under every email of this campaign, as plain text (one line per row) — translate or reword it freely. Variables: `{legal_name}`, `{postal_address}`, `{registration_id}` (sender details from the workspace), `{unsubscribe_link}` (per-recipient opt-out link), `{privacy_link}` (the privacy notice through the sending domain; only for EEA/UK recipients and when the workspace has a notice), `{commercial_notice}` ("This is a commercial message from …" where US law asks for it and there is no consent; empty otherwise). A line whose variables are all empty is left out, and so is a ` · `-separated part whose variable is empty. In the HTML part the links become anchors; `{unsubscribe_link:Abmelden}` sets the anchor text. Blank = the default template. No other `{names}` are allowed. Leaving out `{unsubscribe_link}`, `{legal_name}` or `{postal_address}` is allowed but reported in `footer_warnings` and the pre-flight report (anti-spam laws require them).
is_footer_disabledNotrue = send this campaign's emails with no footer and no List-Unsubscribe / List-Unsubscribe-Post headers. Never blocks sending, but anti-spam laws require an opt-out and the sender's name and address in most countries, so every such send is recorded as a compliance warning (`compliance_decisions_list`, gate `footer`, reason `footer_disabled`) and the pre-flight report warns. Default false.
is_autopilot_enabledNoRuns the whole chain every 10 minutes: pulls fresh prospects from the saved searches feeding this campaign's segment when supply runs low, restarts stalled upstream enrichments, and generates messages that skip REVIEW_REQUIRED and are auto-approved for sending. Two costs to weigh: pulling spends connects, and there is no way to recall an auto-sent message — so turn this on only when template quality is proven. Use `campaigns_pipeline` to see what it would do and why it is or isn't filling.
mark_completed_afterNoDays after the last step's send before a lead who never replied is marked COMPLETED (and added to `completed_segment` when set). Default 7. The wait lets a late reply to the last step count as a reply; 0 completes leads as soon as the last step goes out.
blocked_email_fallbackNoWhat happens when the compliance rules don't allow an email step for a lead for an email-only reason (consent needed in their country, e.g. DE; a personal mailbox; missing source evidence) — instead of taking the lead out of the campaign, a task appears in `action_items_list` (`kind=rerouted`) to reach them on another channel, in place of that email step and each later one. `auto` (default): a LinkedIn task when the lead's LinkedIn profile is known (lead context or Discovery person), else a call task when a work phone is known, else no task. `linkedin_task` / `call_task`: always that task. `none`: no task; the lead leaves the campaign (the old behaviour). Opted-out, bounced and otherwise hard-blocked leads never get a task. Only applies when the gates are in enforce mode. * `auto` - LinkedIn task if we know their profile, else a call task if we know a phone * `linkedin_task` - Always a LinkedIn task * `call_task` - Always a call task * `none` - No task: take the lead out of the campaign
is_open_tracking_enabledNoInject a 1×1 tracking pixel. Off by default because Gmail now warns recipients about tracking images and reply rates drop. Only enable if you're certain the analytics are worth it. Skipped for recipients in countries whose rules require consent for tracking pixels (`tracking_pixel: consent_required`, e.g. FR) unless an active consent record exists; those messages then don't need a link domain either.
unsubscribe_clause_templateNo**Deprecated, write-only** — use `footer_template`. The old opt-out sentence (HTML allowed, only `{unsubscribe_link}`): it becomes the opt-out line of the default footer template. Ignored when `footer_template` is sent too.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.5/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are supplied, so the description carries the full behavioral burden. It indicates a PATCH mutation but does not disclose permissions, side effects, whether omitted fields remain unchanged, whether list fields are replaced, or any compliance/sending consequences; the schema adds field-level details but the description itself adds almost no behavioral context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is very short and front-loads the HTTP method, with no wasted prose. However, the first sentence is generic boilerplate and the overall brevity reflects under-specification rather than useful concision for a 17-parameter mutation tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex 17-parameter update tool with no annotations and no output schema, the description should clarify partial-update behavior, side effects, and when to prefer dedicated action tools. The schema covers most parameter semantics, but the definition as a whole is incomplete for safe selection and invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 82%, so the input schema already documents most parameters in detail. The description contributes no parameter meaning beyond the endpoint path and does not clarify sqid, required fields, or replacement semantics, so it meets only the baseline for a high-coverage schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The PATCH endpoint path signals that this tool updates a specific campaign identified by workspace_sqid and sqid, so an agent can infer an update operation. However, 'CRUD + actions for campaigns' is generic and does not explicitly state that this tool updates campaign settings or which fields it can change, nor does it distinguish this from campaigns_create, campaigns_get, or campaigns_activate beyond the HTTP method.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this update tool versus alternatives such as campaigns_create, campaigns_activate, campaigns_pause, or campaigns_archive. It also does not mention the dedicated action tools referenced by some schema fields, leaving the agent to infer that this is the general settings-edit path.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.