Skip to main content
Glama

Edit a campaign

update_campaign
Idempotent

Change a campaign's settings and/or replace its ordered steps. Editing the steps of a running campaign needs the operator's approval when approval is on. Requires the manage_campaigns scope.

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 name.
stepsNoOrdered steps. email: {type:"email", variants:[{subject, body, weight?}] or subject+body, condition?, reply_in_thread?}. wait: {type:"wait", days, business_days?}. task: {type:"task", title, due_in_days?, kind? (task|call|meeting), assignee? (human|agent), wait_for_done?}. Templates: {{first_name}} {{last_name}} {{name}} {{email}} {{title}} {{company.name}} {{company.domain}} {{fields.<key>}} {{sender.name}}, with {{var | default: "text"}}.
footerNoRelay identities only: full (default, your text plus the sender, postal address and unsubscribe link) or own (your step body is the whole message; set opt_out_line).
windowNo
stop_onNo
strategyNoNew strategy text.
timezoneNoIANA zone.
daily_capNo
send_daysNo
skip_datesNo
campaign_idYesCampaign id.
descriptionNoNew description.
identity_idNoSending identity id.
track_opensNo
opt_out_lineNoWith footer own: the exact words your body uses to let a reader opt out, for example reply "no". Every email body must contain it.
timezone_modeNocontact or fixed.
idempotency_keyNoOptional. Repeating a call with the same key and the same arguments returns the first result instead of writing again, so retries are safe.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / footer
      Added value: +{
      +  "description": "Relay identities only: full (default, your text plus the sender, postal address and unsubscribe link) or own (your step body is the whole message; set opt_out_line).",
      +  "enum": [
      +    "full",
      +    "own"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / opt_out_line
      Added value: +{
      +  "description": "With footer own: the exact words your body uses to let a reader opt out, for example reply \"no\". Every email body must contain it.",
      +  "type": "string"
      +}
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true and destructiveHint=false, so the description's job is to add operational context, and it does: the manage_campaigns scope requirement, the operator-approval gate for step edits on running campaigns, and the fact that steps are replaced wholesale rather than appended. It does not clarify whether omitted parameters leave existing settings untouched, which matters for a partial-update tool.

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?

Three short sentences, front-loaded with the core action and followed by the two constraints that change agent behavior. Nothing is repeated from the title or schema and no sentence is filler.

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

Completeness3/5

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

For a 17-parameter mutation with nested step objects and no output schema, the description covers the action, auth scope and the approval gate, and idempotency is documented in the schema. However it leaves out the most consequential unknown for callers — whether unspecified fields are preserved or reset — and gives no sense of what a successful edit returns.

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 65%, and many parameters (steps, footer, opt_out_line, idempotency_key) already carry detailed inline documentation including template syntax and enum intent. The description adds one genuinely new semantic — that 'steps' replaces the whole ordered list — but says nothing about the other 16 parameters or the partial-update contract, so the baseline 3 is right.

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

Purpose4/5

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

The description uses a specific verb and resource: 'Change a campaign's settings and/or replace its ordered steps', which is clearly distinguishable from create_campaign, get_campaign, launch_campaign and pause_campaign in the sibling list. It stops short of naming a sibling explicitly, so it earns a 4 rather than a 5.

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

Usage Guidelines3/5

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

It gives useful preconditions — editing steps of a running campaign needs operator approval, and the manage_campaigns scope is required — which tells the agent when the call may fail. It does not say when to use this instead of sibling tools such as create_campaign or launch_campaign, nor what to do when only one field changes, so usage is implied rather than routed.

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