Skip to main content
Glama

Update Campaign

update_campaign
DestructiveIdempotent

Update a draft campaign. Only the fields you pass are changed. list_ids REPLACES the full current list set (and replaces a segment target): to add or remove a list, prefer add_lists_to_campaign / remove_lists_from_campaign. segment_id sends to one segment instead of lists. Also changes exclusions (exclude_list_ids, exclude_segment_ids, exclude_tag_ids: each replaces the stored set, an empty array clears it), frequency_cap, track_opens, track_clicks and inbox_tracking (Inbox Tracker needs the paid add-on and uses its quota). Settings you omit keep their stored value. Setting scheduled_at publishes the campaign for sending, so it takes two steps: call first without confirm to get a preview (nothing is changed), get an explicit yes from the user, then call again with confirm: true. Set dry_run: true to see the exact fields that would be sent without changing anything.

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
htmlNoHTML email content
nameNoCampaign name
rulesNoSend rules object: limit (number of contacts), contacts_order (first or last)
tag_idNoCampaign tag ID
confirmNoMust be true when scheduled_at is set, because that schedules the campaign to send. Leave false first to get a preview; nothing is changed
dry_runNoValidate inputs and show what would be sent without changing anything, even when confirm is true
subjectNoEmail subject line
list_idsNoList IDs to send to (max 150). REPLACES the campaign's full recipient list set, and replaces a segment if the campaign sends to one: to add a list, include the current lists as well (or use add_lists_to_campaign)
reply_idNoPre-configured reply email ID
plain_textNoPlain text content
segment_idNoOne segment ID to send to. Replaces the campaign's lists. Give list_ids or segment_id, not both
campaign_idYesCampaign ID
pause_rulesNopause rules object as in the panel: pause_target, pause_limit, pause_criteria, pause_condition
reply_emailNoReply-to email address
report_spamNoAdd a report-abuse link
sender_nameNoSender display name (give together with sender_email)
track_opensNoOpen tracking for this campaign; false turns the open pixel off. Omit to keep the stored value
scheduled_atNoSchedule datetime (YYYY-MM-DD HH:MM:SS, account timezone). Setting it PUBLISHES the campaign for sending at that time, so it requires confirm: true
sender_emailNoSender email address (give together with sender_name)
track_clicksNoClick tracking for this campaign; false turns link tracking off. Omit to keep the stored value
frequency_capNotrue skips contacts already emailed within the account's frequency-cap window; false turns it off. Omit to keep the stored value
inbox_trackingNotrue turns Inbox Tracker on for this campaign (uses Inbox Tracker quota). Needs the paid Inbox Tracker add-on: the API rejects true on accounts without it. Omit to keep the stored value
viewin_browserNoAdd a view-in-browser link
email_preheaderNoEmail preheader text (max 150 chars)
exclude_tag_idsNoTag IDs to exclude from the send. REPLACES the stored exclusions; an empty array clears them; omit to keep them
exclude_list_idsNoList IDs to exclude from the send. REPLACES the stored exclusions; an empty array clears them; omit to keep them
mailing_preferenceNoAdd a mailing-preference link
exclude_segment_idsNoSegment IDs to exclude from the send. REPLACES the stored exclusions; an empty array clears them; omit to keep them
permission_reminderNoPermission reminder text (3-150 chars)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • addedInput schema / properties / exclude_list_ids
      Added value: +{
      +  "description": "List IDs to exclude from the send. REPLACES the stored exclusions; an empty array clears them; omit to keep them",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": [
      +    "null",
      +    "array"
      +  ]
      +}
    • addedInput schema / properties / exclude_segment_ids
      Added value: +{
      +  "description": "Segment IDs to exclude from the send. REPLACES the stored exclusions; an empty array clears them; omit to keep them",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": [
      +    "null",
      +    "array"
      +  ]
      +}
    • addedInput schema / properties / exclude_tag_ids
      Added value: +{
      +  "description": "Tag IDs to exclude from the send. REPLACES the stored exclusions; an empty array clears them; omit to keep them",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": [
      +    "null",
      +    "array"
      +  ]
      +}
    • addedInput schema / properties / frequency_cap
      Added value: +{
      +  "description": "true skips contacts already emailed within the account's frequency-cap window; false turns it off. Omit to keep the stored value",
      +  "type": [
      +    "null",
      +    "boolean"
      +  ]
      +}
    • addedInput schema / properties / inbox_tracking
      Added value: +{
      +  "description": "true turns Inbox Tracker on for this campaign (uses Inbox Tracker quota). Needs the paid Inbox Tracker add-on: the API rejects true on accounts without it. Omit to keep the stored value",
      +  "type": [
      +    "null",
      +    "boolean"
      +  ]
      +}
    • addedInput schema / properties / track_clicks
      Added value: +{
      +  "description": "Click tracking for this campaign; false turns link tracking off. Omit to keep the stored value",
      +  "type": [
      +    "null",
      +    "boolean"
      +  ]
      +}
    • addedInput schema / properties / track_opens
      Added value: +{
      +  "description": "Open tracking for this campaign; false turns the open pixel off. Omit to keep the stored value",
      +  "type": [
      +    "null",
      +    "boolean"
      +  ]
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / campaign_id / description
      Previous value: -"Campaign ID,required"New value: +"Campaign ID"
  3. Changed16 schema fields changed
    • addedInput schema / properties / confirm
      Added value: +{
      +  "description": "Must be true when scheduled_at is set, because that schedules the campaign to send. Leave false first to get a preview; nothing is changed",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / dry_run / description
      Previous value: -"Validate inputs and show what would be sent without changing anything"New value: +"Validate inputs and show what would be sent without changing anything, even when confirm is true"
    • removedInput schema / properties / exclude_list_ids
      Removed value: -{
      -  "description": "List IDs to exclude from send (replaces the current set)",
      -  "items": {
      -    "type": "string"
      -  },
      -  "type": [
      -    "null",
      -    "array"
      -  ]
      -}
    • removedInput schema / properties / exclude_segments
      Removed value: -{
      -  "description": "Segment IDs to exclude from send (replaces the current set)",
      -  "items": {
      -    "type": "string"
      -  },
      -  "type": [
      -    "null",
      -    "array"
      -  ]
      -}
    • removedInput schema / properties / exclude_tag_ids
      Removed value: -{
      -  "description": "Tag IDs to exclude from send (replaces the current set)",
      -  "items": {
      -    "type": "string"
      -  },
      -  "type": [
      -    "null",
      -    "array"
      -  ]
      -}
    • removedInput schema / properties / frequency_cap
      Removed value: -{
      -  "description": "Frequency cap (daily, weekly, etc)",
      -  "type": "string"
      -}
    • changedInput schema / properties / list_ids / description
      Previous value: -"List IDs to send to. REPLACES the campaign's full recipient list set: to add a list, include the current lists as well"New value: +"List IDs to send to (max 150). REPLACES the campaign's full recipient list set, and replaces a segment if the campaign sends to one: to add a list, include the current lists as well (or use add_lists_to_campaign)"
    • addedInput schema / properties / mailing_preference
      Added value: +{
      +  "description": "Add a mailing-preference link",
      +  "type": [
      +    "null",
      +    "boolean"
      +  ]
      +}
    • addedInput schema / properties / permission_reminder
      Added value: +{
      +  "description": "Permission reminder text (3-150 chars)",
      +  "type": "string"
      +}
    • addedInput schema / properties / report_spam
      Added value: +{
      +  "description": "Add a report-abuse link",
      +  "type": [
      +    "null",
      +    "boolean"
      +  ]
      +}
    • changedInput schema / properties / scheduled_at / description
      Previous value: -"Schedule datetime (YYYY-MM-DD HH:MM:SS, account timezone)"New value: +"Schedule datetime (YYYY-MM-DD HH:MM:SS, account timezone). Setting it PUBLISHES the campaign for sending at that time, so it requires confirm: true"
    • addedInput schema / properties / segment_id
      Added value: +{
      +  "description": "One segment ID to send to. Replaces the campaign's lists. Give list_ids or segment_id, not both",
      +  "type": "string"
      +}
    • removedInput schema / properties / segments
      Removed value: -{
      -  "description": "Segment IDs to send to (replaces the current set)",
      -  "items": {
      -    "type": "string"
      -  },
      -  "type": [
      -    "null",
      -    "array"
      -  ]
      -}
    • removedInput schema / properties / sender_id
      Removed value: -{
      -  "description": "Pre-configured sender ID(s) (alternative to sender_name/sender_email)",
      -  "items": {
      -    "type": "string"
      -  },
      -  "type": [
      -    "null",
      -    "array"
      -  ]
      -}
    • addedInput schema / properties / tag_id
      Added value: +{
      +  "description": "Campaign tag ID",
      +  "type": "string"
      +}
    • removedInput schema / properties / tag_ids
      Removed value: -{
      -  "description": "Campaign tag IDs (replaces the current set)",
      -  "items": {
      -    "type": "string"
      -  },
      -  "type": [
      -    "null",
      -    "array"
      -  ]
      -}
  4. Changed25 schema fields changed
    • removedInput schema / properties / api_key
      Removed value: -{
      -  "description": "MailerCloud API key",
      -  "type": "string"
      -}
    • addedInput schema / properties / dry_run
      Added value: +{
      +  "description": "Validate inputs and show what would be sent without changing anything",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / email_preheader
      Added value: +{
      +  "description": "Email preheader text (max 150 chars)",
      +  "type": "string"
      +}
    • addedInput schema / properties / exclude_list_ids
      Added value: +{
      +  "description": "List IDs to exclude from send (replaces the current set)",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": [
      +    "null",
      +    "array"
      +  ]
      +}
    • addedInput schema / properties / exclude_segments
      Added value: +{
      +  "description": "Segment IDs to exclude from send (replaces the current set)",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": [
      +    "null",
      +    "array"
      +  ]
      +}
    • addedInput schema / properties / exclude_tag_ids
      Added value: +{
      +  "description": "Tag IDs to exclude from send (replaces the current set)",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": [
      +    "null",
      +    "array"
      +  ]
      +}
    • removedInput schema / properties / fields
      Removed value: -{
      -  "additionalProperties": true,
      -  "description": "Fields to update,required",
      -  "type": "object"
      -}
    • addedInput schema / properties / frequency_cap
      Added value: +{
      +  "description": "Frequency cap (daily, weekly, etc)",
      +  "type": "string"
      +}
    • addedInput schema / properties / html
      Added value: +{
      +  "description": "HTML email content",
      +  "type": "string"
      +}
    • addedInput schema / properties / list_ids
      Added value: +{
      +  "description": "List IDs to send to. REPLACES the campaign's full recipient list set: to add a list, include the current lists as well",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": [
      +    "null",
      +    "array"
      +  ]
      +}
    • addedInput schema / properties / name
      Added value: +{
      +  "description": "Campaign name",
      +  "type": "string"
      +}
    • addedInput schema / properties / pause_rules
      Added value: +{
      +  "additionalProperties": true,
      +  "description": "pause rules object as in the panel: pause_target, pause_limit, pause_criteria, pause_condition",
      +  "type": "object"
      +}
    • addedInput schema / properties / plain_text
      Added value: +{
      +  "description": "Plain text content",
      +  "type": "string"
      +}
    • addedInput schema / properties / reply_email
      Added value: +{
      +  "description": "Reply-to email address",
      +  "type": "string"
      +}
    • addedInput schema / properties / reply_id
      Added value: +{
      +  "description": "Pre-configured reply email ID",
      +  "type": "string"
      +}
    • addedInput schema / properties / rules
      Added value: +{
      +  "additionalProperties": true,
      +  "description": "Send rules object: limit (number of contacts), contacts_order (first or last)",
      +  "type": "object"
      +}
    • addedInput schema / properties / scheduled_at
      Added value: +{
      +  "description": "Schedule datetime (YYYY-MM-DD HH:MM:SS, account timezone)",
      +  "type": "string"
      +}
    • addedInput schema / properties / segments
      Added value: +{
      +  "description": "Segment IDs to send to (replaces the current set)",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": [
      +    "null",
      +    "array"
      +  ]
      +}
    • addedInput schema / properties / sender_email
      Added value: +{
      +  "description": "Sender email address (give together with sender_name)",
      +  "type": "string"
      +}
    • addedInput schema / properties / sender_id
      Added value: +{
      +  "description": "Pre-configured sender ID(s) (alternative to sender_name/sender_email)",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": [
      +    "null",
      +    "array"
      +  ]
      +}
    • addedInput schema / properties / sender_name
      Added value: +{
      +  "description": "Sender display name (give together with sender_email)",
      +  "type": "string"
      +}
    • addedInput schema / properties / subject
      Added value: +{
      +  "description": "Email subject line",
      +  "type": "string"
      +}
    • addedInput schema / properties / tag_ids
      Added value: +{
      +  "description": "Campaign tag IDs (replaces the current set)",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": [
      +    "null",
      +    "array"
      +  ]
      +}
    • addedInput schema / properties / viewin_browser
      Added value: +{
      +  "description": "Add a view-in-browser link",
      +  "type": [
      +    "null",
      +    "boolean"
      +  ]
      +}
    • changedInput schema / required
      Previous value: -[
      -  "campaign_id",
      -  "fields"
      -]New value: +[
      +  "campaign_id"
      +]
  5. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations declare the mutation/destructive/idempotent profile, and the description adds substantial context beyond them: REPLACE-vs-add semantics for lists and exclusions (with empty array clearing), omit-keeps-stored-value semantics, the fact that scheduled_at publishes the campaign, the two-step preview requirement, and that Inbox Tracker requires a paid add-on and consumes quota. These are exactly the behaviors an agent could otherwise get wrong.

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

Conciseness4/5

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

Front-loaded with the core behavior and destructive warnings before the optional detail, and nearly every sentence carries a non-obvious rule. It is dense, however, with stacked parentheticals (exclusions, Inbox Tracker) that make a single paragraph do a lot of work.

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 a 29-parameter, nested-object mutation tool with no output schema, the description covers the risky paths (scheduling, list replacement, exclusions, dry_run) that matter most, while 100% schema coverage handles the remaining fields. It does not state what happens when updating a non-draft campaign or whether scheduled_at requires a specific campaign state, which is a modest remaining gap.

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?

Schema coverage is 100%, so the baseline is 3; the description nonetheless adds real meaning by framing the replace-set semantics for list_ids, exclude_* arrays, and the list_ids/segment_id mutual exclusivity as a coherent rule rather than per-field notes. It stops short of covering the long tail of simple fields (sender, content, link toggles), which it reasonably leaves to the schema.

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?

Opens with a specific verb and resource ("Update a draft campaign") and immediately narrows scope with "Only the fields you pass are changed," which separates it from create_campaign and the list add/remove siblings. An agent can identify this as the general partial-update path without opening the schema.

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

Usage Guidelines5/5

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

Explicitly routes list add/remove operations to add_lists_to_campaign and remove_lists_from_campaign rather than this tool, and names the conditions that select the alternatives. It also prescribes the when-and-how of the confirm flow (preview first, explicit user yes, then confirm: true) and dry_run, leaving little to inference.

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