Skip to main content
Glama

b24_im_message_add

Send an instant message to a Bitrix24 chat or user, making it visible to participants and returning the new message ID.

Instructions

Send an IM message to a chat or user (im.message.add).

Visible to chat participants / the recipient. Returns the new message id.

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": {
      "dialog_id": "<dialog_id>",
      "message": "<message>"
    },
    "name": "b24_im_message_add"
  }
}

Input Schema

NameRequiredDescriptionDefault
messageYesMessage text (BB-code supported).
dialog_idYesTarget dialog: a chat id like 'chat123', or a numeric user id (as string) for a private message, e.g. '123'.
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.
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.8/5.0
Behavior4/5

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

Beyond the annotations, it discloses two useful behaviors: the message becomes visible to chat participants or the recipient, and the call returns the new message id. This is meaningful context for a write operation whose annotations already declare non-idempotent, non-destructive, open-world behavior; it stops short of noting that repeated calls create duplicate messages.

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?

Two short sentences with no filler; the core action is front-loaded and the visibility/return-value facts follow. 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?

For a straightforward send tool with an output schema and full annotation coverage, the description supplies the essentials: action, audience, and return value. Only the absence of guidance on permissions/impersonation trade-offs and duplicate-send behavior keeps it from a 5.

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 dialog_id, message, and both webhook parameters are already well documented in the schema. The description adds no additional parameter meaning, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and resource ('Send an IM message to a chat or user') and reinforces it with the underlying API method (im.message.add). It is clearly a message-creation tool, but it does not explicitly distinguish itself from siblings like b24_im_notify_personal, which an agent could easily confuse it with.

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?

Usage is only implied: the description says the target can be a chat or a user, which tells the agent what the tool is for but not when to prefer it over notify_personal, chat_user_add, or other messaging siblings. No exclusions or preconditions are stated.

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