Skip to main content
Glama

Cancel a running or scheduled campaign

cancel_call_campaign
Destructive

IRREVERSIBLE: Cancel a running or scheduled campaign

Stops a submitted campaign: pending calls are abandoned and the campaign moves to cancelled. Calls already placed are not undone and remain chargeable, so cancelling limits further spend rather than reversing it. A campaign that was never submitted is refused with 400 and should be deleted instead, and one that is already completed, cancelled or failed is refused with 409. Cancellation is recorded locally even when the upstream stop could not be attempted. This operation uses the write:agents scope rather than a scope of its own.

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": {
      "campaignId": "<campaignId>"
    },
    "name": "cancel_call_campaign"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNoLeave out on the first call. EchoCall then answers with a confirmation value. Ask the user for a clear yes, then repeat the call with the same arguments and this value.
campaignIdYesIdentifier of the campaign to cancel.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the destructiveHint annotation: pending calls are abandoned, already-placed calls stay chargeable, cancellation is recorded locally even if the upstream stop fails, and it requires the write:agents scope. These are exactly the side effects and failure modes an agent needs before a destructive call.

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?

Leads with the IRREVERSIBLE warning, then packs consequences, error semantics, and scope into three dense sentences with no filler. Every sentence adds a distinct operational fact.

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?

A destructive two-parameter tool with no output schema is fully covered: side effects, error codes, preconditions, and auth scope are all stated. Nothing an agent needs to invoke it safely 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?

Schema coverage is 100% and the schema already explains the two-step confirm flow and campaignId, so the description needn't repeat it. The description adds nothing parameter-specific, which is the expected baseline when the schema carries the load.

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 ('Cancel a running or scheduled campaign') and immediately scopes it to submitted campaigns, distinguishing it from delete_call_campaign by explicitly saying an unsubmitted campaign 'should be deleted instead'. An agent can pick between the two without opening either 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 concrete when-to-use and when-not-to-use conditions: only for submitted campaigns, refused with 400 for never-submitted ones (use delete), refused with 409 for completed/cancelled/failed. The alternative for the invalid case is named outright.

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.