MCP Control
Склад · Чтение

Склад · Просмотр · Остатки

inventory_get_stock
Посылки на упаковочном столе

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

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

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

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

Read posted stock from canonical product_stock through the existing get_product_stock_pairs RPC. Use product IDs from catalog_search_products and a location ID from company_list_locations. Optionally supply storageIds from inventory_list_storages to total selected warehouses within that location; omit to use all its storages. Quantities are totals across the selected storages, not a per-warehouse breakdown. This is the current POS posted balance, which may be negative; it excludes unposted historical ledger rows and does not subtract open-order reservations or verify a physical count. Returns one quantity per distinct requested product and makes no changes.

Параметры запроса
productIds
Exact product identifiers to calculate, at most 50. Repeated identifiers are calculated once. обязательно по схеме · array · до элементов 50
locationId
Идентификатор точки из текущего подключения. обязательно по схеме · string · до символов 128
storageIds
Optional nonempty list of 1 to 50 exact storage IDs from inventory_list_storages at the requested location. Repeated IDs are counted once. Every storage must belong to the authenticated company and this location; missing or inaccessible IDs reject the entire calculation. Omit to use all storages at that location. An empty list never means all-company stock. необязательно · array · до элементов 50
Что вернёт команда
locationId
Canonical location used for this calculation. обязательно по схеме · string / null
items
Записи, которые вернул этот запрос. обязательно по схеме · array · до элементов 50
Поля и технические схемы
Входные поля и поля ответа inventory_get_stock
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "productIds": {
      "minItems": 1,
      "maxItems": 50,
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 128,
        "pattern": "^[^\\u0000-\\u001f\\u007f/|]+$",
        "description": "Canonical product identifier returned by search. Copy the exact value; never derive it from a name, phone number, or another ID."
      },
      "description": "Exact product identifiers to calculate, at most 50. Repeated identifiers are calculated once."
    },
    "locationId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[^\\u0000-\\u001f\\u007f/|]+$",
      "description": "Canonical establishment identifier returned by search. Copy the exact value; never derive it from a name, phone number, or another ID."
    },
    "storageIds": {
      "description": "Optional nonempty list of 1 to 50 exact storage IDs from inventory_list_storages at the requested location. Repeated IDs are counted once. Every storage must belong to the authenticated company and this location; missing or inaccessible IDs reject the entire calculation. Omit to use all storages at that location. An empty list never means all-company stock.",
      "minItems": 1,
      "maxItems": 50,
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 128,
        "pattern": "^[^\\u0000-\\u001f\\u007f/|]+$",
        "description": "Canonical inventory storage identifier returned by search. Copy the exact value; never derive it from a name, phone number, or another ID."
      }
    }
  },
  "required": [
    "productIds",
    "locationId"
  ],
  "additionalProperties": false
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "locationId": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 2000
        },
        {
          "type": "null"
        }
      ],
      "description": "Canonical location used for this calculation."
    },
    "items": {
      "maxItems": 50,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "productId": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2000
              },
              {
                "type": "null"
              }
            ],
            "description": "Canonical product identifier."
          },
          "quantity": {
            "type": "number",
            "description": "Posted product_stock quantity summed only across the validated storages in that product unit; may be negative."
          }
        },
        "required": [
          "productId",
          "quantity"
        ],
        "additionalProperties": false
      },
      "description": "Complete results for the distinct validated products, in first-requested order."
    }
  },
  "required": [
    "locationId",
    "items"
  ],
  "additionalProperties": false
}