Skip to main content
Glama
germankingerman-byte

Telegram MCP Server

Delete Telegram Message

telegram_delete_message
DestructiveIdempotent

Permanently delete a message from any Telegram chat. Provide the chat ID and message ID to remove it; requires bot admin rights for other users' messages.

Instructions

Permanently delete a message from a chat. This cannot be undone.

Bots can always delete their own messages. Deleting other users' messages requires the bot to have admin/delete rights in a group or channel.

Args:

  • chat_id (string | number): Chat containing the message

  • message_id (number): ID of the message to delete

Returns: Confirmation of deletion.

Error Handling:

  • "message to delete not found" -> already deleted or too old (regular messages older than 48h generally can't be deleted by bots without admin rights).

  • "not enough rights" -> the bot needs admin permissions in this chat to delete others' messages.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chat_idYesTarget chat. Use a numeric chat ID (e.g. 123456789 for a user, -1001234567890 for a supergroup/channel) or a public channel username with a leading '@' (e.g. '@my_channel'). If unknown, call telegram_get_updates after the user messages the bot to discover it.
message_idYesID of the message to delete
Behavior5/5

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

Discloses that deletion is permanent and irreversible, aligns with destructiveHint annotation. Adds details on permissions, time limits (48h), and error responses, going beyond the annotation's binary flag.

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

Conciseness5/5

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

Well-structured with clear sections (Args, Returns, Error Handling). Every sentence is informative; no fluff. Front-loaded with the core purpose.

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?

Covers main behavioral aspects (permanence, permissions, errors). Minor gap: the return format is only 'Confirmation of deletion' without specifics, but given the tool's simplicity and lack of output schema, this is acceptable.

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 baseline 3. The description adds value with examples for chat_id (numeric vs. @username) and suggests how to discover the chat ID, which is helpful beyond the schema's description.

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?

The description clearly states 'Permanently delete a message from a chat' with a specific verb (delete) and resource (message from a chat). It distinguishes from sibling tools like edit, pin, unpin, send messages.

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?

Provides clear context on when to use: bots can always delete their own messages, deleting others requires admin rights. Includes error handling for common failures. Does not explicitly contrast with alternatives, but the usage conditions are well explained.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/germankingerman-byte/telegram-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server