Skip to main content
Glama

b24_disk_file_upload

Upload a base64-encoded file to a Bitrix24 Disk folder and return the created file object, with automatic unique naming on filename collisions.

Instructions

Upload a file into a Disk folder (disk.folder.uploadfile).

Returns the created file object. Content must be base64; the fileContent parameter is sent as [name, base64] with a unique name generated on collision.

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": {
      "folder_id": "<folder_id>",
      "name": "<name>",
      "content_base64": "<content_base64>"
    },
    "name": "b24_disk_file_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesFile name including extension, e.g. 'report.pdf'.
folder_idYesTarget folder id.
webhook_urlNoOverride the default incoming webhook for this call (https://<portal>/rest/<user_id>/<token>/). If omitted, uses personal_webhook, then the X-B24-Webhook HTTP header, then the BITRIX_WEBHOOK_URL env default.
content_base64YesBase64-encoded file content.
personal_webhookNoAct as a specific user (their personal incoming webhook). Takes precedence over webhook_url. Required to write to the portal under that user's permissions.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnly=false, destructive=false, idempotent=false and openWorld=true, so the safety profile is largely covered. The useful addition is the collision rule — a unique name is generated rather than overwriting — which explains and reinforces destructiveHint=false. Encoding and return-shape notes are mild value adds; permission/webhook behavior is left entirely to the schema.

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?

Three short sentences, front-loaded with the core action and free of hedging. The "Returns the created file object" sentence is largely redundant given an output schema exists, a minor waste.

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 write tool with an output schema, full parameter coverage and safety annotations, the description covers the essentials: encoding requirement, collision behavior and return shape. Only permission requirements (personal_webhook acting as a user) are left implicit in the schema.

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 the schema already documents all five parameters, giving a baseline of 3. The description adds one genuine detail beyond the schema: content is transmitted as a [name, base64] tuple under the upstream fileContent parameter, which clarifies how the two fields combine.

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 ("Upload a file into a Disk folder") plus the underlying Bitrix method name. The action is unambiguously distinct from the sibling set of read/delete/content operations on files.

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?

No when-to-use or when-not-to-use guidance, and no alternative is named (e.g. folder_add, or the file_get sibling for retrieval). The purpose makes the rough context inferable, but nothing states prerequisites such as the target folder already existing or which call to use instead when a file already exists under the same 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