Skip to main content
Glama
telegram-bot-testing-mcp
by SnimanOff

tg_wait_for_message

Block until the Telegram bot sends new messages and return them, so test scripts can wait for and verify bot replies.

Instructions

Block until the bot sends something new (the core test primitive). Returns the new incoming messages.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "tg_wait_for_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
after_idNo
timeout_sNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it correctly discloses the most important trait, that the call blocks until new traffic arrives rather than returning immediately. It says nothing about what happens on timeout (empty result, error, or partial list), which is critical for a blocking call with a timeout_s parameter, nor about ordering or rate limits.

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?

Two short sentences with the blocking behavior front-loaded and the parenthetical purpose note placed early. Slight redundancy between 'sends something new' and 'Returns the new incoming messages', but nothing wasteful.

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?

An output schema exists, so return-shape explanation is not required. However, for a two-parameter unannotated blocking tool, missing timeout semantics and after_id cursor meaning leave the agent unable to predict behavior at the edges.

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 description coverage is extremely low (0%), and the description adds essentially nothing about after_id (cursor semantics, default 0 meaning 'from the start') or timeout_s (units, what a timeout yields). The only hint is 'something new', which gesture at cursor behavior but does not define it.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific behavior (blocking wait) on a specific resource (new incoming bot messages) rather than a generic 'wait'. It does not name tg_read_messages as the non-blocking counterpart, so differentiation from the sibling that most overlaps is left to inference.

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

Usage Guidelines3/5

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

'The core test primitive' implies this is the polling mechanism for tests, which is useful context. There are no explicit when/when-not rules and no mention of the obvious alternative (tg_read_messages for a non-blocking read), so the agent must infer the choice.

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