Skip to main content
Glama
bale-mcp

bale-mcp

by sepehr071

Bot: download file

bot_download_file

Downloads a file a user sent to the Bale bot (up to 20 MB) and returns its saved local path, adding numeric suffixes to avoid overwriting existing files.

Instructions

Download a file someone sent the bot (max 20 MB) and return its local path. Never overwrites (-1, -2, ... suffix).

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": {
      "file_id": "<file_id>"
    },
    "name": "bot_download_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
folderNoSave folder (default ~/.bale-mcp/files).
file_idYesfile_id from a received message.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.3.0
    • changedInput schema / properties / folder / description
      Previous value: -"Folder to save into. Default ~/.bale-mcp/files."New value: +"Save folder (default ~/.bale-mcp/files)."
  2. Changed5 schema fields changedv0.2.0
    • changedInput schema / properties / file_id / description
      Previous value: -"file_id of a photo, document, voice, video or audio message."New value: +"file_id from a received message."
    • removedInput schema / properties / file_id / title
      Removed value: -"File Id"
    • removedInput schema / properties / folder / title
      Removed value: -"Folder"
    • removedInput schema / title
      Removed value: -"bot_download_fileArguments"
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "title": "bot_download_fileDictOutput",
      -  "type": "object"
      -}New value: +null
  3. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, openWorldHint=true, idempotentHint=false, and destructiveHint=false. The description adds important behavioral context beyond that: a 20 MB size limit, return of a local path, and non-overwrite behavior via numeric suffixes. This is useful disclosure for a file-writing operation.

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?

The description is two tight sentences with zero wasted wording. The primary action and key constraints are front-loaded, and the overwrite note is appended efficiently.

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?

For a simple two-parameter download tool with no output schema, the description covers maximum size, return value, and overwrite behavior. It could mention error cases or permission requirements, but it is largely complete for the tool's complexity.

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 both parameters are already documented in the input schema. The description does not add parameter-specific meaning beyond what the schema provides, such as accepted file_id formats or folder path rules.

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?

The description states a specific verb and resource: downloading a file that someone sent the bot, with a clear scope and return value (local path). This distinguishes it from sibling tools like bot_send_file and bot_get_new_messages without ambiguity.

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?

The phrase "a file someone sent the bot" clearly implies when to use this tool: retrieving an already-received file. It does not explicitly name alternatives or exclusions, but the use case is clear from the description.

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