Skip to main content
Glama

Change a campaign draft

flow_update_campaign_draft
Idempotent

Changes a campaign that is still a draft (ids from flow_list_campaigns): its name, message type, note, audience, delivery steps, send time or pacing. Fields left out stay as they are; groupIds, segmentIds and steps replace the whole list. A scheduled campaign, or an A/B test, changes in the portal only. Nothing changes if the campaign is saved while the call runs (stale). The answer gives its link and, with steps, preview: each step's message as a recipient sees it. steps is the delivery chain, first step first: each a channel, sender and live template of that sender, each channel once and SMS only last; a contact moves on to the next step when the step's message is not delivered (or not answered, moveOnWhen NO_ANSWER). sendAt and pacing are stored on the draft as the editor's Schedule and Pace sections save them, and need steps; the draft stays a draft and nothing is sent. The plan states them in the user's time zone.

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": {
      "id": "<id>"
    },
    "name": "flow_update_campaign_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
nameNo
noteNo
stepsNo
pacingNoSends in batches, as the editor's Pace section; null sends every message at once
sendAtNoWhen the campaign sends once it is scheduled: "now" (the moment it is scheduled), or an ISO date-time with its zone, e.g. 2026-12-03T09:00:00+01:00. Stored on the draft only; nothing is sent.
brandIdNoThe id of the brand this change is for: the active brand (flow_whoami). Required when the connection covers several brands; the change is refused when another brand is active.
groupIdsNoFrom flow_list_groups
timezoneNoThe time zone the campaign is scheduled in, as the editor's time zone field. Left out, a new send time keeps the draft's zone, or takes the user's own (flow_whoami). Alone, it changes the zone of the draft's stored send time
segmentIdsNoFrom flow_list_segments
messageTypeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only say it is a non-destructive, idempotent, non-open-world write; the description goes well beyond them with replacement-vs-merge semantics, the stale-state refusal, the fact that sendAt/pacing are stored without sending, the timezone storage rule, and the response shape (link plus per-step preview). That is the kind of behavior an agent cannot infer from the annotations alone.

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?

Purpose and scope are front-loaded, and every clause carries information — no filler. The cost is density: the steps sentence is a long semicolon chain that takes effort to parse, which slightly hurts scanability even though nothing is redundant.

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 mutation with no output schema, the description covers the critical unknowns: partial update, list replacement, scheduling storage, timezone, concurrency refusal, and the return value. Only minor things are unaddressed, such as what a refusal or validation error looks like to the caller.

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 55%, so the description must carry weight and largely does: it defines partial-update semantics (omitted fields stay), whole-list replacement for groupIds/segmentIds/steps, and the full step-chain rules (one channel each, SMS last, moveOnWhen NO_ANSWER). timezone gets real added meaning ('Alone, it changes the zone of the draft's stored send time'). It adds nothing for brandId beyond the schema's own description, but overall it meaningfully compensates for the coverage gap.

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 plus a hard scope limit: 'Changes a campaign that is still a draft (ids from flow_list_campaigns)', then enumerates exactly which fields can change. It separates itself from scheduling/draft-creation siblings by stating 'the draft stays a draft and nothing is sent', so an agent can tell what this does 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 Guidelines4/5

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

Gives a clear when-not: a scheduled campaign or an A/B test 'changes in the portal only', and implies draft ids come from flow_list_campaigns. It also sets the stale-write rule ('Nothing changes if the campaign is saved while the call runs'). What it lacks is an explicit comparison to a sibling like flow_schedule_campaign for the transition out of draft state.

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