Skip to main content
Glama
amocrm-kommo-mcp

amocrm-kommo-mcp

Изменить сделку

crm_update_lead
Idempotent

Partially update an existing deal in amoCRM/Kommo by sending only changed fields—status, tags, price, custom fields, or responsible manager—to avoid overwriting unchanged CRM data.

Instructions

Частично обновляет существующую сделку: передавайте только поля, которые меняются. Перевод по воронке — status_id (+ pipeline_id при смене воронки), закрыть успешно — status_id 142, проиграно — 143; tags заменяют весь набор тегов; custom_fields — [{field_id, value}]. Возвращает updated и список changed. Без изменяемых полей — ошибка. Новую сделку создаёт crm_create_lead, примечание — crm_add_note. Требует AMOCRM_DOMAIN и AMOCRM_TOKEN; лимит amoCRM 7 запросов/с соблюдается автоматически. Изменяет данные в CRM: покажите пользователю, что будет записано, и получите согласие.

Input Schema

NameRequiredDescriptionDefault
idYesID сделки
nameNoНовое название
tagsNoТеги (заменяют текущие)
priceNoНовый бюджет
status_idNoID этапа воронки (из crm_account); 142 — успешно, 143 — проиграно
pipeline_idNoID воронки (из crm_account)
custom_fieldsNoДоп. поля: [{field_id, value}]; id полей — в карточке сделки или настройках amoCRM
responsible_user_idNoID ответственного менеджера (из crm_account)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changedv1.2.2
    • addedInput schema / properties / custom_fields / items / properties / field_id / description
      Added value: +"ID доп. поля"
    • addedInput schema / properties / custom_fields / items / properties / value / description
      Added value: +"Значение"
    • addedInput schema / properties / id / description
      Added value: +"ID сделки"
    • addedInput schema / properties / name / description
      Added value: +"Новое название"
    • addedInput schema / properties / pipeline_id / description
      Added value: +"ID воронки (из crm_account)"
    • addedInput schema / properties / price / description
      Added value: +"Новый бюджет"
    • addedInput schema / properties / responsible_user_id / description
      Added value: +"ID ответственного менеджера (из crm_account)"
    • addedInput schema / properties / status_id / description
      Added value: +"ID этапа воронки (из crm_account); 142 — успешно, 143 — проиграно"
    • addedInput schema / properties / tags / description
      Added value: +"Теги (заменяют текущие)"
  2. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare the safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=true, openWorldHint=true), yet the description adds real behavioral context beyond them: tags replace the whole set, required env prerequisites (AMOCRM_DOMAIN/AMOCRM_TOKEN), automatic amoCRM rate-limiting at 7 req/s, the returned fields (updated and changed), and the instruction to obtain user consent before writing. This is exactly the extra context annotations cannot convey.

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?

Dense but front-loaded: the partial-update rule leads, then field semantics, then return values, then dependencies and siblings, then the consent warning. Every sentence carries information, though the bulk of clauses makes it heavier than an ideal two-liner.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation tool with no output schema, the description covers what the agent needs: partial-update contract, field migration rules, the shape of the response (updated/changed), auth/rate-limit constraints, error condition, and consent obligation. No critical gap remains.

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 100% so the schema documents each field, but the description still adds cross-field semantics the schema does not encode: pipeline_id is required when switching pipelines, and status_id 142/143 encode won/lost. It largely restates the tags and custom_fields formats already in the schema, so it earns a 4 rather than a 5.

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 opens with a specific verb+resource (частично обновляет существующую сделку) and immediately scopes the operation (только поля, которые меняются). It then explicitly routes to siblings crm_create_lead for creation and crm_add_note for notes, so an agent can separate it from adjacent tools without inspecting schemas.

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?

Explicit when-to-use is given (pass only changed fields) along with a failure condition (без изменяемых полей — ошибка) and named alternatives for the two adjacent operations. The migration semantics for status_id/pipeline_id and the consent requirement give the agent a clear decision procedure.

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