Skip to main content
Glama

campaigns_delete

Deletes the campaign record and everything that hangs off it — its step history and the messages it generated, sent ones included.

For that reason it returns 409 campaign_has_sent_messages as soon as the campaign has sent anything: those messages are the record of what was said to a lead and are not ours to erase. Use campaigns_archive for a campaign that is simply finished — it stops the campaign, hides it from the list, keeps every message, and frees its sequence and segment to be deleted.

Method: DELETE /api/v1/workspaces/{workspace_sqid}/campaigns/{sqid}/

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

Input Schema

NameRequiredDescriptionDefault
sqidYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so: it discloses cascading destruction of step history and messages, the 409 `campaign_has_sent_messages` guard and its rationale, and the contrasting non-destructive behavior of the archive sibling. The only omission is permission/auth requirements, which is minor against this level of disclosure.

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

Conciseness5/5

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

Front-loaded with the destructive scope in the first clause, then the failure condition, then the alternative. The endpoint line is compact and adds callable detail rather than restating the name; no sentence is filler.

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 destructive tool with no annotations and no output schema, the description covers the essential risks: what is destroyed, when it is blocked, and what to use instead. It stops short of stating whether the delete is soft or hard and what a success response contains, which leaves a small gap.

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?

One parameter (`sqid`) at 0% schema description coverage, so the description must compensate. The endpoint template implies the sqid identifies a campaign within a workspace path, but it never states the format or where the workspace_sqid comes from — the agent must infer it from the URL pattern.

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 ("Deletes the campaign record") and immediately scopes the blast radius: step history plus generated messages, sent ones included. This is clearly distinguishable from campaigns_archive, which is named and characterized in the same description.

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?

Explicitly routes the agent: use campaigns_archive "for a campaign that is simply finished," with a full account of what archive does instead (stops, hides, keeps messages, frees sequence and segment). It also names the exact condition under which delete is refused, so the agent can pick the right tool 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.