Skip to main content
Glama
paskal

bitrix24-mcp-server

by paskal

bitrix24_im_post_file

Post any local file into a Bitrix24 chat — group, task, or direct. Images show inline previews; other file types appear as downloadable attachments with a short caption.

Instructions

Post local file(s) of ANY type into a Bitrix24 chat — .txt/.docx/.pdf/.zip/images alike — in a group/workgroup/project chat, a task chat, or a 1-on-1. This is the attachment counterpart to bitrix24_im_message_send (which is text-only) and the chat equivalent of bitrix24_task_attach_file / bitrix24_task_post_image (which only post into a TASK). IMAGES additionally render INLINE as a preview thumbnail; every other type posts as a normal downloadable file message with the caption — so use this whenever a file has to reach a chat, not just for pictures. Under the hood it uploads each file into the CHAT'S OWN disk folder and commits it (im.disk.folder.get → disk.folder.uploadfile → im.disk.file.commit) — the native-client flow, so every chat member can see it regardless of shared-folder permissions. One SEPARATE message is posted per file (Bitrix renders multiple images stacked in a single message with broken placeholders), and the same message caption is reused on each; for distinct captions call once per file. CAPTION RULE — the file-commit caption renders in an OVERSIZED font, so keep it to ONE short line and post any long explanation as a separate bitrix24_im_message_send message. Returns an array of the created message IDs. Same disclosure convention as bitrix24_im_message_send applies to any accompanying text message. ALWAYS prefer this over hand-rolling the upload with curl: it uses a proper multipart encoder, so filenames containing commas, spaces or Cyrillic are handled correctly, whereas curl -F 'file=@x;filename=a, b.txt' treats the comma as a multi-file separator and dies with «curl: (26) Failed to open/read local data» (caught 2026-07-24).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
messageNoShort one-line caption, reused on each file's message (see the caption rule). Optional — omit for no caption.
dialogIdYesTarget chat: 'chatNNN' for a group/task chat, or a numeric user ID for a 1-on-1
filePathsYesAbsolute local path(s) to the file(s) — any type. One message is posted per file.
Behavior5/5

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

No annotations provided, so description carries full burden. Discloses internal implementation (im.disk.folder.get → disk.folder.uploadfile → im.disk.file.commit), behavior differences for images (inline preview) vs other types (downloadable), one message per file rule, oversized font caption caveat, and a historical curl bug. Very transparent.

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?

Description is thorough but not overly verbose. Front-loaded with core purpose, then details. Every sentence provides useful information. Could be slightly tighter, but overall efficient for its comprehensiveness.

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 tool with no output schema, description explains return type (array of message IDs). Covers file types, caption behavior, differences from siblings, internal flow, and usage notes. Very complete for an agent to understand and invoke correctly.

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 baseline is 3. The description adds value beyond schema by explaining the caption rule (oversized font), reusing the same caption, and why to keep it short. It also reinforces handling of filenames with special characters. However, the schema already includes similar descriptions for each parameter.

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 clearly states the tool posts local files of any type into Bitrix24 chats, with explicit verb 'Post' and resource 'local file(s) into a Bitrix24 chat'. It distinguishes from siblings like bitrix24_im_message_send (text-only) and bitrix24_task_attach_file/bitrix24_task_post_image (task-only), making purpose unambiguous.

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

Usage Guidelines5/5

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

Provides explicit when-to-use (for any file reaching a chat), when-not-to-use (for long explanations, use separate message), and alternatives (hand-rolling with curl is discouraged). Also advises calling once per file for distinct captions and keeping caption to one short line.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/paskal/bitrix24-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server