Skip to main content
Glama
TONresistor

Telegram MCP Server

by TONresistor

deleteBusinessMessages

Remove messages from a Telegram business chat via a business connection. Specify up to 100 message IDs for deletion while ensuring required permissions.

Instructions

Deletes messages on behalf of a business account. Requires can_delete_sent_messages for bot's own messages or can_delete_all_messages for any message. Returns True on success.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
message_idsYesA list of 1-100 identifiers of messages to delete. All messages must be from the same chat.
business_connection_idYesUnique identifier of the business connection

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the burden and uses it well: it discloses the required permission scopes ('can_delete_sent_messages' vs 'can_delete_all_messages') and the success return value. It stops short of mentioning edge cases such as missing messages or deletion age limits, but the core behavioral contract is present.

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?

Two sentences with no filler: the subject-action pair is first, followed by permission requirements and return behavior. Every sentence adds operational value.

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 two-parameter, no-nested-schema tool, the description covers authorization, target scope, and return value, and the schema covers parameter constraints. It could be slightly stronger by routing to alternatives or noting partial-failure behavior, but nothing essential to invoking it correctly is missing.

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%, with both business_connection_id and message_ids meaningfully documented. The description adds no parameter-level detail beyond the schema, so the baseline 3 is appropriate.

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 opens with a specific verb and resource: 'Deletes messages on behalf of a business account.' The 'business account' qualifier distinguishes it from siblings like deleteMessage and deleteMessages, which target ordinary chat messages.

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?

The description implies the tool is for business-account message deletion and specifies required permissions, but it does not explicitly contrast it with deleteMessage/deleteMessages or state when not to use it. The usage context is inferable rather than articulated.

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/TONresistor/telegram-mcp'

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