Skip to main content
Glama
Telegram MCP Server

Telegram MCP Server

send_telegram_file_direct

Create a file from a UTF-8 or base64 content string and send it directly to Telegram without writing to disk.

Instructions

Creates a file from the provided content string and sends it directly to Telegram — no disk write needed. Supports utf-8 text and base64-encoded binary content.

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": {
      "fileName": "<fileName>",
      "fileContent": "<fileContent>"
    },
    "name": "send_telegram_file_direct"
  }
}

Input Schema

NameRequiredDescriptionDefault
captionNoOptional caption text for the message.
encodingNoutf-8 for text content, base64 for binary files.
fileNameYesFile name including extension (e.g. report.html, data.csv).
fileContentYesThe complete file content as a string.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose useful behavior: the file is built in memory from the content string, nothing touches disk, and both utf-8 and base64 payloads are supported. It omits auth/permission requirements, size limits, rate limits, and what a successful send returns (e.g., message id), which matters for a messaging write operation.

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?

Two front-loaded sentences with no filler; the core action and the no-disk property come first and the encoding support second. Minor redundancy between 'creates a file from the provided content string' and 'sends it', but nothing warrants cutting.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 4-parameter send tool with no annotations and no output schema, the description explains the mechanism well but leaves out the operational envelope an agent needs: failure behavior, size limits, and any confirmation/return value. Those are not covered by structured fields, so the gap is real.

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%, so fileName, fileContent, caption, and the encoding enum are already fully documented in the schema. The description's mention of utf-8 and base64 restates the enum rather than adding new meaning, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb pair (creates a file, sends it) and the resource (Telegram), and the phrase 'no disk write needed' implicitly distinguishes it from the sibling send_telegram_file which presumably reads from disk. It never names that sibling, so the differentiation requires inference.

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

Usage Guidelines3/5

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

'no disk write needed' hints at the condition that selects this tool over a disk-based sender, but there is no explicit when-to-use/when-not statement and no named alternative. An agent must infer the routing rule from the phrase alone.

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