business_newsvendor
Newsvendor optimal order quantity — Single-period inventory decision (perishables, seasonal buys, event stock, print runs). price= and cost= per unit plus demand as mean= (Poisson) or mean= + sd= (normal) or history= past demand list (empirical). Optional salvage= value of leftovers, shortage_penalty= goodwill cost per lost sale, order= to grade your own quantity (NEAR_OPTIMAL/UNDER_ORDERING/OVER_ORDERING). Returns critical ratio, optimal order, safety stock, expected sales/leftover/lost sales, in-stock probability, fill rate, expected profit, value of optimizing vs ordering the mean, expected value of perfect information and a profit sensitivity table. Price: $0.002 USDC (Base, via x402).
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": {
"price": "<price>",
"cost": "<cost>",
"mean": "<mean>"
},
"name": "business_newsvendor"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cost | Yes | 4 | |
| mean | Yes | 100 | |
| price | Yes | 10 |