MCP Control
Компания и доступ · Чтение

Каталог · Исключения · Просмотр · Конфигурация

catalog_exceptions_get_configuration
Папки документов

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

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

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

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

Read the effective company-wide exception configuration. A sole row is selected automatically; legacy multiple rows require an explicit key from catalog_exceptions_list. Removed product/category references are filtered in the response only. Read reference lists in bounded pages bound to revision and configurationHash. Reading never writes cache markers.

Параметры запроса
key
Канонический ключ записи из результата чтения. необязательно · object
revision
Текущая версия выбранной записи. необязательно · string
configurationHash
Effective configuration hash from the first page; required for nonzero offsets because referenced catalog records can change independently. необязательно · string
productOffset
Product reference offset. Use nextProductOffset from the preceding page. обязательно по схеме · integer · по умолчанию 0 · минимум 0 · максимум 10000
categoryOffset
Category reference offset. Use nextCategoryOffset from the preceding page. обязательно по схеме · integer · по умолчанию 0 · минимум 0 · максимум 10000
limit
Максимальное число элементов на этой странице. обязательно по схеме · integer · по умолчанию 100 · минимум 1 · максимум 100
Что вернёт команда
state
Whether a configuration was found in this company. обязательно по схеме · string · варианты absent, ready
result
Selected effective configuration, or null when absent. обязательно по схеме · object / null
Поля и технические схемы
Входные поля и поля ответа catalog_exceptions_get_configuration
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "key": {
      "description": "Select one existing configuration when legacy duplicates exist. Omit for the sole configuration.",
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[A-Za-z0-9_~:@+.-]+$",
          "description": "Canonical existing business identifier; never a label or proof of company access."
        }
      },
      "required": [
        "id"
      ],
      "additionalProperties": false
    },
    "revision": {
      "description": "Snapshot revision from the first page; required for nonzero offsets.",
      "type": "string",
      "pattern": "^[a-f0-9]{32}$"
    },
    "configurationHash": {
      "description": "Effective configuration hash from the first page; required for nonzero offsets because referenced catalog records can change independently.",
      "type": "string",
      "pattern": "^[a-f0-9]{64}$"
    },
    "productOffset": {
      "default": 0,
      "description": "Product reference offset. Use nextProductOffset from the preceding page.",
      "type": "integer",
      "minimum": 0,
      "maximum": 10000
    },
    "categoryOffset": {
      "default": 0,
      "description": "Category reference offset. Use nextCategoryOffset from the preceding page.",
      "type": "integer",
      "minimum": 0,
      "maximum": 10000
    },
    "limit": {
      "default": 100,
      "description": "Maximum references returned per list; at most 100 keeps the response bounded.",
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    }
  },
  "required": [
    "productOffset",
    "categoryOffset",
    "limit"
  ],
  "additionalProperties": false
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "state": {
      "type": "string",
      "enum": [
        "absent",
        "ready"
      ],
      "description": "Whether a configuration was found in this company."
    },
    "result": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "key": {
              "type": "object",
              "properties": {
                "id": {
                  "$ref": "#/$defs/_mcp0"
                }
              },
              "required": [
                "id"
              ],
              "additionalProperties": false,
              "description": "Canonical configuration identifier. Company identity is server-resolved."
            },
            "revision": {
              "type": "string",
              "pattern": "^[a-f0-9]{32}$",
              "description": "Current revision at this snapshot or historical save acknowledgment."
            },
            "configuration": {
              "type": "object",
              "properties": {
                "enabled": {
                  "type": "boolean",
                  "description": "Native available value; a stored null is projected as true."
                },
                "productIds": {
                  "maxItems": 100,
                  "type": "array",
                  "items": {
                    "$ref": "#/$defs/_mcp0"
                  },
                  "description": "This page of effective product references. Follow pagination to read every reference; this page is not a complete replacement list unless productCount fits it."
                },
                "categoryIds": {
                  "maxItems": 100,
                  "type": "array",
                  "items": {
                    "$ref": "#/$defs/_mcp0"
                  },
                  "description": "This page of effective category references; stored lists are never rewritten during reads."
                }
              },
              "required": [
                "enabled",
                "productIds",
                "categoryIds"
              ],
              "additionalProperties": false,
              "description": "Native catalog-cleaned exception configuration; no client runtime or complete catalog download is required."
            },
            "configurationHash": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$",
              "description": "Digest of the entire effective configuration, not only this page."
            },
            "pagination": {
              "type": "object",
              "properties": {
                "limit": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 100,
                  "description": "Maximum references included per list in this page."
                },
                "productOffset": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 10000,
                  "description": "Zero-based offset of the returned product page."
                },
                "categoryOffset": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 10000,
                  "description": "Zero-based offset of the returned category page."
                },
                "productCount": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 10000,
                  "description": "Total effective product references in the entire snapshot, including duplicates."
                },
                "categoryCount": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 10000,
                  "description": "Total effective category references in the entire snapshot, including duplicates."
                },
                "productHash": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$",
                  "description": "SHA-256 of the entire ordered effective product identifier list, including duplicates."
                },
                "categoryHash": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$",
                  "description": "SHA-256 of the entire ordered effective category identifier list, including duplicates."
                },
                "nextProductOffset": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 10000
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "Offset for the next product page, or null when complete."
                },
                "nextCategoryOffset": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 10000
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "Offset for the next category page, or null when complete."
                }
              },
              "required": [
                "limit",
                "productOffset",
                "categoryOffset",
                "productCount",
                "categoryCount",
                "productHash",
                "categoryHash",
                "nextProductOffset",
                "nextCategoryOffset"
              ],
              "additionalProperties": false,
              "description": "Counts and hashes cover each complete effective list. Save/recovery acknowledgments always contain the first page with limit=100; get_configuration reads subsequent revision/hash-bound pages."
            },
            "updatedAt": {
              "anyOf": [
                {
                  "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)))$"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Native server update timestamp, or null for legacy records without one."
            }
          },
          "required": [
            "key",
            "revision",
            "configuration",
            "configurationHash",
            "pagination",
            "updatedAt"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ],
      "description": "Selected effective configuration, or null when absent."
    }
  },
  "required": [
    "state",
    "result"
  ],
  "additionalProperties": false,
  "$defs": {
    "_mcp0": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160,
      "pattern": "^[A-Za-z0-9_~:@+.-]+$",
      "description": "Canonical existing business identifier; never a label or proof of company access."
    }
  }
}