Skip to main content
Glama
Telegram MCP Server

Telegram MCP Server

send_telegram_photo_direct

Send a base64-encoded image to Telegram as an inline photo for generated charts, diagrams, or screenshots that exist only in memory. Add an optional caption and virtual file name.

Instructions

Sends a base64-encoded image directly to Telegram as an inline photo. Ideal for generated charts, diagrams, or screenshots that exist only in memory.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "photoContent": "<photoContent>",
      "fileName": "<fileName>"
    },
    "name": "send_telegram_photo_direct"
  }
}

Input Schema

NameRequiredDescriptionDefault
captionNoOptional caption text below the photo.
encodingNoMust be base64 since this is binary image data.
fileNameYesA virtual file name for the image (e.g. chart.png, diagram.jpg).
photoContentYesThe complete image content as a base64-encoded string.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It does disclose two meaningful behaviors: the photo is rendered inline rather than as a document attachment, and the source is in-memory base64 with no file path or URL needed. However, it says nothing about Telegram's size limits, failure modes for malformed base64, required bot permissions/chat context, or what the call returns — notable gaps for a mutation tool with zero annotation coverage.

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?

Two short sentences, zero filler, with the core action front-loaded and the use case as supporting context. Nothing could be removed without losing information.

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 simple four-parameter send operation with a fully documented schema and no output schema, the description supplies the action, the encoding mechanism, and the intended scenario. It would be stronger with a note on size limits or the expected response (e.g. a message id), but an agent has enough to call it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, with every parameter (photoContent, fileName, caption, encoding) already documented, including the base64 enum constraint. The description only restates that the image is base64-encoded and adds no format, sizing, or naming guidance beyond the schema, so baseline 3 applies.

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?

States a specific verb (sends), resource (image), transport (base64-encoded, directly), and rendering mode (inline photo), which cleanly separates it from send_telegram_photo (likely URL/path based) and send_telegram_file_direct (document attachment). The intended use case — charts, diagrams, screenshots that exist only in memory — further pins down what this tool is for.

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 phrase 'Ideal for generated charts, diagrams, or screenshots that exist only in memory' gives a concrete when-to-use condition, and 'directly'/'base64-encoded' implies when to prefer it over file- or URL-based siblings. It stops short of naming those alternatives or stating when-not to use it, so it is clear context without explicit routing.

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