Stock history and stock-outs
get_stock_historyHow long one SKU has been in stock on one marketplace and what running out cost: days in stock, out of stock, not launched yet and unknown (no snapshot), each stock-out period, the first receipt, units per day on in-stock days only, and an ESTIMATE of sales lost while out of stock. Use it for 'how long has this been selling', 'how many days was it out of stock', 'what did running out cost'.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sku": "<sku>"
},
"name": "get_stock_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sku | Yes | The seller SKU. | |
| days | No | Window in store days, 1-365 (default 90). | |
| account | No | Seller id of the client account (agencies with several accounts on this marketplace). | |
| end_date | No | Custom range end, YYYY-MM-DD (inclusive). | |
| start_date | No | Custom range start, YYYY-MM-DD (inclusive). | |
| marketplace_id | No | Marketplace (inferred when only one is connected). |