Skip to main content
Glama

Schedule or send a campaign

flow_schedule_campaign
Destructive

Schedules a campaign draft (ids from flow_list_campaigns) to send at its stored send time, or now when it has none: real messages to every contact it reaches, charged, and not called back once sent. It goes through the portal's own save, with the same checks on audience, senders, WhatsApp numbers and live templates; a balance short of the cost is stated, as the editor warns. The send time and pacing are set on the draft first with flow_update_campaign_draft. An A/B test is started in the portal. Always two calls. The first, without confirmation, changes nothing: it answers a summary (campaign, brand, contacts reached, estimated cost and balance, send time in the user's time zone, pacing) and a confirmation. Show the user every line and ask; only after they say yes, call again with that confirmation, within 15 minutes. If anything in the summary changed in between, nothing happens and a new summary comes back to confirm. Only on a connection approved to send. The answer gives the campaign's status and link.

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_schedule_campaign"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
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.
confirmationNoLeave out on the first call. After the user confirmed the summary that call answered, the confirmation it gave

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the annotations: discloses that real messages are sent and charged, the action is irreversible once sent, a balance short of cost is reported, and the portal's own validation on audience, senders, WhatsApp numbers and live templates applies. It also details the preview-then-confirm handshake, the 15-minute confirmation window, and the stale-summary no-op.

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 action and sized appropriately for a destructive, multi-step tool, with no filler sentences. The dense telegraphic style and fragments like "Always two calls." and "Only on a connection approved to send." trade some readability for compactness.

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

Completeness5/5

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

With no output schema, the description still covers return values (the first call's summary contents, the final status and link) and the failure paths an agent must handle. For a charged, irreversible two-phase operation, everything needed to call it safely is present.

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?

Adds real meaning beyond the schema: the id is sourced from flow_list_campaigns and the confirmation parameter's lifecycle is fully explained (omitted on the first call, echoed back after user approval, valid 15 minutes). brandId is only documented in the schema, not in the description, so one of three parameters is left to structured data.

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?

States a specific verb and resource ("schedules a campaign draft ... to send at its stored send time, or now when it has none") and disambiguates from the setup sibling by pointing send-time/pacing configuration to flow_update_campaign_draft and A/B setup to the portal. An agent can tell it apart from flow_cancel_campaign, flow_send_test, and flow_get_campaign without opening their schemas.

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?

Gives explicit when-to-use and when-not: the draft's send time must already be set with flow_update_campaign_draft, an A/B test is started in the portal rather than here, and it only runs on a connection approved to send. It also mandates the exact call sequence (always two calls) so the agent knows how to invoke it.

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