Skip to main content
Glama

Archive a campaign

flow_archive_campaign
Destructive

Archives a campaign for good, whatever its status (ids from flow_list_campaigns): it leaves the campaign list (flow_list_campaigns with archived lists it), cannot be edited, and is never taken back out of the archive; what it sent keeps its figures and stays in the message log. One that could still send (scheduled, preparing, sending, paused, or an A/B test awaiting its winner) is stopped first, and the plan says so. To send it again, duplicate it in the portal.

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_archive_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.3/5.0
Behavior5/5

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

Annotations only mark destructiveHint=true and idempotentHint=false; the description adds the substantive consequences an agent needs: the campaign leaves the list, cannot be edited, is never restored, sent figures and message-log entries persist, and live campaigns (scheduled/preparing/sending/paused/A-B pending) are stopped first and noted in the plan. This is well beyond the annotation coverage.

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 core irreversible action and information-dense throughout. Some phrasing is awkward and clause-heavy ('flow_list_campaigns with archived lists it'), which slightly slows parsing but does not waste sentences.

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 a destructive, non-idempotent mutation with no output schema, the description covers consequences, side effects, and the recovery path. It omits what happens on an already-archived or invalid id (relevant given idempotentHint=false), which would round it out.

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 50%, so the description should compensate. It does add meaning for `id` by pointing to flow_list_campaigns as the source, but says nothing about the brandId parameter or the multi-brand refusal behavior, which is documented only in the schema.

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 ('Archives a campaign') plus the scope ('for good, whatever its status'), and immediately disambiguates from the sibling flow_list_campaigns by naming it as the source of ids and as the tool whose archived variant surfaces the result.

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 clear context for use: permanent removal from the campaign list, and a concrete alternative for the re-send case ('duplicate it in the portal'). It also distinguishes archive from mere stopping by noting that campaigns that could still send are stopped first. It stops short of explicitly contrasting with flow_cancel_campaign or flow_pause_campaign for users who only want to halt sending.

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