Skip to main content
Glama
telegram-bot-testing-mcp
by SnimanOff

tg_send_file

Attach and send a file to the open Telegram chat, with auto-detection by extension or explicit photo/document type.

Instructions

Attach and send a file to the open chat. kind: auto (by extension) | photo | document.

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": {
      "path": "<path>"
    },
    "name": "tg_send_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNoauto
pathYes
captionNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden and mostly does not: nothing about size limits, upload failures, whether the file must exist on the host, or what happens to the caption alongside the media. The only behavioral hint is the implicit prerequisite that a chat be open.

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 short, front-loaded lines with no filler; the kind enumeration is compressed efficiently. The terse pipe-delimited format is slightly cryptic but still readable.

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

Completeness2/5

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

For a tool with no annotations and 0% parameter documentation, the description is thin: the meaning of "path" and the role of "caption" are unresolved, and no upload constraints are given. An output schema exists, so return values need not be described, but invocation-critical gaps remain.

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 0%, and the description does compensate for one parameter by enumerating the kind values (auto by extension, photo, document), which the schema does not. However, it says nothing about what "path" refers to (local file path vs. URL) or what "caption" does, leaving two of three parameters unexplained.

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 and resource ("Attach and send a file to the open chat"), which clearly separates it from tg_send_message and tg_send_voice without naming them. The target scope ("open chat") is explicit.

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?

Usage is implied by "to the open chat," which tells the agent a chat must be open first, but there is no explicit when-to-use versus tg_send_message or tg_send_voice, and no exclusions or failure conditions.

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