Skip to main content
Glama
bit2beat

Bitrix24 MCP server

b24_call

Invoke any Bitrix24 REST API method directly. Provides access to CRM, tasks, disk, and other modules when no dedicated tool is available.

Instructions

Llama CUALQUIER método REST de la API de Bitrix24. Úsalo cuando no exista un tool específico. Referencia completa: https://dev.1c-bitrix.ru/rest_help/

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
methodYesMétodo REST de Bitrix24. Ejemplos: crm.deal.list, tasks.task.add, disk.folder.getchildren, im.notify.personal.add
paramsNoParámetros del método como objeto JSON. Ejemplo: { "filter": { "STAGE_ID": "WON" }, "select": ["ID","TITLE"] }
webhook_urlNoWebhook opcional, usa el default si no se indica

Implementation Reference

  • The handler function 'universalCall' that executes the b24_call tool logic. It creates a Bitrix24Client, calls the specified REST method with params, and returns the result.
    export async function universalCall({ method, params = {}, webhook_url }) {
      const client = new Bitrix24Client(resolveWebhook(webhook_url));
      const response = await client.call(method, params);
      return {
        method,
        portal: client.portal,
        result: response.result,
        total: response.total ?? null,
        next: response.next ?? null,
      };
    }
  • Zod schema 'callSchema' defining the input validation for b24_call: method (string), params (optional record), and webhook_url (optional URL).
    export const callSchema = z.object({
      method: z.string().describe(
        'Método REST de Bitrix24. Ejemplos: crm.deal.list, tasks.task.add, disk.folder.getchildren, im.notify.personal.add'
      ),
      params: z.record(z.any()).optional().default({}).describe(
        'Parámetros del método como objeto JSON. Ejemplo: { "filter": { "STAGE_ID": "WON" }, "select": ["ID","TITLE"] }'
      ),
      webhook_url: z.string().url().optional().describe('Webhook opcional, usa el default si no se indica'),
    });
  • index.js:93-96 (registration)
    Registration of the 'b24_call' tool with the MCP server, including description, schema, and handler wrapped with error handling.
    server.tool('b24_call',
      'Llama CUALQUIER método REST de la API de Bitrix24. Úsalo cuando no exista un tool específico. ' +
      'Referencia completa: https://dev.1c-bitrix.ru/rest_help/',
      callSchema.shape, wrap(universalCall));
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It mentions that it calls any REST method but does not disclose behavioral traits such as potential side effects (e.g., destructive operations like task updates), authentication requirements, or rate limits. The external reference partially compensates but the description itself is minimal.

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?

Three concise sentences that convey purpose, usage guideline, and reference. No unnecessary words; every sentence earns its place.

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?

Despite no output schema, the description directs agents to the full API documentation for return values. For a generic tool that covers many methods, this is reasonable. It could mention that results vary by method, but the external reference mitigates this gap.

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 coverage is 100%, so the JSON schema already adequately describes the parameters (method, params, webhook_url). The description adds a usage context but does not significantly enhance parameter semantics 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 explicitly states it can call ANY REST method of the Bitrix24 API, which is a very specific verb+resource pair, and it distinguishes itself from siblings by being the generic fallback tool to use when no specific tool exists.

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?

The description provides explicit usage guidance: 'Úsalo cuando no exista un tool específico' (use it when no specific tool exists). It also includes a link to the full API reference, which is a strong resource for proper usage.

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