MCP Control
Бронирование · Чтение

CRM · Проживание · События

crm_stay_events
Часы и календарь у стойки записи

Попробуйте три запроса

Получить данные
  1. Вы указываетеЛид
  2. ПомощникЧтение
  3. Вы получаетеПоля ответа
Запрос в чат
Для задачи «CRM / Проживание / События» выполни чтение по выбранной записи (лид). Выведи кратко: companyId, результат.
Что искать в ответе
companyId
Поле ответа
result
Результат
Задать параметры
  1. Вы указываетеЛид
  2. ПомощникСверка выбора
  3. Вы получаетеТочный объект
Запрос в чат
Покажи, как получить «CRM / Проживание / События» на учебном примере с leadId = DEMO-101. Объясни, какие ещё данные нужны и как будет выглядеть ответ.
Фрагмент учебных параметров
leadId
DEMO-101
Разобрать ответ
  1. Вы указываетеПолученный ответ
  2. ПомощникРазбор значений
  3. Вы получаетеКраткое пояснение
Запрос в чат
На основании уже полученного ответа «CRM / Проживание / События» объясни companyId, результат. Отметь отсутствующие значения.
Поля для проверки
companyId
Поле ответа
result
Результат
Как работает действие

Это чтение. Выберите запись или задайте фильтры в доступной компании.

Описание разработчика

Read the latest 20 sanitized confirmation failures for this lead with native code/reason, failed node and correlation run ID. truncated=true indicates older events exist. No credentials or guest data are returned.

Параметры запроса
leadId
Native leadId value; use the value and type returned by the corresponding service. обязательно по схеме · string
Что вернёт команда
companyId
Native companyId value; use the value and type returned by the corresponding service. обязательно по схеме · string
result
Native result value; use the value and type returned by the corresponding service. обязательно по схеме · object
Поля и технические схемы
Входные поля и поля ответа crm_stay_events
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "leadId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$",
      "description": "Native leadId value; use the value and type returned by the corresponding service."
    }
  },
  "required": [
    "leadId"
  ],
  "additionalProperties": false
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "companyId": {
      "type": "string",
      "description": "Native companyId value; use the value and type returned by the corresponding service."
    },
    "result": {
      "type": "object",
      "properties": {
        "truncated": {
          "type": "boolean",
          "description": "Native truncated value; use the value and type returned by the corresponding service."
        },
        "items": {
          "maxItems": 20,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "leadId": {
                "type": "string",
                "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$",
                "description": "Native leadId value; use the value and type returned by the corresponding service."
              },
              "code": {
                "type": "string",
                "description": "Native code value; use the value and type returned by the corresponding service."
              },
              "reason": {
                "type": "string",
                "description": "Native reason value; use the value and type returned by the corresponding service."
              },
              "failedNode": {
                "type": "string",
                "description": "Native failedNode value; use the value and type returned by the corresponding service."
              },
              "runId": {
                "type": "string",
                "description": "Native runId value; use the value and type returned by the corresponding service."
              },
              "flowId": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Native flowId value; use the value and type returned by the corresponding service."
              },
              "at": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "description": "Native at value; use the value and type returned by the corresponding service."
              }
            },
            "required": [
              "leadId",
              "code",
              "reason",
              "failedNode",
              "runId",
              "flowId",
              "at"
            ],
            "additionalProperties": false
          },
          "description": "Native items value; use the value and type returned by the corresponding service."
        }
      },
      "required": [
        "truncated",
        "items"
      ],
      "additionalProperties": false,
      "description": "Native result value; use the value and type returned by the corresponding service."
    }
  },
  "required": [
    "companyId",
    "result"
  ],
  "additionalProperties": false
}