Skip to main content
Glama

Сопоставление полей Битрикс24

manage_quiz_crm_mapping

Сопоставление полей опроса с полями Bitrix24: «пусть телефон из опроса попадает в телефон лида». Задаётся по одной сущности за вызов — lead, contact, company или deal — и заменяет её целиком: чего в переданном наборе нет, того в сопоставлении не останется, остальные сущности вызов не трогает. Прежде чем править, посмотрите справочники и текущее сопоставление через get_quiz_crm_fields: имена полей берутся оттуда, а идентификаторы вопросов — из quiz://{id}/structure. Стадия принадлежит воронке, и несовместимую сохранить нельзя. amoCRM этим инструментом не настраивается: там сопоставление задаётся по воронкам, это manage_quiz_amocrm_mapping.

Input Schema

NameRequiredDescriptionDefault
entityYesЧто настраиваем: lead — лид, contact — контакт, company — компания, deal — сделка.
fieldsNoСопоставление: ключ — имя поля Bitrix24 из справочника (TITLE, PHONE, UF_CRM_…), значение — откуда брать. Набор заменяется целиком.
statusNoСтатус лида (STATUS_ID) из справочника. Только для lead.
enabledNoОтправлять ли эту сущность вообще. Без неё сущность не создаётся. Незаданное значение остаётся прежним.
quiz_idYesID опроса.
title_typeNoОткуда берётся название: Field — из ответа на вопрос, Static — заданный текст.
category_idNoНомер воронки сделки. 0 — воронка по умолчанию. Только для deal.
title_valueNoСамо название: при Field это ID вопроса, при Static — текст. Если название собрать не удалось, Bitrix24 подставит «Lead #номер» или «Deal #номер».
link_to_leadNoПривязать сделку к созданному лиду. Только для deal.
default_stageNoСтадия сделки. У воронки по умолчанию не начинается с «C», у воронки N обязана начинаться с «CN:». Только для deal.
add_id_to_titleNoДописывать номер заявки в название. Только для lead.
company_title_valueNoТо же для названия компании. Для lead и company.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing the central behavior: the mapping for the selected entity is fully replaced («чего в переданном наборе нет, того в сопоставлении не останется») while other entities are untouched, plus the funnel/stage compatibility constraint. It does not mention permission requirements or what a successful response contains, which keeps it from 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core mechanic and replacement semantics, then prerequisites, then the sibling exclusion — a logical order with no filler. It is dense (every clause is a rule), but slightly packed into long sentences, so not a 5.

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 12-parameter, nested-object mutation tool with no output schema, the description covers replacement semantics, entity scoping, prerequisite lookups, stage/funnel validity, and the sibling alternative. Remaining gaps are secondary: interaction with the optional enabled flag and error/response expectations.

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 baseline is 3, but the description adds cross-parameter meaning: field keys must come from the Bitrix24 directory, widget_id values from the quiz structure, and the stage must be compatible with the funnel — a constraint not stated in the schema text for status/default_stage.

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 and resource — mapping survey fields to Bitrix24 fields — with a concrete worked example («пусть телефон из опроса попадает в телефон лида»). Explicitly separates itself from get_quiz_crm_fields (read) and manage_quiz_amocrm_mapping (amoCRM), so an agent can pick the right tool without opening 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?

Names the prerequisite tool (get_quiz_crm_fields) and the resource URI (quiz://{id}/structure) for the IDs, and states the exclusion: amoCRM is configured by manage_quiz_amocrm_mapping instead. It also bounds the call to exactly one entity, which is the key usage constraint.

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