Skip to main content
Glama
EyalWerber

telegram-mcp

by EyalWerber

get_latest_image

Fetch the most recent photo from a configured Telegram group, returning the full-resolution original file path for cropping or reading fine print. Falls back to a descriptive error if no photo is found or the group is unreachable.

Instructions

Return the most recent image posted in the configured Telegram group.

Use this when the user says they have just sent a screenshot. It looks back over the last 200 messages for one carrying a photo and returns it together with the path to the full-resolution original — crop that file if you need to read fine print the downscaled copy blurred.

Returns a sentence explaining what to fix if the group is unreachable, the session has expired, or no photo is in range.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

With no annotations, the description carries the full burden. It discloses that it scans the last 200 messages, returns a downscaled photo along with the path to the full-resolution original, and provides an error sentence for unreachable group, expired session, or no photo. This gives agents a clear picture of behavior beyond the schema.

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 bit long but each paragraph serves a purpose: primary action, usage guidance, and error handling. It is front-loaded with the main action and each sentence adds value, though it could be slightly more concise.

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 zero-parameter tool with no output schema and no annotations, the description covers the what, when, return value, and failure modes. It doesn't specify the exact success return format, but it mentions the image and path to the original, which is sufficient for an agent to use correctly.

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?

There are zero parameters, so the schema already covers everything. The description mentions a 'configured Telegram group' implying external context, but no parameter explanation is needed. The baseline for no parameters is 4, and the description doesn't introduce any confusion.

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 action: 'Return the most recent image posted in the configured Telegram group.' It uses a specific verb and resource, and implicitly distinguishes from the sibling wait_for_next_image by focusing on 'most recent' rather than awaiting new ones.

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 when-to-use guidance: 'Use this when the user says they have just sent a screenshot.' It also explains the lookback window (last 200 messages) and advises cropping for fine print. It doesn't explicitly name the alternative tool, but the context implies when not to use it (waiting for a new image).

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