Skip to main content
Glama

answer_callback_query

Answer a callback query from an inline keyboard button press by optionally displaying a notification or alert to the user.

Instructions

Answer a callback query from an inline keyboard button press.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
callback_query_idYesID of the callback query (from the event).
textNoOptional notification text shown to the user.
show_alertNoShow as alert popup instead of toast notification.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYes
errorNo
callback_query_idNo
Behavior2/5

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

With no annotations, the description should disclose behavioral traits, but it only states the action without explaining side effects (e.g., dismissing loading indicator) or prerequisites. The tool's impact on the user interface is not clarified.

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 description is a single sentence, concise and to the point. It could be slightly more front-loaded with key details, but it wastes no words.

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?

The tool is simple, with 3 parameters fully described in the schema and an output schema present. However, the description lacks behavioral context and usage guidance, so completeness is adequate but not thorough.

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?

The input schema provides 100% coverage of parameters with descriptions. The tool description adds no additional meaning beyond what the schema already states, meeting the baseline but not exceeding it.

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 clearly states the tool's purpose: to answer a callback query from an inline keyboard button press. The verb 'answer' and resource 'callback query' are specific, and the tool is distinct from siblings like send_message or delete_message.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool vs alternatives, such as indicating that it must follow a callback query event or that it prevents loading indicators. No exclusions or context are given.

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/Py2755/aiogram-mcp'

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