Skip to main content
Glama
grammy-mcp
by louietyj

deleteBusinessMessages

Destructive

Deletes messages on behalf of a Telegram business account, including bot-sent or all messages when the required business bot rights are granted.

Instructions

Delete messages on behalf of a business account. Requires the can_delete_outgoing_messages business bot right to delete messages sent by the bot itself, or the can_delete_all_messages business bot right to delete any message. Returns True on success.

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": {
      "business_connection_id": "<business_connection_id>",
      "message_ids": "<message_ids>"
    },
    "name": "deleteBusinessMessages"
  }
}

Input Schema

NameRequiredDescriptionDefault
message_idsYesA list of 1-100 identifiers of messages to delete. All messages must be from the same chat. See deleteMessage for limitations on which messages can be deleted
business_connection_idYesUnique identifier of the business connection on behalf of which to delete the messages

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and openWorldHint=true, so the safety profile is covered; the description adds genuinely new behavioral detail by disclosing the authorization model (two distinct business bot rights) and the success response ("Returns True on success"). It does not describe partial-failure behavior if only some message_ids are deletable, which is the main remaining gap.

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?

Three short sentences, front-loaded with the action and scope, then the authorization condition, then the return value. No redundant restatement of the title and nothing that fails to earn its place.

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

Completeness5/5

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

For a two-parameter destructive tool, the definition covers purpose, required permissions, and the success return value, while the schema fully documents inputs and annotations cover the safety profile. No output schema exists, and the one-line return statement is sufficient.

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%, and the schema already documents both parameters, including the 1-100 range, same-chat constraint, and a pointer to deleteMessage for limitations. The description adds no parameter-level meaning beyond that, so the baseline of 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 opens with a specific verb and resource ("Delete messages") scoped to "a business account," which distinguishes it from the personal-account deleteMessages sibling without naming it. It is clear what the tool does, though an explicit pointer to deleteMessages for non-business cases would push this to a 5.

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 gives concrete prerequisite context: which business bot right is needed to delete the bot's own messages versus any message, which tells the agent the conditions under which the call will succeed. It stops short of explicitly naming an alternative tool or exclusion cases, so it is strong context rather than full when/when-not routing.

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