Skip to main content
Glama

Update a campaign

update_campaign
Destructive

Edit a campaign's settings. A draft accepts every setting; a scheduled or paused campaign accepts name, from_number_ids, calling windows and zone, retry policy, concurrency, ends_at and language (and scheduled_start_at while scheduled). A running campaign accepts no edits until it is paused. Returns the campaign and the list of changed fields.

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
nameNo
ends_atNo
purposeNo
agent_idNo
contactsNoReplacement audience, created as a new list inside the edit (drafts only).
languageNo
time_zoneNoIANA time zone (default UTC), matched and stored like a contact's time_zone: ignoring case, another spelling of a zone stored as the zone it names, an offset such as UTC-5 refused.
campaign_idYes
retry_policyNo
consent_basisNo
max_callbacksNoHow many call-backs one contact may be granted in this campaign. A request beyond it finishes the contact with skip_reason callback_limit_reached. Omitting it keeps the stored value.
time_zone_modeNo
calling_windowsNo
contact_list_idNo
from_number_idsNo
max_concurrencyNo
organization_idNoOptional. Defaults to the authenticated workspace; when supplied it must be that workspace's id.
followup_contextNoWhat a follow-up call (a retry or a call-back) is told about the previous conversation with the contact. summary: its summary reaches the call as the built-in variables campaign.previous_summary and campaign.previous_follow_up; campaign.previous_summary_status says whether there is one. Every campaign call carries campaign.call_kind (first_contact, retry, callback or reopened).
contact_list_nameNo
scheduled_start_atNo
contact_list_sourceNoHow the replacement audience was collected; recorded on the new list. Defaults to csv.
followup_transcriptNoFree-form AI agents only: a follow-up call (a retry or a call-back) is given the previous conversation's transcript, newest turns first, at most 4,000 characters, as quoted data at the end of its prompt. Not given on a workflow agent or Eleven Realtime, on a call with a keypad variable, or when the earlier call held a value back or keyed one. Independent of followup_context. Omitting it keeps the stored value.
retry_policy_presetNo
reserved_concurrencyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / followup_transcript
      Added value: +{
      +  "description": "Free-form AI agents only: a follow-up call (a retry or a call-back) is given the previous conversation's transcript, newest turns first, at most 4,000 characters, as quoted data at the end of its prompt. Not given on a workflow agent or Eleven Realtime, on a call with a keypad variable, or when the earlier call held a value back or keyed one. Independent of followup_context. Omitting it keeps the stored value.",
      +  "type": "boolean"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / followup_context
      Added value: +{
      +  "description": "What a follow-up call (a retry or a call-back) is told about the previous conversation with the contact. summary: its summary reaches the call as the built-in variables campaign.previous_summary and campaign.previous_follow_up; campaign.previous_summary_status says whether there is one. Every campaign call carries campaign.call_kind (first_contact, retry, callback or reopened).",
      +  "enum": [
      +    "none",
      +    "summary"
      +  ],
      +  "type": "string"
      +}
  3. Changed1 schema field changed
    • addedInput schema / properties / max_callbacks
      Added value: +{
      +  "description": "How many call-backs one contact may be granted in this campaign. A request beyond it finishes the contact with skip_reason callback_limit_reached. Omitting it keeps the stored value.",
      +  "maximum": 10,
      +  "minimum": 0,
      +  "type": "integer"
      +}
  4. First observed

TDQS

A3.8/5.0
Behavior4/5

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

With destructiveHint=true already declared, the description adds valuable non-annotation context: the per-status field whitelist and the return value ("the campaign and the list of changed fields"). It does not disclose what the destructive aspect is – e.g. that supplying contacts replaces the audience with a new list – which for a destructive, non-idempotent write would have been useful.

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?

Three sentences, front-loaded with the core action, then the gating rules, then the return value. The parenthetical status qualifiers are dense but every clause carries decision-relevant information.

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?

The state-gating rules and return behavior cover the most important decision points for a 24-parameter mutation tool, but with 29% schema coverage many parameters remain unexplained in both places. The destructive audience-replacement behavior is left implicit, which is a notable gap for a destructiveHint=true tool.

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 coverage is only 29% across 24 parameters, so the burden falls partly on the description, and it contributes mostly by grouping field names per campaign state rather than explaining individual parameters. Several high-impact inputs such as contacts, contact_list_id, consent_basis and retry_policy go undiscussed beyond being named in the status lists.

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?

"Edit a campaign's settings" is a specific verb plus resource, and the sentence about a running campaign accepting no edits distinguishes this from launch/pause/resume siblings in practice. It stops short of naming the sibling tools an agent should consider instead, so it is clear but not maximally differentiating.

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?

The description gives concrete when-you-can-use conditions per campaign state (draft, scheduled, paused, running), which effectively tells the agent to pause first before editing a running campaign. It does not explicitly point at pause_campaign or state which tool to use for non-setting changes, so there is a small gap.

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.