Skip to main content
Glama

update_campaign

Idempotent

Patch any subset of fields on an existing campaign. NOTE: structural edits (sequence, language, audience, accounts) are rejected on an ACTIVE campaign, pause it first (set status:'paused'), make the edit, then resume. You can pause and edit in one call by sending status:'paused' alongside the change. sequence must be a JSON array of steps (never a stringified tree).

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": {
      "campaign_id": "<campaign_id>"
    },
    "name": "update_campaign"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoNew campaign name.
statusNoLifecycle status. Switching to 'active' triggers launch validation.
languageNoLanguage the sequence is sent in: "" (as written, default), "auto" (each prospect's LinkedIn profile language) or an ISO 639-1 code like "de" or "ar". Not the same as the workspace inbox language (what replies are translated into). With a fixed language, every message step needs a `translations[lang]` entry before launch. With auto, missing languages are translated by the server the first time a prospect needs one. On every save the server keeps only translations the setting can use: a fixed language keeps only its own (switching German to Arabic drops the German ones), "" keeps none, auto keeps all.
scheduleNoCampaign sending window { enabled, timezone, days, startDate, endDate, startTime, endTime }.
sequenceNoFull branching tree (replaces the existing sequence). LIMITS: up to 200 steps total and 25 nesting levels. Must be a JSON array, not a stringified tree.
accountIdsNoSender account ids (from list_accounts) that run this campaign. A structural change: pause an active campaign first.
campaign_idYesId of the campaign (from list_campaigns).
dailyLimitsNoMerged into the campaign's existing caps per action: actions you send are overwritten, actions you omit are left alone. To lift a cap, send that action as 0 (a non-positive campaign cap means uncapped, and the account's own limits then govern alone). Totals per day for the whole campaign across all senders, not per account. See create_campaign for the full semantics.
audienceDataNoSame shapes as create_campaign's audienceData. For linkedin_search, a new url starts a fresh background import.
audienceSourceNolinkedin_urls, csv, lead_list or linkedin_search. The shape of audienceData depends on it. A structural change: pause an active campaign first.
sourceLanguageNoThe language the sequence copy is written in, ISO 639-1 ("" = let the server detect it). Prospects who'd get this language receive the copy as written, and a fixed `language` equal to it needs no translations. Copy may mix languages (e.g. Arabic with English terms): name the main one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / sequence / items / properties / variants / description
      Previous value: -"A/Z test (connection_request/message/follow_up/inmail): EXTRA message variants beyond `body`. `body` is Variant A; these are the extras. When 1+ is present, sends split evenly across [body, ...variants] and the campaign tracks reply/accept rate per variant (see get_campaign_ab_stats). Omit for no test."New value: +"A/Z test (connection_request/message/follow_up/inmail): EXTRA message variants beyond `body`. `body` is Variant A; these are the extras. When 1+ is present, sends split evenly across [body, ...variants] and the campaign tracks reply/accept rate per variant (see get_campaign_stats with include ab_tests). Omit for no test."
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already establish non-destructive, idempotent, closed-world writes, so the bar is lower. The description adds real behavioral context the annotations cannot convey: the server-side rejection of structural edits on active campaigns and the required array shape for sequence. It stops short of describing what the response contains or whether partial failures are atomic.

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

Conciseness5/5

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

Four short sentences, purpose first, then the operational caveat and the single-call shortcut. Every sentence carries a constraint or a failure mode an agent would otherwise hit; nothing is restated from the schema wholesale.

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

Completeness4/5

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

For an 11-parameter nested mutation tool with no output schema, the description covers the mutation's main trap and the pause/resume workflow, leaving field-level detail to the exhaustive schema. It could note that omitted fields are left untouched and what a successful call returns, but nothing an agent needs to invoke it correctly is missing.

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

Parameters4/5

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

With 100% schema coverage the baseline is 3, and the schema already documents all 11 parameters in depth. The description still earns credit for surfacing the two highest-risk parameter rules up front: status:'paused' as the unblock mechanism and sequence needing a real JSON array rather than a stringified tree.

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

Purpose5/5

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

"Patch any subset of fields on an existing campaign" gives a specific verb (patch), resource (campaign) and scope (partial update, not replace). The patch semantics alone distinguish it from create_campaign and from the single-purpose siblings like pause_campaign or update_follow_ups.

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

Usage Guidelines4/5

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

It states a clear when-not condition (structural edits on an ACTIVE campaign are rejected) and prescribes the workaround, including the combined pause-and-edit call. It does not name pause_campaign/resume_campaign as alternatives, but it does route the agent to the in-call status change instead, which is actionable guidance rather than an omission that would cause a wrong choice.

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.

Resources