Skip to main content
Glama

Create a campaign draft

flow_create_campaign_draft

Saves a new campaign as a draft: its name, audience (groups and segments), delivery steps and, optionally, its send time and pacing. Nothing is sent: the user reviews it and schedules or sends it in the portal (where an A/B test and notifications are set too) or, on a connection approved to send, with flow_schedule_campaign. 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. The answer gives the draft's id, how many contacts it would reach, its link and, with steps, preview: each step's message as a recipient sees it.

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

Input Schema

NameRequiredDescriptionDefault
nameYes
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
messageTypeNoTRANSACTIONAL also reaches contacts who opted out themselves, never ones an admin blockedMARKETING

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare the write-but-not-destructive profile (readOnlyHint=false, destructiveHint=false), and the description reinforces it with a strong non-obvious trait: the draft stays a draft and nothing is sent, despite sendAt/pacing being stored. It also discloses the return payload (id, reach count, link, per-step preview). It does not address idempotency (repeated calls create duplicate drafts) even though idempotentHint=false is set, which keeps it from a 5.

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

Conciseness3/5

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

Front-loaded and information-dense, but the central guarantee is repeated ("Nothing is sent" then "the draft stays a draft and nothing is sent"), and several sentences pack multiple clauses that slow parsing. "The plan states them in the user's time zone" is ambiguous about what "the plan" refers to. Trimming the duplication would improve it without losing content.

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?

No output schema exists, and the description compensates by describing the response in detail, including the conditional preview when steps are supplied. Given 10 parameters and nested step objects, the cross-field constraints are covered, but the undocumented `note` parameter and the absence of any idempotency warning leave minor holes for a non-idempotent create.

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?

Beyond the schema's 70% coverage, it adds cross-parameter rules the schema cannot express: steps are ordered first-to-last, each channel appears once with SMS only last, moveOnWhen fires when a message is not delivered or not answered, and sendAt/pacing require steps. The timezone note (a new send time keeps the draft's zone or takes the user's own) also clarifies behavior. The `note` parameter is never mentioned anywhere, a residual 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?

"Saves a new campaign as a draft" gives a specific verb and resource, and the description immediately delimits it from flow_schedule_campaign, which is the tool that actually sends. An agent can distinguish draft creation from scheduling/sending 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?

States explicitly when nothing is sent and where sending happens: the user reviews in the portal or, on a connection approved to send, uses flow_schedule_campaign. It also names the prerequisite that sendAt and pacing "need steps", which tells the agent which combinations of inputs are legal before calling.

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