Skip to main content
Glama
EyalWerber

telegram-mcp

by EyalWerber

wait_for_next_image

Blocks until a new photo is posted to a Telegram group, returning only the first unseen image. Waits without token usage; retry if timeout.

Instructions

Blocks until a new image is posted to the group, then returns it.

Use this when the user is about to send a screenshot. It notes the group's newest message when the call starts and returns the first photo after that, so it never hands back something you have already seen in this call.

Args: timeout_seconds: how long to wait, clamped to 1-240 seconds.

Waiting costs no tokens -- the process idles on a socket. If nothing arrives it returns a sentence saying so; call it again to keep waiting.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
timeout_secondsNo
Behavior5/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It does so thoroughly: it blocks, notes the newest message at call start, returns only the first photo after that, guarantees no duplicate images from prior calls, costs no tokens (idles on a socket), clamps the timeout to 1-240 seconds, and describes the no-result behavior ('returns a sentence saying so'). These are non-obvious, valuable behavioral details that an agent needs to use the tool correctly.

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 succinct yet complete, using a clear structure: purpose, usage, and behavior. It front-loads the primary function, then adds usage context, then details the parameter and behavioral notes. Every sentence adds value; there is no fluff or redundancy. It is appropriately sized for a tool with a single parameter and no output schema.

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?

The tool is simple (one optional param, no output schema), and the description covers all essential aspects: what it does, when to use it, how the timeout works, the blocking/token behavior, and what it returns (both success and no-result cases). No critical information is missing for an agent to call it correctly. The absence of an output schema is mitigated by the explicit description of the return value.

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 only one parameter, timeout_seconds, and the schema provides no description (coverage 0%). The description compensates fully by explaining 'how long to wait' and adding the constraint 'clamped to 1-240 seconds.' This goes beyond the raw schema (which only shows a default of 120) and gives the agent complete understanding of the parameter's meaning and bounds.

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 opens with a specific verb and resource: 'Blocks until a new image is posted to the group, then returns it.' It immediately clarifies the distinct semantics (waits for a new image rather than returning the latest), and explicitly states it 'never hands back something you have already seen in this call,' which distinguishes it from the sibling get_latest_image. The purpose is unambiguous and precisely scoped.

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 a concrete usage context: 'Use this when the user is about to send a screenshot.' It also explains that it can be called again to keep waiting. However, it does not explicitly mention the sibling tool or state when not to use this tool versus get_latest_image. The guidance is clear for the primary scenario but lacks explicit exclusion or alternative routing.

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/EyalWerber/telegram-mcp'

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