Skip to main content
Glama
Anonymouse8882

Telegram MCP

wait_for_message

Poll a chat for new messages matching criteria like sender, text, or time limit. Commonly used to wait for a bot's reply after sending a command.

Instructions

等待某个对话出现新消息(轮询),常用于发指令给 bot 后等它回复。

Args: chat: 要盯的对话。 after_message_id: 只认 ID 大于它的消息;0 表示以调用时的最新消息为界。 timeout_seconds: 最多等多少秒(1~300)。 from_user: 只等某个发送者的消息。 incoming_only: 只算别人发来的消息,忽略自己发的。 contains: 消息文本必须包含这个子串才算命中。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chatYes
containsNo
from_userNo
incoming_onlyNo
timeout_secondsNo
after_message_idNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

No annotations are provided, so the description carries the full burden. It clearly discloses the polling mechanism, timeout behavior, and filtering options (e.g., incoming_only, from_user, contains). No hidden traits or contradictions are present.

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 concise and well-structured: a one-line summary stating the purpose and common use case, followed by a parameter list. Every sentence adds value, and the most important information is front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given 6 parameters, no annotations, and an output schema present, the description covers all essential aspects: polling behavior, parameter roles, and default values. It is sufficiently complete for an agent to use the tool correctly.

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

Parameters5/5

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

The schema has 0% description coverage, but the tool description provides detailed explanations for all 6 parameters, including their purpose, defaults, and constraints (e.g., timeout_seconds: 1~300). This adds significant value beyond the bare schema.

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 verb ('wait', 'poll') and resource ('new message in a chat') and distinguishes it from other message-related tools by specifying its polling nature and common use case (after sending a command to a bot and waiting for a reply).

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 explicit context ('常用于发指令给 bot 后等它回复') and explains parameters that filter messages, helping the agent decide when to use each option. However, it does not explicitly state when not to use this tool or name alternatives.

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/Anonymouse8882/TelegamMCP'

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