MCP Control
Заказы · Чтение

План закупки

orders_workspace_purchase_plan
Упакованный заказ на стойке

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

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

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

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

Native Order Workspace purchase_plan. Uses the same current company handlers and permissions as order-web.web.app. Read every hash-bound chunk and follow any native pagination. Saved configuration, queued work and provider confirmation are distinct. Recover uncertain writes with orders_workspace_get_operation and the original request ID.

Параметры запроса
locationId
Идентификатор точки из текущего подключения. обязательно по схеме · string
items
Native items value. Resolve existing identifiers and read the current native state before changes. обязательно по схеме · array · до элементов 500
expandRecipes
Expand product recipes using current native stock and procurement requirements. обязательно по схеме · boolean · по умолчанию false
sourceOrderIds
Existing source orders used to deduct coverage from their current purchase requests. необязательно · array · до элементов 50
offset
Смещение из предыдущей страницы или начальное значение из схемы. обязательно по схеме · integer · по умолчанию 0 · минимум 0 · максимум 9007199254740991
limit
Максимальное число элементов на этой странице. обязательно по схеме · integer · по умолчанию 10000 · минимум 1 · максимум 10000
expectedHash
Контрольное значение из предыдущего чтения. необязательно · string
Что вернёт команда
companyId
Verified current native company. обязательно по схеме · string
result
Native operation receipt or hash-bound result chunk. Queued, completed and provider-confirmed states have distinct meanings. обязательно по схеме · object
Поля и технические схемы
Входные поля и поля ответа orders_workspace_purchase_plan
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "locationId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$",
      "description": "Native locationId value. Resolve existing identifiers and read the current native state before changes."
    },
    "items": {
      "minItems": 1,
      "maxItems": 500,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "productId": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$",
            "description": "Native productId value. Resolve existing identifiers and read the current native state before changes."
          },
          "storageId": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$",
            "description": "Native storageId value. Resolve existing identifiers and read the current native state before changes."
          },
          "quantity": {
            "type": "number",
            "exclusiveMinimum": 0,
            "maximum": 10000000,
            "description": "Native quantity value. Resolve existing identifiers and read the current native state before changes."
          }
        },
        "required": [
          "productId",
          "storageId",
          "quantity"
        ],
        "additionalProperties": false
      },
      "description": "Native items value. Resolve existing identifiers and read the current native state before changes."
    },
    "expandRecipes": {
      "default": false,
      "description": "Expand product recipes using current native stock and procurement requirements.",
      "type": "boolean"
    },
    "sourceOrderIds": {
      "description": "Existing source orders used to deduct coverage from their current purchase requests.",
      "maxItems": 50,
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$"
      }
    },
    "offset": {
      "default": 0,
      "description": "Native offset value. Resolve existing identifiers and read the current native state before changes.",
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "limit": {
      "default": 10000,
      "description": "Native limit value. Resolve existing identifiers and read the current native state before changes.",
      "type": "integer",
      "minimum": 1,
      "maximum": 10000
    },
    "expectedHash": {
      "description": "Native expectedHash value. Resolve existing identifiers and read the current native state before changes.",
      "type": "string",
      "pattern": "^[a-f0-9]{64}$"
    }
  },
  "required": [
    "locationId",
    "items",
    "expandRecipes",
    "offset",
    "limit"
  ],
  "additionalProperties": false
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "companyId": {
      "type": "string",
      "description": "Verified current native company."
    },
    "result": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "$ref": "#/$defs/__schema0"
      },
      "description": "Native operation receipt or hash-bound result chunk. Queued, completed and provider-confirmed states have distinct meanings."
    }
  },
  "required": [
    "companyId",
    "result"
  ],
  "additionalProperties": false,
  "$defs": {
    "__schema0": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "number"
        },
        {
          "type": "boolean"
        },
        {
          "type": "null"
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema0"
          }
        },
        {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {
            "$ref": "#/$defs/__schema0"
          }
        }
      ]
    }
  }
}