Skip to main content
Glama
Automata MCP

Automata MCP

Send Telegram image

send-telegram-image

Sends a single JPEG or PNG image as a Telegram photo to a chat ID or username, with an optional caption, using an image URL or base64 data.

Instructions

[Telegram] Send one image (JPEG or PNG, at most 5 MB) as a photo from the connected Telegram account, with an optional caption (Telegram's limit is 1024 characters). Pass the image as imageUrl (a public link this server downloads) or as imageBase64 — exactly one. Address it like send-telegram-message: a chatId from list-telegram-chats or a username, exactly one of the two. The caption is sent exactly as written — formatting marks are not interpreted. The account must be in the open state; check with get-telegram-status first. Messages cannot be unsent from here. The account owner may have set a disclaimer line that is appended to every caption automatically (and counts toward the limit); when one was, the response names it in disclaimerAppended.

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": "send-telegram-image"
  }
}

Input Schema

NameRequiredDescriptionDefault
chatIdNoChat id from list-telegram-chats, as a string
captionNoText shown under the photo, sent exactly as written (at most 1024 characters)
imageUrlNoPublic http(s) URL of a JPEG or PNG image (at most 5 MB). It is downloaded by this server, so it must be reachable without signing in.
usernameNoInstead of chatId: a public @username, a t.me link, or a phone number
imageBase64NoInstead of imageUrl: the JPEG or PNG file itself, base64-encoded (a data: URL prefix is accepted). Requests are capped at 2 MB, so this suits images up to about 1.5 MB.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

Beyond the annotations it discloses the open-account prerequisite, the irreversibility of sending, the automatic disclaimer appended to captions (and that it counts toward the 1024 limit), and the `disclaimerAppended` response field. The annotations already cover the write/open-world profile; the remaining gap is that it doesn't describe the rest of the success response or failure modes such as unreachable URLs.

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?

Front-loaded with the action and its constraints, and each sentence carries operational information. It is dense and long for a single tool, with a couple of clauses that could be tightened, but nothing is filler.

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?

For a write tool with no output schema, it covers everything an agent needs: source format and size, payload caps, addressing, account state, caption semantics, disclaimer side effect, and the one response field worth reading. No material ambiguity remains.

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 would be 3, but the description adds genuinely non-schemaizable meaning: the mutual exclusivity of the two image sources and the two addressing modes (schema has no oneOf encoding this). It also reiterates the 5 MB and 1024-character limits in 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?

Opens with a specific verb, resource, channel, and hard constraints: 'Send one image (JPEG or PNG, at most 5 MB) as a photo from the connected Telegram account'. It explicitly distinguishes itself from send-telegram-message by borrowing its addressing model, so an agent can tell which send-tool to pick without reading schemas.

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

Usage Guidelines5/5

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

Gives concrete preconditions and alternatives: exactly one of `imageUrl`/`imageBase64`, exactly one of `chatId`/`username`, and the account must be in the `open` state, checkable via get-telegram-status first. It also warns that messages cannot be unsent from here, which tells the agent to be deliberate before calling.

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