Skip to main content
Glama
Discord MCP - Discord server management MCP for AI agents

Discord MCP - Discord server management MCP for AI agents

Cancel scheduled message

cancel_scheduled_message
Destructive

Cancel a pending scheduled Discord message by ID, stopping its queued text and any repeat. First call previews the action and returns a confirm token; repeat with the token to complete cancellation.

Instructions

Cancel a pending scheduled message by its id. The queued text is gone for good, and a repeat stops, so the first call returns a preview and a confirm_token; repeating the call with the token cancels it.

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

Input Schema

NameRequiredDescriptionDefault
guildNoGuild (server) name or ID. Omit to use the default guild.
dry_runNoIf true, nothing is changed: the result shows what this call would do.
schedule_idYesThe id schedule_message returned, also shown by list_scheduled_messages.
confirm_tokenNoThe token from this exact action's preview. Where the app can show a confirmation dialog, calling with it asks the user there, and it happens only if they agree.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv2.2.2
    • addedInput schema / properties / dry_run / description
      Added value: +"If true, nothing is changed: the result shows what this call would do."
    • addedInput schema / properties / schedule_id / description
      Added value: +"The id schedule_message returned, also shown by list_scheduled_messages."
  2. Changed3 schema fields changedv1.4.2
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / properties / confirm_token
      Added value: +{
      +  "description": "The token from this exact action's preview. Where the app can show a confirmation dialog, calling with it asks the user there, and it happens only if they agree.",
      +  "type": "string"
      +}
    • addedInput schema / properties / dry_run
      Added value: +{
      +  "type": "boolean"
      +}
  3. Changed1 schema field changedv1.3.0
    • removedInput schema / additionalProperties
      Removed value: -false
  4. First observedv1.0.2

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, but the description adds genuinely new behavioral facts: the queued text is permanently gone, and the operation is gated behind a preview/confirm_token handshake. The phrase 'a repeat stops' is muddled and leaves the exact idempotency guarantee unclear, which keeps this short of a 5.

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?

Two sentences, front-loaded with the action and scoped correctly, with no filler. However, the middle clause ('and a repeat stops, so the first call returns a preview') is syntactically tangled and forces the reader to reconstruct the intended two-step flow.

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 no output schema, the description correctly takes on the burden of explaining what comes back (a preview plus confirm_token), which is the key thing an agent needs to drive a two-call flow. It is silent on failure modes such as an id that was already sent or a stale token, a modest remaining gap for a destructive tool.

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%, with all four parameters — including dry_run and confirm_token — already documented in detail, so the schema carries most of the weight. The description adds only the relational point that the token from the preview makes the cancellation take effect, which is a small increment over the schema rather than new parameter-level detail.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb and resource — 'Cancel a pending scheduled message by its id' — and the word 'pending' usefully narrows scope to not-yet-sent messages. It does not explicitly contrast itself with nearby siblings such as cancel_event or edit_message, so an agent must infer the boundary from the resource name alone.

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?

It clearly conveys the required invocation sequence: the first call is a preview that yields a confirm_token, and the cancellative call is the one made with that token. What is missing is a statement of when to prefer this over alternatives (e.g., editing or rescheduling instead of cancelling), so it guides how to call rather than when.

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

Deploy Server

Other Tools