Skip to main content
Glama
ChatPush MCP Server

ChatPush MCP Server

Official

Send file

send_file

Send documents, images, audio, video, or contact cards to a recipient over MAX, WhatsApp, or Telegram; SMS cannot carry files. Provide a local path, URL, or base64 file up to 100 MB.

Instructions

Send a file (document, image, audio, video, contact) to a recipient via MAX, WhatsApp or Telegram (set the channel in dispatch_routing; SMS cannot carry files). File is uploaded as multipart/form-data. Images under 10MB sent natively, larger files as download links active for 7 days.

Use it when the user wants to share a document, photo, voice message, video or contact card. Provide the file as exactly one of: file_path (local file), file_url (downloaded by the server) or file_base64 (with file_name).

Supported: pdf, doc, docx, ppt, pptx, xls, xlsx, zip, 7z; ogg, opus, mp3, aac, amr, 3gp; jpeg, png, webp; mp4; vcf. Max 100 MB. Recipient: phone, or for personal Telegram (dispatch_routing ["tdlib"]) username or tdlib_user_id instead.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "send_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNodocument = send as file, image = send as photo (WhatsApp/tdlib).
phoneNoRecipient phone in international format. Optional if username is used (tdlib).
captionNoDescription below the file (WhatsApp only).
file_urlNoPublic http(s) URL of the file; the server downloads and uploads it.
priorityNoSending priority. Chosen automatically if omitted.
usernameNoTelegram username (tdlib only).
utm_markNoLabel for tracking dispatches (see get_utm_tags).
file_nameNoFilename with extension, e.g. document.pdf. Defaults to the name from file_path or file_url.
file_pathNoAbsolute path of a local file to upload (~ is expanded).
customer_idNoInternal client ID.
external_idNoYour client-side ID for this message (idempotency ID).
file_base64NoFile content as base64 (a data: URL is accepted too). Requires file_name.
sender_nameNoRegistered SMS sender name (see get_balance → sender names).
callback_urlNoURL that receives the final delivery status as a POST request (retried every 2 minutes, up to 10 times, until it returns HTTP 200).
scheduled_atNoDelayed sending time, format YYYY-MM-DD HH:MM:SS in UTC+0. At least 1 minute and at most 1 month ahead.
tdlib_user_idNoTelegram user ID (positive = private chat, negative = group chat). tdlib channel only.
simulate_typingNoDefault true: show a typing indicator in WhatsApp before sending. false sends instantly.
dispatch_routingNoChannels in the order ChatPush should try them (cascade: the next channel is used only if delivery through the previous one fails). whatsapp = WhatsApp, tdlib = personal Telegram account, telegram = Telegram Bot, notify = VK/OK, max = MAX messenger, sms = SMS. If omitted, the account's default routing is used.
reply_to_message_idNoID of the message to reply to, taken from an incoming-message webhook.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing the transport (multipart/form-data), the native-image threshold (under 10MB) versus the fallback (download link active 7 days), the 100 MB ceiling, and the full supported-extension list. These are operational facts an agent could not derive from readOnlyHint/openWorldHint alone and directly affect whether a call will succeed.

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?

Front-loads the action, channels and transport in the first two sentences, then constraints, then supported formats. Slight waste in re-listing the file types twice (once as 'document, image, audio, video, contact' and again as 'document, photo, voice message, video or contact card'), but the density of useful facts justifies the length.

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

Completeness5/5

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

For a 19-parameter tool with no output schema, the description covers the decisions that determine success: which channel, which file-source parameter, size and format limits, and recipient identifier rules per channel. Remaining parameters (caption, priority, scheduled_at, callback_url, utm_mark) are fully documented in the schema, so nothing an agent needs is missing.

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 coverage is 100%, so the schema already defines each parameter; the description's real contribution is the mutual-exclusivity rule 'exactly one of: file_path, file_url or file_base64 (with file_name)', a constraint the schema does not encode. Recipient substitution for tdlib (username/tdlib_user_id instead of phone) is also restated usefully, though it duplicates schema text.

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

Purpose5/5

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

States a specific verb and resource ('Send a file') and immediately enumerates the resource subtypes (document, image, audio, video, contact) plus the channels it travels over. An agent can distinguish this from a text-message tool purely from the file-oriented framing, without opening the schema.

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

Usage Guidelines4/5

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

Gives an explicit trigger ('Use it when the user wants to share a document, photo, voice message, video or contact card') and a hard exclusion ('SMS cannot carry files'), which prevents a common mis-routing. It does not name a sibling for text-only sends, so the alternative for non-file content is left implicit.

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