Skip to main content
Glama

telegram-send-file

Send a photo, document, video, or other file to a Telegram chat using a chat ID or username and a local path or HTTP(S) URL.

Instructions

Send a file (photo, document, video, etc.) to a Telegram chat

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": {
      "chatId": "<chatId>",
      "filePath": "<filePath>"
    },
    "name": "telegram-send-file"
  }
}

Input Schema

NameRequiredDescriptionDefault
chatIdYesChat ID or username
captionNoFile caption
filePathYesAbsolute path to a file under the home or temp folder (hidden folders are refused), or an http(s) URL

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.45.1
    • changedInput schema / properties / filePath / description
      Previous value: -"Absolute path to file"New value: +"Absolute path to a file under the home or temp folder (hidden folders are refused), or an http(s) URL"
  2. Addedv1.36.5
  3. Removedv1.36.3
  4. First observedv1.3.1

TDQS

B3.1/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false and openWorldHint=true, so mutation and external-world behavior are known. The description adds only that the target is a chat and that files can be photo/document/video, but does not mention file size limits, caption limits, permission requirements, or failure behavior.

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 a single front-loaded sentence with no wasted words. It is perhaps terse, but terseness is a completeness issue rather than a conciseness defect.

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 three-parameter send-file tool with no output schema and annotations that cover the safety profile, the description identifies the core action and target. However, it omits sibling differentiation and practical sending constraints, leaving the agent to rely on the schema for file-path rules and on inference for when to choose this over send-album, send-voice, or send-video-note.

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 coverage is 100%, and the schema documents chatId, filePath, and caption with useful constraints (absolute path under home/temp, URLs, hidden folders refused). The description only says the file may be a photo, document, or video, which adds little beyond the schema.

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?

The description states a specific verb ('Send'), resource ('a file'), and target ('a Telegram chat'), with examples of file types. That makes the operation clear, but it does not explicitly distinguish it from siblings such as telegram-send-album or telegram-send-voice.

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

Usage Guidelines2/5

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

No when-to-use or when-not-to-use guidance is given, and no alternative tool is named. The file-type examples imply this is for attachments rather than text messages, but the agent must infer that from the resource alone.

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

Deploy Server

Other Tools