Skip to main content
Glama

Cancel a scheduled message

telegram_cancel_scheduled_message
DestructiveIdempotent

Cancel one pending Telepath scheduled message. Does not delete a message already sent to Telegram. Refresh the list if revision changed or delivery has already started. Use an already connected Session where supported; preserve source, coverage and actual errors. Do not suggest connecting or reconnecting Session unless the user explicitly asks for Session setup. Never switch sender automatically or request login codes/passwords in chat.

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>",
      "revision": "<revision>",
      "request_id": "<request_id>"
    },
    "name": "telegram_cancel_scheduled_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
revisionYesCurrent revision returned by list/create; prevents overwriting concurrent changes.
request_idYesStable ID for this approved action. Reuse for retries; never change it to retry uncertain delivery.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.4/5.0
Behavior3/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 the useful failure-mode detail that a message whose delivery has started cannot be cancelled and that a stale revision requires a refresh. That value is diluted by generic assistant-conduct rules (don't suggest reconnecting, never request login codes) that say nothing about how this tool behaves.

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?

The operative constraint and the stale-revision rule are front-loaded in the first two sentences. The trailing Session/login-code sentences are off-topic filler that do not earn their place, which keeps it below top marks.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a three-parameter destructive mutation with annotations and no output schema, the description covers the key boundary and the stale-revision case. It omits what a successful cancellation returns and does not tie request_id to the idempotentHint, leaving the retry contract to the schema.

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 67%, above the point where the schema alone suffices, and revision already carries a concurrency description. The description's mention of 'revision changed' reinforces the concurrency/optimistic-locking intent, but it says nothing about id or request_id retry semantics beyond what the schema pattern and description already give.

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?

States a specific verb and resource ('Cancel one pending Telepath scheduled message') and draws a boundary against deletion of already-sent messages, so it is not confused with telegram_delete_message. It does not name the closest siblings (telegram_reschedule_message, cancel_reminder), so the differentiation is partial rather than exhaustive.

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

Usage Guidelines3/5

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

Gives one concrete usage rule — re-list when the revision changed or delivery has begun — but never states when to cancel versus reschedule or delete, and offers no prerequisite or precondition about who may cancel. The remaining sentences address Session handling rather than tool selection.

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