Skip to main content
Glama

campaigns_archive

Files the campaign away without deleting anything. Cancels it for every lead first (so nothing keeps sending from behind the shelf), unpins it, and moves it to state=40 ARCHIVED, which campaigns_list hides by default.

Everything is kept: every message sent to a lead, the campaign's stats, and its step history. This is the endpoint to reach for when campaigns_delete returns 409.

Archiving also releases the campaign's hold on its sequence and segment: once archived, deleting either of those succeeds and the campaign's reference to it is set to null. Reversible with campaigns_unarchive — but only while the sequence and segment still exist.

Method: POST /api/v1/workspaces/{workspace_sqid}/campaigns/{sqid}/archive/

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

Input Schema

NameRequiredDescriptionDefault
sqidYes

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?

No annotations exist, so the description carries the full disclosure burden and does so: it warns that all sends are cancelled first, that unpinning happens, that the record moves to a specific state value, and that data (messages, stats, step history) is retained. It further discloses a non-obvious referential side effect — the campaign's hold on its sequence and segment is released and their delete becomes possible — and a caveat on reversibility.

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 action and effects, then a bolded retention guarantee, then the edge cases and the raw method line. Slight redundancy between "without deleting anything" and "Everything is kept," and the method string is verbose, but no sentence is wasted.

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 one-parameter mutation with no annotations and no output schema, the description covers side effects, retention, sibling routing, and reversibility limits. It does not mention required permissions or what happens when archiving an already-archived campaign, which are the remaining gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% and there is one required parameter, so the description must compensate. The trailing method line (`POST /api/v1/workspaces/{workspace_sqid}/campaigns/{sqid}/archive/`) makes clear that `sqid` is the campaign identifier, not a workspace or lead identifier — meaning the bare schema does not provide.

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 (archive a campaign) and immediately defines the concrete effects: cancels for every lead, unpins, and moves to `state=40 ARCHIVED`. It also distinguishes itself from `campaigns_delete`, `campaigns_list`, and `campaigns_unarchive`, so an agent can pick it 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?

Gives an explicit selection rule against a sibling: "This is the endpoint to reach for when `campaigns_delete` returns 409." It also names the inverse operation (`campaigns_unarchive`) and the condition under which reversal works, plus notes that `campaigns_list` hides archived rows by default.

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.