ms_get_stock
Retrieve a current stock snapshot grouped by product from a MoySklad account. Filter by stock type (quantity, free stock, reserve, in transit) and optionally include zero-stock lines.
Instructions
Current stock snapshot, grouped by product (fast /report/stock/all/current).
Args: stock_type: quantity | freeStock | reserve | inTransit | stock. Default quantity. include_zero: include zero-stock lines (adds include=zeroLines). Returns JSON: {"ok": true, "data": [ {assortmentId, <stock_type>}, ... ]}. No money in this report, so values are returned as-is (quantities).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "ms_get_stock"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stock_type | No | quantity | |
| include_zero | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |