Skip to main content
Glama

NOVA MCP connector for Kommo

List lead chat messages

lead_messages_list
Read-onlyIdempotent

Сообщения клиента в чате сделки. lead_id — id сделки. Это не почта и не примечание. Внутренний чат сделки не читается. Если чат один, сообщения приходят сразу: limit по умолчанию 30, максимум 50. offset 0 — последние, дальше offset + limit, пока has_next. direction incoming — клиент, outgoing — компания. channel — канал как в amo, например telegram или com.wazzup24.max. В lead_messages_send его передают без сокращения. Если чатов несколько, в ответе только chats, и нужен chat_id или channel.

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>"
    },
    "name": "lead_messages_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
offsetNoСколько сообщений пропустить от новых к старым. 0 — последние.
chat_idNoЧат из прошлого ответа. Нужен, когда у сделки несколько чатов.
lead_idYesId сделки.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already cover the read-only/idempotent/non-destructive profile, and the description adds material behavior on top: default limit 30 with max 50, the offset+limit paging loop driven by has_next, and the branch where multi-chat deals return a chat list instead of messages. It also discloses a scope limit (internal deal chat is not read) that no annotation expresses.

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?

The scoping constraints (not mail, not notes, internal chat excluded) are front-loaded and every later sentence carries operational information. It is dense to the point of being run-on, with several clauses chained by commas, but there is little pure filler.

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 read-only list tool with no output schema, the description does the necessary work: it explains the two possible response shapes (messages vs. chats), the pagination termination signal, and the value vocabulary for direction and channel. It does not describe individual message fields, but that gap is minor relative to what it already covers.

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?

It adds real value for limit (default 30) and for chat_id (needed only when a deal has several chats), and explains the paging protocol around offset. However, it discusses 'direction' and 'channel' as if they were inputs, and neither appears in the input schema, which can send an agent looking for parameters that do not exist.

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?

Opens with a specific verb+resource: client messages in a deal chat, keyed by lead_id. It explicitly rules out the two most confusable siblings in prose ("Это не почта и не примечание") and notes that the internal deal chat is not read, so an agent can separate it from mail_messages and notes_list without opening a schema.

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?

Gives concrete conditional guidance: with one chat messages come back immediately, with several chats the response contains only 'chats' and a chat_id or channel is required. It also warns that channel values must be passed unabbreviated as in lead_messages_send. It lacks an explicit 'use X instead when…' routing statement for the read path itself, so it stops just short of a 5.

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