Skip to main content
Glama

delete_campaign

DestructiveIdempotent

Archive a campaign. Prospects keep their history; the campaign just hides from the active list. SCOPE: destructive (cascades the campaign's prospects), requires an ADMIN-scoped API key (a write key returns 403). To stop sending without deleting the campaign, use pause_campaign.

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": {
      "campaign_id": "<campaign_id>"
    },
    "name": "delete_campaign"
  }
}

Input Schema

NameRequiredDescriptionDefault
campaign_idYesId of the campaign (from list_campaigns).

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?

Annotations already flag destructiveHint=true and idempotentHint=true, but the description adds material context beyond them: what actually happens (archive-style hide, prospect history preserved), the cascade effect on prospects, and the exact auth failure mode (403 with a write key). The 'SCOPE: destructive' line confirms rather than contradicts the annotations, though the tension between 'prospects keep their history' and 'cascades the campaign's prospects' is slightly ambiguous about what a cascade removes.

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 semantics, then a scoped line for destructive behavior and auth, then the alternative. Every sentence carries information, but the 'archive' framing next to 'cascades the campaign's prospects' costs a re-read and could be tightened.

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 one-parameter destructive mutation with no output schema, the definition covers effect, credential requirement, failure mode, and the safer alternative. Nothing an agent needs to invoke it correctly is missing.

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?

There is a single required parameter with 100% schema description coverage ('Id of the campaign (from list_campaigns)'), which already tells the agent where to source the value. The description adds no further meaning about the parameter, so the baseline 3 applies.

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+resource (archive/delete a campaign) and immediately defines the exact semantic — the campaign hides from the active list while prospects retain history. It also names the sibling it is not (pause_campaign), so an agent can distinguish it 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?

Explicitly gives the when-not and the alternative: 'To stop sending without deleting the campaign, use pause_campaign.' It also states the credential precondition (ADMIN-scoped key; write key returns 403), which is a usage gate rather than mere description.

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