Skip to main content
Glama

cancel_scheduled_message

DestructiveIdempotent

Cancels scheduled messages before they are sent. Pass id to cancel that message; if it repeats, the whole series is cancelled (any of the series' ids works). It also cancels a queued send_message (its scheduled_id) that hasn't gone out yet. Messages already sent, or being sent right now, can't be cancelled; the result says so. Find ids with list_scheduled_messages (filter by to or text). To change a scheduled message, cancel it and schedule it again with schedule_message. Confirm with the user first unless they asked for it. Works on the free plan too. Returns { cancelled, messages }, the cancelled messages { id, series_id (shared by every send of a repeating message), kind? ("queued" for a send_message that was queued to go out automatically; absent for scheduled messages), status (scheduled, processing, sent, failed, missed or cancelled), recipient (contact fields (name; name_source: address_book, push_name, group_subject, business, phone or unresolved; canonical_jid: the JID to pass to send_message and read_chat_history; phone_jid and lid_jid: the chat's phone-number and LID forms, null when unknown or for groups; phone_display: the number as +).), text?, media?, send_at (UTC), send_at_local, when (readable local time and how far away), timezone, recurrence, occurrence? (0 = first send of a series), until?, sent_at?, message_id? (once sent), error? (why it failed or was missed) }.

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": {
      "id": "<id>"
    },
    "name": "cancel_scheduled_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesA scheduled message's id. Cancels it and, if it repeats, every later send.

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?

Annotations declare destructiveHint=true and idempotentHint=true, and the description goes well beyond that: it explains series-wide cancellation semantics, that any id in the series works, that in-flight/sent messages fail with a stated reason, and that the free plan is supported. It also returns the post-state (status values, error field) so the agent can interpret partial success rather than guessing.

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

Conciseness3/5

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

The core is front-loaded and well ordered — cancel semantics, then id discovery, then the alternative — but the trailing return-value block balloons into a nested expansion of every recipient field (name_source enum values, phone_jid/lid_jid, phone_display format), which is disproportionate for a cancel operation. Since there is no output schema that detail has some justification, yet it buries the actionable part and could be trimmed substantially.

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?

With no output schema, the description carries the return contract and does so fully: the `{ cancelled, messages }` shape, the meaning of series_id, the optional `kind`, all status values, and the error field. Combined with the cancellation preconditions and id-discovery guidance, an agent has everything needed to call it and interpret the result.

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 the baseline is 3, and the description adds real meaning: 'any of the series' ids works' clarifies which id to pass when several exist, and the note that a queued send_message's `scheduled_id` is also accepted is a valid input source the schema's `id` field does not mention. It stops short of describing the id format, but the added routing value is genuine.

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?

Opens with a specific verb+resource ('Cancels scheduled messages before they are sent') and immediately scopes it against siblings: list_scheduled_messages for finding ids, schedule_message for re-scheduling, and delete_message is never confused for this. It also names the secondary target ('a queued send_message') so the agent knows this tool covers two distinct objects.

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?

Explicit when-to-use routing ('Find ids with list_scheduled_messages (filter by `to` or `text`)'), an explicit alternative for the change case ('To change a scheduled message, cancel it and schedule it again with schedule_message'), and a stated exclusion ('Messages already sent, or being sent right now, can't be cancelled'). It even adds a consent precondition ('Confirm with the user first unless they asked for it') and a plan-availability note.

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.