calc_safety_stock
Calculates safety stock using the Z-score method driven by service level. Requires average demand, demand standard deviation, and lead time statistics.
Instructions
Calculates safety stock via the Z-score method (service-level driven). DEPENDS ON: demand/lead-time statistics which would normally come from get_goods_movement_history (currently blocked) — for now, pass these values directly.
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": {
"avgDemandPerPeriod": "<avgDemandPerPeriod>",
"demandStdDev": "<demandStdDev>",
"avgLeadTimePeriods": "<avgLeadTimePeriods>"
},
"name": "calc_safety_stock"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| z | No | ||
| demandStdDev | Yes | ||
| serviceLevel | No | ||
| leadTimeStdDev | No | ||
| avgDemandPerPeriod | Yes | ||
| avgLeadTimePeriods | Yes |