get_stock_transfer_suggestions
Identify product stock imbalances across warehouses and suggest transferring inventory from overstocked to understocked locations when the difference reaches a minimum threshold.
Instructions
自動產生跨倉庫庫存調撥建議。
【用途】逐商品查詢各倉庫庫存,若同商品在不同倉庫之間的庫存差距過大 (差值 >= min_stock_diff),則建議從庫存多的倉庫調撥到庫存少的倉庫。 僅分析前 30 個商品以避免 API 速率限制。 【呼叫的 Shopline API】
GET /v1/products(商品列表)
GET /v1/products/{product_id}/stocks(各倉庫庫存)
GET /v1/warehouses(倉庫名稱對照) 【回傳結構】dict 含 products_analyzed、suggestions_count、suggestions 列表。
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": "get_stock_transfer_suggestions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| min_stock_diff | No | 倉庫間庫存差距門檻,差距 >= 此值才建議調撥 |