Skip to main content
Glama

cancel_scheduled

DestructiveIdempotent

Cancels a pending WhatsApp delivery or future runs of a recurring schedule to stop messages before they send; look up the scheduled ID with list_scheduled first.

Instructions

Cancel a pending delivery through the bridge, including future runs of a pending recurring schedule. A message already being sent may be too late to cancel. Returns id and cancelled, or an error. Use list_scheduled to find an id and check its status.

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": {
      "scheduled_id": "<scheduled_id>"
    },
    "name": "cancel_scheduled"
  }
}

Input Schema

NameRequiredDescriptionDefault
accountNoAccount name from list_accounts, such as work. Omit to use the default account.
scheduled_idYesPositive integer id from list_scheduled or schedule_message, such as 42. A chat message id identifies a different object.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.1.1
    • changedInput schema / properties / account / description
      Previous value: -"Account from list_accounts when several WhatsApp numbers are set up; default: default"New value: +"Account name from list_accounts, such as work. Omit to use the default account."
    • addedInput schema / properties / scheduled_id / description
      Added value: +"Positive integer id from list_scheduled or schedule_message, such as 42. A chat message id identifies a different object."
  2. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, and readOnlyHint=false, so the safety profile is covered. The description adds genuinely new behavior: that recurring future runs are also cancelled, and that there is a race where an in-flight send may still go out. The return-shape sentence ('Returns id and cancelled, or an error') is partly redundant with the output schema.

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?

Three short sentences, front-loaded with the action and scope before the caveats and the pointer to the sibling tool. The return-value sentence is the only part that does not clearly earn its place given the existing output schema.

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?

With rich annotations, an output schema, and fully documented parameters, the description only needed to cover the non-obvious semantics — recurring-schedule scope and the in-flight race — which it does. Nothing essential for a correct call 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 description coverage is 100%, with scheduled_id documented as a positive integer from list_scheduled or schedule_message and account documented with its default behavior. The description's pointer to list_scheduled for finding the id adds little beyond what the schema already says, so 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 and resource ('Cancel a pending delivery through the bridge') and extends the scope to 'future runs of a pending recurring schedule,' which an agent could not infer from the name alone. It is clearly distinct from list_scheduled, which is named as the lookup counterpart.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit prerequisite workflow ('Use list_scheduled to find an id and check its status') and a timing caveat that a message already being sent may be too late. It stops short of stating when not to cancel at all or naming any other alternative, so it is strong but not exhaustive.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.