Skip to main content
Glama

cancel_campaign

Destructive

Cancel a campaign that has not finished and release the monthly allowance it was holding. CANNOT BE UNDONE — a cancelled campaign cannot be resumed, and messages already sent stay sent. confirm=true is REQUIRED. If the user only wants to stop it for now, use pause_campaign instead, which keeps the allowance and allows a resume — always offer that alternative first. Requires the Send Message module enabled on the account — on 403 "module not enabled", do NOT retry; tell the user to contact Sweeppea support. When a send is refused, call fetch_messaging_usage first: it is what distinguishes module access, plan channels, an exhausted allowance, a sending pause and a missing 10DLC number.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
confirmYesMust be true. Set it ONLY after the user explicitly approved THIS action in this conversation, having been told what it does and that it cannot be taken back: the campaign ends permanently and cannot be resumed; its monthly allowance is released and messages already sent stay sent. Never assume, never carry an approval over from a previous item, never set it to satisfy the schema.
campaign_tokenYesThe campaign token (UUID v4) of a campaign in status scheduled, queued, sending, paused or blocked

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations declare destructiveHint=true and idempotentHint=false, and the description adds context beyond them: irreversibility (cannot be resumed, sent messages stay sent), allowance release, the module-enablement requirement, and a prescribed error-recovery path via fetch_messaging_usage. This is materially more than the structured fields provide.

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 irreversible warning and confirm requirement, and the alternative-routing advice follows. Long, but nearly every clause carries a distinct operational instruction; a small amount of the error-handling tail could be compressed.

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, the description covers irreversibility, confirmation protocol, prerequisites, alternative tooling, and error recovery — nothing an agent needs to call it safely is missing.

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 100%, so baseline is 3, but the description adds genuine semantic weight to 'confirm' — it must be set only after explicit in-conversation approval of this specific action, never carried over or used to satisfy the schema. That is behavioral meaning the schema's own text does not fully duplicate.

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 precise verb+resource plus scope restriction ('a campaign that has not finished') and the side effect ('release the monthly allowance it was holding'). It explicitly distinguishes itself from pause_campaign and resume_campaign, so an agent can route correctly without opening a 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 when-to-use (unfinished campaign), when-not (offer pause_campaign first if the user only wants to stop temporarily), a hard precondition (confirm=true required), and failure handling ('on 403 module not enabled, do NOT retry' and 'call fetch_messaging_usage first' when a send is refused). Exclusions and alternatives are explicit.

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