MPStats Warehouse Stock
mpstats_warehousesRetrieve per-SKU warehouse stock split for Ozon or Wildberries using MPStats. Get FBS, FBO, per-warehouse breakdown, and last update timestamp in one request.
Instructions
Fetch per-SKU warehouse stock split from MPStats (Ozon or Wildberries).
Returns, per SKU: FBS (seller warehouse) stock count, total FBO (marketplace
warehouse) stock count, the raw per-warehouse FBO entries when MPStats
populates them, and the upstream last_update timestamp.
Requires the MPSTATS_MP_AUTH env var (a paid MPStats account JWT cookie).
Without it the tool returns an auth_missing error.
Return Format
MpStatsWarehousesResponse: {place, days, count, items, meta}. Each item carries sku and stocks {fbs, fbo, fbo_warehouses, last_update}. Missing stock counts are None, never 0.
Error Format
ToolError: BadRequestError on malformed skus or place; AuthMissingError when MPSTATS_MP_AUTH is missing or rejected; RateLimitedError on HTTP 429; TransportDownError on network failures, non-200 responses and HTML blocks; ParserDriftError on a non-JSON or mis-shaped body; NotFoundError when no requested SKU has stock data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| skus | Yes | 1..100 SKU integers (positive). Per-SKU warehouse stock split from MPStats. | |
| place | Yes | Marketplace: 'ozon' or 'wildberries'. Determines which MPStats dataset the SKUs resolve against. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | ||
| meta | No | ||
| count | No | ||
| items | No | ||
| place | No |