Skip to main content
Glama

send_media

Send or schedule photos, documents, voice notes, videos, stickers, or albums from the sandboxed outbox to a Telegram peer, with optional captions and AI attribution.

Instructions

Upload and send or schedule media from the sandboxed outbox directory (photo, document, voice, video_note, album) or an existing sticker. Appends an AI attribution signature by default; place [nosig] at the very end of the text to omit it.

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": {
      "to": "<to>"
    },
    "name": "send_media"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesDestination peer reference (canonical ID, `@username`, or `"me"`).
captionNoOptional media caption (optionally ending with `[nosig]` to omit AI signature).
file_pathNoMedia file path inside the sandboxed `outbox_dir` (for single-media modes).
file_pathsNoMedia file paths inside the sandboxed `outbox_dir` (2..=10 items for albums).
media_modeNoMedia sending mode (`auto`, `photo`, `document`, `voice`, `video_note`, `sticker`, or `album`).
parse_modeNoCaption formatting mode (`markdown`, `plain`, or `html`; default `markdown`).
duration_secsNoOptional duration in seconds (for `voice` or `video_note`).
schedule_dateNoOptional future Unix timestamp in seconds to schedule the media message.
sticker_doc_idNoExisting Telegram sticker document ID (for `sticker`).
reply_to_message_idNoOptional message ID to reply to.
sticker_access_hashNoExisting Telegram sticker document access hash (for `sticker`).
sticker_file_reference_b64NoBase64-encoded Telegram sticker file reference (for `sticker`).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare this is a non-readonly, non-idempotent, open-world write with destructiveHint=false, so the description doesn't need to re-state safety. It adds genuinely new behavior: media is copied out of a sandboxed outbox, an AI attribution signature is appended by default, and [nosig] at the very end of the text suppresses it. Rate limits, size caps, and post-send file lifecycle remain undisclosed.

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 sentences, zero filler, front-loaded with the primary action and the mode list. The signature behavior and its opt-out are paired in a single compact clause where an agent will actually read them.

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?

Given 12 parameters and no output schema, the description covers the parts an agent would most likely get wrong: the outbox confinement, the mode selection, and signature suppression. Gaps remain around what the call returns (message ID? per-item album results?) and the semantics of combining file_path with file_paths, but the rich schema absorbs most of that burden.

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

Parameters4/5

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

Schema description coverage is 100%, so the baseline is 3; the description earns the extra point by explaining the caption-level [nosig] token, which is a cross-cutting convention the schema can't express. The mode vocabulary also maps directly onto the media_mode enum. Sticker-specific parameters and the 2..=10 album bound are left entirely to 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?

Uses a specific verb (upload/send/schedule) with a clearly bounded resource: media from the sandboxed outbox directory, enumerating the modes (photo, document, voice, video_note, album) plus the sticker exception. This separates it from send_message and send_structured at a glance, though the description never names those siblings explicitly.

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?

States a real prerequisite (files must live in the sandboxed outbox directory) and implies the scheduling path, which is useful context. However, it gives no explicit when-to-use versus send_message or send_structured for text-plus-media scenarios, and no when-not guidance.

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