Skip to main content
Glama
grammy-mcp
by louietyj

setMessageReaction

Destructive

Change or remove reactions on a Telegram message by chat ID and message ID, with optional large animation. Use it to update reaction feedback on bot messages.

Instructions

Use this method to change the chosen reactions on a message. Service messages of some types can't be reacted to. Automatically forwarded messages from a channel to its discussion group have the same available reactions as messages in the channel. Bots can't use paid reactions. 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_id": "<message_id>",
      "reaction": "<reaction>"
    },
    "name": "setMessageReaction"
  }
}

Input Schema

NameRequiredDescriptionDefault
is_bigNoPass True to set the reaction with a big animation
chat_idYesUnique identifier for the target chat or username of the target channel (in the format
reactionYesA list of reaction types to set on the message. Currently, as non-premium users, bots can set up to one reaction per message. A custom emoji reaction can be used if it is either already present on the message or explicitly allowed by chat administrators. Paid reactions can't be used by bots.
message_idYesIdentifier of the target message

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Goes beyond the annotations (readOnlyHint=false, destructiveHint=true, openWorldHint=true) by disclosing eligibility rules for service messages and channel-forwarded messages, the paid-reaction restriction for bots, and the boolean return shape. It does not say whether the call replaces all existing reactions or state any permission requirements, leaving part of the mutation semantics implicit.

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?

The core action is front-loaded in the first sentence, with restrictions following in short, self-contained statements. The forwarded-channel sentence is niche but still earns its place as an edge-case caveat; nothing is padded.

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 4-parameter mutation tool with full annotation coverage, no output schema (return value stated as True), and complete schema docs, the description covers purpose, edge cases, and failure conditions adequately. Only the replace-vs-append semantics and any auth/permission preconditions are left unstated.

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 the baseline is 3; the description's 'change the chosen reactions' hints that the reaction list overwrites the current set, which is a meaningful nuance, but it adds no detail on the chat_id or message_id formats beyond what the schema already documents.

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: 'change the chosen reactions on a message.' An agent can distinguish setting/replacing reactions from the delete-oriented siblings (deleteMessageReactionChat, deleteAllMessageReactionsUser), though the description never names an alternative to reinforce that contrast.

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?

Offers eligibility constraints (service messages of some types can't be reacted to; bots can't use paid reactions) that implicitly define when the call will fail, but gives no explicit when-to-use guidance or routing to siblings such as the delete-reaction methods.

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