Skip to main content
Glama

b24_crm_add

Creates a Bitrix24 CRM record for leads, deals, contacts, companies, quotes, or Smart Process items from supplied field values and returns the new ID.

Instructions

Create a CRM record. Returns the new id (classic) or {"item": {...}} (modern).

Writing requires a webhook with the acting user's permissions — pass personal_webhook to create under a specific user.

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": {
      "fields": "<fields>"
    },
    "name": "b24_crm_add"
  }
}

Input Schema

NameRequiredDescriptionDefault
entityNoClassic CRM entity: 'lead', 'deal', 'contact', 'company', or 'quote'. Ignored when entity_type_id is set.deal
fieldsYesField values for the new record, e.g. {'TITLE':'New deal','OPPORTUNITY':1000}.
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.
entity_type_idNoNumeric CRM entity type id for the modern crm.item.* API (e.g. 1=lead, 2=deal, 1030+=Smart Process). Set this to work with SPA items.
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

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false and openWorldHint=true, but the description still adds real value: it discloses the two possible response shapes and the authentication model (webhook must carry the acting user's permissions; personal_webhook changes the acting identity). It does not discuss field validation, required-field discovery, or duplicate handling, which keeps it short of a 5.

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?

Front-loaded statement of the action and return shapes, followed by the one non-obvious operational constraint. Three short sentences, no padding, nothing buried.

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?

Annotations and a full output schema carry most of the burden, and the description covers what neither does: the auth/identity requirement and the dual return shape. Only the absence of guidance on how to discover valid field names for a given entity keeps it from being fully complete.

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 baseline is 3. The description reinforces personal_webhook's role as the identity selector and its classic/modern framing loosely maps to the entity vs entity_type_id choice, but both points are already spelled out in the schema text, so it adds little beyond it.

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 plus resource ("Create a CRM record") and immediately clarifies the return-shape split between the classic and modern APIs. An agent can distinguish this from b24_crm_update, b24_crm_get, or b24_crm_list without opening any schema.

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?

Gives a concrete prerequisite — writing requires a webhook with the acting user's permissions — and says when to pass personal_webhook (to create under a specific user). It never states when to prefer this tool over an update or a different add tool, nor any conditions under which the call should not be used, so usage is implied rather than explicit.

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