stocks
Retrieve KeyCRM inventory rows, movements, inventories, warehouses, totals, and per-offer movement history with pagination and filters for stock-level analysis.
Instructions
Stock (склад): stock rows, movements, inventories, warehouses, stat, history.
Actions: list - stock rows per offer (sku, quantity, in_reserve, available, price) movements - stock movements, paginated movement - one movement by movement_id inventories - movement_id required: inventory lines of that movement warehouses - warehouses (read only here, stock writes are in crm_api) stat - totals: quantity / purchased_price / price, positive vs negative filters - filter bounds for the stock table history - offer_id required: movement history of one offer filters keys are sent as-is, e.g. {"filter[warehouse_id]": 1}.
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": "stocks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| limit | No | ||
| action | No | list | |
| search | No | ||
| filters | No | ||
| offer_id | No | ||
| movement_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |