Skip to main content
Glama
grammy-mcp
by louietyj

deleteAllMessageReactionsChat

Destructive

Delete up to 10,000 recent reactions from a group or supergroup added by a specified user or chat; bot must have can_delete_messages admin right.

Instructions

Use this method to remove up to 10000 recent reactions in a group or a supergroup chat added by a given chat. The bot must have the 'can_delete_messages' administrator right in the chat. 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>",
      "actor_chat_id": "<actor_chat_id>"
    },
    "name": "deleteAllMessageReactionsChat"
  }
}

Input Schema

NameRequiredDescriptionDefault
chat_idYesUnique identifier for the target chat or username of the target supergroup in the format `@username`
user_idNoIdentifier of the user whose reactions will be removed, if the reactions were added by a user
actor_chat_idYesIdentifier of the chat whose reactions will be removed, if the reactions were added by a chat

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare destructive=true and readOnly=false, and the description meaningfully adds the 10000-reaction batch ceiling, the required administrator permission, and the True return value. What it does not disclose is whether the removal is irreversible or what happens to reactions beyond the recent window.

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?

Three short sentences with the action and batch limit front-loaded; the only padding is the stock opener 'Use this method to', which could be dropped without loss.

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 three-parameter tool with no output schema, the definition covers permission requirements, the operation's scale limit, and the return value. The main residual gap is guidance on choosing between user_id and actor_chat_id, which the description ignores.

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%, so the schema documents all three parameters, and the description only reinforces actor_chat_id ('added by a given chat'). It never mentions the optional user_id parameter or how it interacts with actor_chat_id, leaving that selection entirely to the schema.

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?

States a specific verb and resource: remove recent reactions in a group or supergroup chat added by a given chat, capped at 10000. The qualifier 'added by a given chat' implicitly distinguishes it from the deleteAllMessageReactionsUser sibling, but the alternative is never named explicitly.

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?

Gives the operative context (bulk-removing chat-added reactions) and a hard prerequisite: the bot must hold the 'can_delete_messages' administrator right. It stops short of naming the sibling alternative or explaining when to prefer per-message deletion over this bulk call.

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