Skip to main content
Glama
bit2beat

Bitrix24 MCP server

b24_feed_post

Post a message to the Bitrix24 activity feed using BB-code formatting. Optionally set a title, target specific users or groups, attach files, or mark as important.

Instructions

Publica un mensaje en el feed de actividad (Live Feed) de Bitrix24, con soporte BB-code.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
messageYesTexto del mensaje. Soporta BB-code: [B]negrita[/B], [I]italica[/I], [URL=http://...]texto[/URL]
titleNoTítulo del post (opcional)
destinationNoIDs de usuarios o grupos destino. Si está vacío, se publica para todos. Formato: ["U5", "U10"] para usuarios, ["SG12"] para grupos
filesNoAdjuntos en formato Base64
importantNoSi true, marca el post como importante
webhook_urlNo

Implementation Reference

  • The actual handler function for the 'b24_feed_post' tool. Calls Bitrix24 API method 'log.blogpost.add' with message, title, destination, files, and important flag.
    export async function feedPost({ message, title, destination, files, important = false, webhook_url }) {
      const client = new Bitrix24Client(resolveWebhook(webhook_url));
      const res = await client.call('log.blogpost.add', {
        POST_MESSAGE: message,
        ...(title ? { POST_TITLE: title } : {}),
        ...(destination ? { DESTINATION: destination } : {}),
        ...(files ? { FILES: files } : {}),
        IMPORTANT: important ? 'Y' : 'N',
      });
      return { portal: client.portal, post_id: res.result, success: true };
    }
  • Zod schema defining the input parameters for b24_feed_post: message (required), title, destination (array of user/group IDs), files (Base64), important (boolean, default false), webhook_url (optional URL).
    export const feedPostSchema = z.object({
      message: z.string().describe('Texto del mensaje. Soporta BB-code: [B]negrita[/B], [I]italica[/I], [URL=http://...]texto[/URL]'),
      title: z.string().optional().describe('Título del post (opcional)'),
      destination: z.array(z.union([z.string(), z.number()])).optional().describe(
        'IDs de usuarios o grupos destino. Si está vacío, se publica para todos. ' +
        'Formato: ["U5", "U10"] para usuarios, ["SG12"] para grupos'
      ),
      files: z.array(z.string()).optional().describe('Adjuntos en formato Base64'),
      important: z.boolean().optional().default(false).describe('Si true, marca el post como importante'),
      webhook_url: z.string().url().optional(),
    });
  • index.js:230-233 (registration)
    Registration of the 'b24_feed_post' tool on the MCP server with description and schema binding.
    // ── Feed y Comunicación ───────────────────────────────────────────────────────
    server.tool('b24_feed_post',
      'Publica un mensaje en el feed de actividad (Live Feed) de Bitrix24, con soporte BB-code.',
      feedPostSchema.shape, wrap(feedPost));
  • Import statement that brings feedPostSchema and feedPost into the main index.js file from the feed-notifications module.
    import {
      feedPostSchema, feedPost,
      notifySendSchema, notifySend,
      groupsListSchema, groupsList,
      chatSendSchema, chatSend,
      bizprocListSchema, bizprocList,
      bizprocStartSchema, bizprocStart,
      telephonyCallsSchema, telephonyCalls,
    } from './src/tools/feed-notifications.js';
Behavior2/5

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

No annotations are provided, so the description must cover behavioral traits. It only mentions the action and BB-code support. It does not disclose authentication needs, rate limits, side effects, or error behavior. This is insufficient for a mutation tool.

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 a single, front-loaded sentence that conveys the core purpose and feature. No extraneous information.

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?

Given the 6 parameters and no output schema, the description is somewhat complete for the basic action but lacks context on expected responses, error states, or how the tool integrates with other Bitrix24 operations. It could benefit from a note on return value or confirmation.

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?

The schema description coverage is high (83%). The description adds minimal meaning beyond the schema, reiterating BB-code support already described in the 'message' parameter. It does not explain the destination format or files encoding beyond what the schema provides.

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 action ('Publica un mensaje'), the target resource ('feed de actividad / Live Feed'), and a key feature ('soporte BB-code'). It distinguishes this tool from siblings like b24_crm_create or b24_tasks_create, which target different resources.

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 description does not explicitly state when to use this tool or provide alternatives. While the sibling tools cover other areas (CRM, tasks, etc.), the description lacks guidance on prerequisites, context, or when not to use it.

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/bit2beat/bitrix24-mcp'

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