Skip to main content
Glama
TONresistor

Telegram MCP Server

by TONresistor

answerCallbackQuery

Answer callback queries from inline keyboards by sending a notification or alert to the user. Confirms success with True.

Instructions

Send answers to callback queries sent from inline keyboards. The answer is displayed as a notification at the top of the chat screen or as an alert. Returns True on success.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNoURL that will be opened by the user's client. For game URLs or t.me deep links.
textNoText of the notification. If not specified, nothing will be shown to the user. 0-200 characters.
cache_timeNoMaximum time in seconds that the result of the callback query may be cached client-side. Defaults to 0.
show_alertNoIf True, an alert will be shown by the client instead of a notification at the top of the chat screen. Defaults to false.
callback_query_idYesUnique identifier for the query to be answered.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior3/5

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

The description discloses the user-visible effect ('displayed as a notification at the top of the chat screen or as an alert') and states that it returns True on success. However, with no annotations provided, it does not address failure behavior, timeout sensitivity, or lack of side effects beyond the acknowledgement.

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?

The description is two short sentences with no filler. It front-loads the core action, then adds the behavioral outcome and return value, every phrase earning 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 low-complexity tool with a 100%-documented input schema and no output schema, the description covers what the tool does, its visible effect, and its success return. It could be slightly more explicit about when not to use it, but it is otherwise sufficient.

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 parameters are already fully documented. The description does not add meaning beyond the schema; it only repeats the conceptual behavior of showing a notification or alert, which maps to the show_alert and text fields already described.

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 and resource: 'Send answers to callback queries sent from inline keyboards.' This distinguishes it clearly from sibling tools like answerInlineQuery, answerWebAppQuery, answerShippingQuery, and answerPreCheckoutQuery, which handle different query types.

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?

The description provides clear context: this tool is for callback queries originating from inline keyboards, and the answer appears as either a chat notification or an alert. It does not explicitly state when not to use it or name alternatives, but the query type is specific enough to guide selection.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/TONresistor/telegram-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server