Skip to main content
Glama

Delete a channel post

telegram_delete_post
DestructiveIdempotent

Permanently delete one post from Telegram and mark our archived copy deleted. Confirm the exact channel and post first. Requires owner or administrator access and Delete messages permission for both you and the bot. Telegram normally allows deletion only within 48 hours. This is not telegram_forget, which only removes archived data. Manual deletions by other admins cannot be reliably observed. 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": {
      "channel_id": "<channel_id>",
      "request_id": "<request_id>",
      "confirmed": "<confirmed>",
      "message_id": "<message_id>"
    },
    "name": "telegram_delete_post"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmedYesTrue only after showing the channel, exact content/button destinations or target post/action and receiving explicit user confirmation.
channel_idYesChannel chat_id returned by telegram_list_chats or telegram_find_chat, connected through /channels.
message_idYesPost message_id from this channel, not an ID from its discussion group.
request_idYesUnique key for this user-approved action. Reuse the same key for retries; never generate a new one to retry uncertain delivery.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/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 openWorldHint=true, so the safety profile is partly covered. The description still adds genuine value annotations cannot express: the owner/administrator plus "Delete messages" permission requirement, Telegram's 48-hour deletion window, the archived-copy side effect, and the caveat that deletions by other admins cannot be reliably observed. However, several sentences (never switch sender, never request login codes) are generic agent policy rather than behavior of this tool, diluting the disclosure.

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 purpose and the sibling distinction are front-loaded, which is good. But the description runs long and includes policy boilerplate ("Never switch sender automatically or request login codes/passwords in chat", "preserve source, coverage and actual errors") that is not specific to deleting a post and crowds out tool-specific detail.

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?

For a destructive, permission-gated mutation with no output schema, the definition covers preconditions, the 48-hour limit, side effects and idempotency expectations well. The only real gap is that it never indicates what the call returns on success or on a not-found/out-of-window failure.

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%, so each of the four parameters including `confirmed` and `request_id` is already fully documented in the schema. The description's "Confirm the exact channel and post first" restates the confirmation contract rather than extending it with new syntax or constraints, so the baseline 3 applies.

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 ("Permanently delete one post from Telegram") and scopes it further by stating it also marks the archived copy deleted. It explicitly separates itself from telegram_forget, but never distinguishes itself from the near-identical sibling telegram_delete_message, so the post-vs-message boundary is left implicit.

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?

It gives explicit preconditions ("Confirm the exact channel and post first"), an explicit exclusion ("This is not telegram_forget, which only removes archived data"), and explicit when-not guidance for session handling ("Do not suggest connecting or reconnecting Session unless the user explicitly asks"). Nothing is left to inference.

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