Skip to main content
Glama
grammy-mcp
by louietyj

deleteMessages

Destructive

Deletes multiple Telegram messages in a specified chat using their message IDs, returning true on success.

Instructions

Use this method to delete multiple messages simultaneously. 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": {
      "chat_id": "<chat_id>",
      "message_ids": "<message_ids>"
    },
    "name": "deleteMessages"
  }
}

Input Schema

NameRequiredDescriptionDefault
chat_idYesUnique identifier for the target chat or username of the target bot, supergroup or channel in the format `@username`
message_idsYesA list of 1-100 identifiers of messages to delete. See deleteMessage for limitations on which messages can be deleted

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

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, readOnlyHint=false and openWorldHint=true, so the safety profile is covered structurally. The description adds only 'Returns True on success', and omits that deletions are permanent, that a bulk list may partially fail (e.g. messages too old or authored by others), and any permission requirements.

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?

Two short sentences with the bulk-delete purpose front-loaded and a small, useful return-value note appended. There is no filler, though the second sentence is thin enough that it barely justifies its own presence.

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 two-parameter destructive tool with rich annotations and a fully described schema, the definition covers the essentials but leaves out irreversibility and partial-failure behavior, which matter most for a bulk delete. Return behavior is lightly addressed, so nothing critical is missing, but the gaps are meaningful.

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 chat_id formats and the 1-100 message_ids range are fully documented in the schema, setting the baseline at 3. The description adds no syntax, ordering, or failure semantics beyond what the schema already states.

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?

"Use this method to delete multiple messages simultaneously" gives a specific verb (delete) and resource (messages) with the bulk scope called out, which implicitly separates it from the singular deleteMessage sibling. It stops short of naming that sibling outright, so the differentiation is inferable rather than stated.

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 offers no explicit when-to-use or when-not-to-use guidance; it neither points the agent to deleteMessage for single deletions nor to the unpin/delete-family siblings. The only routing hint comes from the schema's 'See deleteMessage for limitations' note, which is outside the description itself.

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