Skip to main content
Glama

Скачать вложение сообщения

dialogs_download_attachment
Read-onlyIdempotent

Download an attachment from a specified Telegram dialog message and save it to a new local file path without overwriting existing files.

Instructions

Сохраняет вложение локально. destination должен быть новым файлом.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
caseNoДело: название или идентификатор. Если не указать, берётся дело по умолчанию, иначе последнее открытое в панели.
indexNoНомер вложения, с нуля.
dialogYesДиалог: имя, @username, номер чата или идентификатор.
messageYesID сообщения из dialogs_history.
destinationYesПуть нового файла; существующий не перезаписывается.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is largely covered. The description adds one real behavioral fact not obvious from structured data: the destination must be a new file (no overwrite). It says nothing about failure modes (e.g. invalid index) or where the file ends up beyond the given path.

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 sentences, zero filler, and the core action is front-loaded before the constraint. It is efficient, though the extreme brevity means some useful routing context was omitted rather than trimmed.

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 five-parameter tool with no output schema, the description covers the essential action and one constraint, and annotations supply the safety profile. Still missing: how to pick 'index' among multiple attachments, whether the dialog/message resolution follows the same rules as dialogs_history, and any auth/permission expectation for openWorld use.

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 all five parameters (case, index, dialog, message, destination) are already documented in the schema, including the no-overwrite rule. The description's destination sentence merely restates the schema's own wording, adding no meaning beyond it. 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?

The description states a specific verb+resource ('Сохраняет вложение локально' – saves the attachment locally), which is unambiguous about what the tool does. It does not, however, distinguish this tool from any sibling (e.g. dialogs_reply_file also deals with file attachments), leaving the agent to infer the scope from required params.

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?

There is no when-to-use guidance, no mention of alternatives or prerequisites. The only operational hint is a constraint on the destination path ('должен быть новым файлом'), which is a usage rule but not a selection rule. Usage is only implied by the name.

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