Skip to main content
Glama

React to a Telegram message

telegram_set_reaction
DestructiveIdempotent

Put an emoji reaction on a message in a group the bot belongs to. Also supports posts in explicitly connected channels after ownership verification. The reaction is the bot's, not yours. The other person sees it and is notified, so confirm the message and the emoji with the user first. Only Telegram's standard reaction emoji are accepted β€” πŸ‘ πŸ‘Ž ❀ πŸ”₯ πŸ₯° πŸ‘ 😁 πŸ€” πŸŽ‰ 🀩 πŸ™ πŸ‘Œ πŸ’― 🀣 ⚑ 🀝 🫑 and similar; anything else is refused by Telegram, not by this server. Omit emoji to remove a reaction previously set. The message must already be in the archive. Two kinds of chat are out of scope: your 1:1 business chats, where the Bot API's setMessageReaction takes no business_connection_id and the call is refused here rather than failing obscurely; and the bot's own direct-message inbox, which is stored separately and is covered by telegram_bot_dm_react. Use an already connected Session where supported; preserve source, coverage and actual errors. Do not suggest connecting or reconnecting Session unless the user explicitly asks for Session setup. Never switch sender automatically or request login codes/passwords in chat.

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>"
    },
    "name": "telegram_set_reaction"
  }
}

Input Schema

NameRequiredDescriptionDefault
bigNoPlay the big animation for the recipient.
emojiNoThe reaction emoji. Leave out to remove the existing reaction.
chat_idYesChat the message is in.
message_idYesmessage_id to react to.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations only say destructive/openWorld/idempotent; the description adds the substantive traits: the reaction is authored by the bot rather than the user, the recipient sees it and is notified, the emoji must come from Telegram's standard set or Telegram itself refuses the call, and the target message must already be in the archive. The trailing paragraph about Sessions, sender switching and login codes is generic policy boilerplate rather than behavior of this tool, which dilutes but does not contradict the disclosure.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose and scope are front-loaded and the emoji whitelist is useful, but the closing sentences about Session setup, preserving source/coverage, sender switching, and login codes are unrelated to invoking this tool and read as pasted policy text. Roughly a third of the description does not earn its place.

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 with annotations already covering the safety profile and no output schema, the description covers scope, restrictions, alternatives, and side effects (notified recipient). Only the response shape and the `big` parameter's effect are left implicit, which is minor given full schema coverage.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3; the description still adds meaning beyond it by constraining `emoji` to the standard reaction set (with examples and the note that Telegram, not this server, rejects others) and by tying `message_id` to a message that must already exist in the archive. It adds nothing for `big`, but the added emoji semantics are real value.

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?

Opens with a specific verb and resource ('Put an emoji reaction on a message') and immediately bounds the scope to groups the bot belongs to plus explicitly connected channels after ownership verification. It also carves out the bot DM inbox and names telegram_bot_dm_react, so an agent can distinguish it from the nearest sibling without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit use conditions (groups, verified channels), explicit exclusions (1:1 business chats where the Bot API takes no business_connection_id, and the bot's DM inbox routed to telegram_bot_dm_react), plus a workflow rule to confirm message and emoji with the user first. It even documents the removal case via omitting `emoji`.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources