Skip to main content
Glama

Cancel a campaign

flow_cancel_campaign
Destructive

Cancels a scheduled, preparing, sending or paused campaign for good (ids from flow_list_campaigns): nothing more of it is sent, and what was sent keeps its figures. It cannot be restarted. A draft or a finished campaign is archived with flow_archive_campaign, and an A/B test awaiting its winner is closed in the portal; cancelling a later A/B round returns the test to the earlier round's winner pick. The answer gives the status read back and the campaign's 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_cancel_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.

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?

Annotations already declare destructiveHint=true and idempotentHint=false, and the description goes beyond them by spelling out the consequence: nothing further is sent, already-sent figures are preserved, and the campaign cannot be restarted. It also discloses an edge case the agent could not guess — cancelling a later A/B round reverts the test to the earlier round's winner pick — and states the response shape.

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 tight sentences ordered action-and-consequence first, then alternatives, then return value — front-loaded and free of filler. The A/B-round clause is grammatically dense and slightly harder to parse than the rest, but it earns its place by preventing a wrong call.

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?

For a destructive, non-idempotent mutation with no output schema, everything an agent needs is present: eligibility, irreversibility, where ids come from, which sibling to use instead, and what the answer contains. Brand-scoping requirements are covered by the schema's brandId description.

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 50%; brandId is fully documented in the schema (active brand via flow_whoami, refusal when another brand is active), and the description compensates for the undocumented id by telling the agent to source ids from flow_list_campaigns. The remaining gap is only that id format/validity is left to the schema's numeric constraints.

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?

"Cancels a scheduled, preparing, sending or paused campaign for good" names a specific verb (cancels) and resource (campaign), and enumerates the eligible statuses so the agent can tell instantly whether a given campaign qualifies. It also names the sibling that handles the excluded cases (flow_archive_campaign), making it separable from neighbors without opening any 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?

Explicit when-to-use (scheduled, preparing, sending, paused) and explicit when-not-to-use, with the alternative named for each excluded case: draft or finished campaigns go to flow_archive_campaign, and an A/B test awaiting its winner is closed in the portal. This is the strongest form of routing guidance — no inference left to the agent.

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