Skip to main content
Glama
germankingerman-byte

Telegram MCP Server

Send Telegram Photo

telegram_send_photo

Send an image to a Telegram chat by providing a publicly accessible HTTPS URL and an optional caption.

Instructions

Send an image to a Telegram chat by URL, with an optional caption.

Args:

  • chat_id (string | number): Target chat

  • photo (string): Public HTTPS URL of the image. Telegram fetches it server-side.

  • caption (string, optional): Caption text, up to 1024 characters

Returns: Confirmation with the new message_id.

Error Handling:

  • "wrong file identifier/HTTP URL specified" -> the URL is not publicly reachable or not a supported image format (jpg, png, gif, webp).

  • "IMAGE_PROCESS_FAILED" -> the file is too large (Telegram limit: 10 MB for photos sent by URL).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
photoYesPublicly accessible HTTPS URL of the image to send (e.g. 'https://example.com/chart.png')
captionNoOptional caption shown below the media, up to 1024 characters
chat_idYesTarget chat. Numeric chat ID (e.g. 123456789) or '@channel_username' for public channels.
Behavior5/5

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

The description discloses important behavioral details beyond annotations, including the server-side fetching of the URL, specific error messages (wrong file identifier, IMAGE_PROCESS_FAILED), file size limit (10 MB), and format hints. This adds significant context for the agent.

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 well-structured with Args, Returns, and Error Handling sections. It is concise (no unnecessary information) and front-loaded with the main purpose. Every sentence earns its place.

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?

Given the tool's simplicity (3 parameters, no output schema) and good annotations, the description covers the main use case, constraints, and error scenarios. It lacks explicit mention of what happens if chat_id is invalid, but the schema already covers parameter formats.

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 coverage is 100%, so baseline 3. The description adds value by clarifying that the photo URL is fetched server-side and by specifying error handling for the photo parameter, which is not in the schema. The parameter descriptions in the docstring largely mirror the schema but with added context.

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 sends an image to a Telegram chat by URL with an optional caption. It distinguishes from siblings like telegram_send_message (text) and telegram_send_document (file) by specifying 'send an image' and 'by URL'.

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 implies usage for sending images from public HTTPS URLs, but does not explicitly contrast with alternatives like telegram_send_document for files. The purpose is clear, but no 'when not to use' or direct sibling comparison is provided.

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/germankingerman-byte/telegram-mcp-server'

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