Skip to main content
Glama
telegram-mcp

telegram-mcp

by adsqwui

tg_click

Presses an inline or keyboard button on a Telegram message and returns what changed; link and mini app buttons return their URL instead of opening.

Instructions

Press an inline or keyboard button on a message (usually a bot's) and return what changed.

row and col come from the "[row,col]" list under the message. Link and mini app buttons are not
opened, their URL is returned instead.

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": "<chat>",
      "message_id": "<message_id>",
      "row": "<row>",
      "col": "<col>"
    },
    "name": "tg_click"
  }
}

Input Schema

NameRequiredDescriptionDefault
colYes
rowYes
chatYes
waitNo
message_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and openWorldHint=true, so the safety profile is covered. The description adds genuine value beyond them by stating it returns 'what changed' and by disclosing that link/mini-app buttons resolve to a URL rather than being pressed. It does not warn that pressing a button can trigger arbitrary bot-side effects, nor explain the wait/timeout behavior.

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?

Two short sentences, front-loaded with the core action and followed by the operational caveat. Nothing is wasted and the button-source hint is placed where it is needed.

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 five-parameter mutation-adjacent tool with no output schema and no parameter descriptions, the definition covers the button addressing convention but not what 'what changed' actually returns, what wait controls, or what happens if the button no longer exists. Adequate, but real gaps remain.

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 0%, so the description carries the burden. It usefully explains that row and col come from the '[row,col]' list under the message, but leaves chat, message_id and wait (default 8) entirely unexplained in both schema and description.

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?

The description names a specific verb (press) and resource (inline or keyboard button on a message), and clarifies the typical case ('usually a bot's'). An agent can distinguish this from tg_send_message or tg_read_messages without opening any schema.

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 establishes the calling context (responding to a message's inline/keyboard button list) and an explicit exclusion: link and mini-app buttons are not opened, their URL is returned instead. It gives no named alternative tool or prerequisite for obtaining the message, but the when-to-use condition is clear.

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