Skip to main content
Glama

NOVA MCP connector for Kommo

Send lead chat message

lead_messages_send

Отправка текста клиенту в чат сделки. Клиент его видит. Это не примечание и не сервисная пометка. lead_id — id сделки, text до 4000 символов. channel — значение из lead_messages_list как есть, например telegram или com.wazzup24.max. chat_id обязателен, если у сделки несколько чатов одного канала. Если чата с клиентом нет, написать первым нельзя. Отказ канала — ошибка, а не message_id. Устаревший чат Wazzup нужно открыть заново через «Написать в WhatsApp».

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": {
      "lead_id": "<lead_id>",
      "text": "<text>"
    },
    "name": "lead_messages_send"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes
channelNoКанал из lead_messages_list как есть: telegram или com.wazzup24.max.
chat_idNoЧат из lead_messages_list, если каналов одного типа несколько.
lead_idYesId сделки.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations only declare the basic profile (write, non-idempotent, non-destructive, closed-world); the description adds that the client actually sees the text, that channel refusal surfaces as an error rather than a message_id, that first contact is impossible without an existing chat, and that stale Wazzup chats must be reopened. These are meaningful consequences and failure modes beyond the structured data. Rate limits and permission requirements are not covered.

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?

Purpose is front-loaded, then parameters, then failure modes, which is a sensible order, and nearly every clause carries a distinct constraint. The telegraphic sentence fragments are dense but sometimes terse to the point of needing a second read; nothing is outright redundant.

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 four-parameter write tool with no output schema, it covers prerequisites, parameter sourcing, the no-existing-chat case, and error semantics. What is missing is what a successful call returns (presumably a message id) and any permission or rate context, but the definition is sufficient to call 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 75% and the schema already documents channel, chat_id, and lead_id, so the description's marginal value is mostly the conditional rule for chat_id (only when multiple chats of one channel exist) and the 4000-character limit on text. The channel sourcing rule ('значение из lead_messages_list как есть') adds a real constraint the schema does not express.

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 first two sentences give a concrete verb+resource ('Отправка текста клиенту в чат сделки') and immediately bound the scope by stating the client sees it and that it is not a note or service mark. That separates it from internal-note style operations and tells the agent what the observable effect is.

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

Usage Guidelines4/5

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

It gives real preconditions: channel must be taken verbatim from lead_messages_list, chat_id is required when a deal has several chats of one channel, and you cannot initiate contact if no client chat exists. It also routes the agent to reopening via 'Написать в WhatsApp' for a stale Wazzup chat. It stops short of an explicit when-not-to-use comparison against mail_send or chat_templates_*.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources