Skip to main content
Glama
bale-mcp

bale-mcp

by sepehr071

Bot: send file

bot_send_file
Destructive

Sends a photo, document, video, audio, or voice file from the bot to a chat after confirming the recipient and file with the user. Accepts an http(s) URL or a local path.

Instructions

Send a real photo, document, video, audio or voice file from the bot. Confirm recipient and file with the user first.

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": {
      "chat_id": "<chat_id>",
      "kind": "<kind>",
      "source": "<source>"
    },
    "name": "bot_send_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindYesFile type.
sourceYeshttp(s) URL, or local path inside BALE_MCP_SEND_DIRS (max 50 MB).
captionNoCaption.
chat_idYesChat id (number) or public '@channel' username.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.3.0
    • changedInput schema / properties / caption / description
      Previous value: -"Optional caption."New value: +"Caption."
    • changedInput schema / properties / chat_id / description
      Previous value: -"Chat id (number, e.g. 123456789) or public '@channel' username. See bot_list_chats."New value: +"Chat id (number) or public '@channel' username."
    • changedInput schema / properties / kind / description
      Previous value: -"How Bale shows the file."New value: +"File type."
    • changedInput schema / properties / source / description
      Previous value: -"http(s) URL, or local file path (max 50 MB; see BALE_MCP_SEND_DIRS)."New value: +"http(s) URL, or local path inside BALE_MCP_SEND_DIRS (max 50 MB)."
  2. Changed9 schema fields changedv0.2.0
    • removedInput schema / properties / caption / title
      Removed value: -"Caption"
    • changedInput schema / properties / chat_id / description
      Previous value: -"Chat id (number from bot_get_new_messages or bot_list_chats, e.g. 123456789) or a public channel/group username like '@mychannel'."New value: +"Chat id (number, e.g. 123456789) or public '@channel' username. See bot_list_chats."
    • removedInput schema / properties / chat_id / title
      Removed value: -"Chat Id"
    • changedInput schema / properties / kind / description
      Previous value: -"How Bale should show the file."New value: +"How Bale shows the file."
    • removedInput schema / properties / kind / title
      Removed value: -"Kind"
    • changedInput schema / properties / source / description
      Previous value: -"An http(s) URL, or a path to a local file (max 50 MB)."New value: +"http(s) URL, or local file path (max 50 MB; see BALE_MCP_SEND_DIRS)."
    • removedInput schema / properties / source / title
      Removed value: -"Source"
    • removedInput schema / title
      Removed value: -"bot_send_fileArguments"
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "title": "bot_send_fileDictOutput",
      -  "type": "object"
      -}New value: +null
  3. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, openWorldHint=true, and idempotentHint=false, so the risk profile is partly covered. The description adds one valuable piece beyond them, the mandatory user confirmation before sending. It does not disclose failure behavior, the 50 MB ceiling, or what a successful send returns, leaving notable behavioral gaps for a destructive outbound action.

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 short sentences with no filler, and the action is front-loaded before the safety instruction. Every clause earns its place.

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?

With four fully documented parameters and annotations carrying the safety profile, the description covers the core of what to send and the confirmation requirement. It stops short of covering return behavior (no output schema exists), size-limit enforcement, or error cases, which matter for an outbound destructive send.

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% and every property is documented in the schema, including the enum values for kind and the BALE_MCP_SEND_DIRS/50 MB constraint on source. The description only restates the file-type list, adding no syntax, default, or edge-case meaning beyond the structured fields, so the baseline 3 applies.

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?

"Send a real photo, document, video, audio or voice file from the bot" gives a concrete verb plus the full resource set, and the word "real" separates it from sending a link via bot_send_message and from the read-side bot_download_file. An agent can route between the file, message, and download siblings without opening any schema.

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?

The second sentence gives a genuine workflow precondition (confirm recipient and file with the user first), which is more than most definitions offer. However, it never says when to choose this over bot_send_message (e.g. attaching a file to a conversation vs. plain text) or what to do if the file is out of scope, so the alternative-selection guidance is only implied.

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