lot-pick
Choose which inventory lots to pick (FIFO, FEFO, LIFO, fewest lots) — Allocates a demand quantity across up to 200 inventory lots under a stated policy (FIFO by received date, FEFO by expiry, LIFO, or fewest lots), excluding held, expired, short-shelf-life and wrong-location lots, in whole case multiples if asked. For warehouse and order agents. Returns the pick plan, the shortfall and a reason for every excluded lot. A caller asOf date is required (the check never
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": {
"asOf": "<asOf>",
"demand": "<demand>",
"policy": "<policy>",
"lots": "<lots>"
},
"name": "lot-pick"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asOf | Yes | Reference date, YYYY-MM-DD. An expiry date is the last usable day: a lot expiring on asOf has 0 days left. | |
| lots | Yes | At most 200. | |
| demand | Yes | Units wanted (whole units). | |
| policy | Yes | FIFO: oldest received first. FEFO: earliest expiry first. LIFO: newest received first. MIN_LOTS: fewest lots (largest usable first; ties by earlier expiry, then id). | |
| pickMultiple | No | Each lot contributes whole multiples of this case size (default 1). | |
| allowOverpick | No | With pickMultiple, allow the last pick to round the total up to a whole case (default false: leave the remainder as shortfall). | |
| allowedLocations | No | If set, lots elsewhere (or without a location) are excluded. | |
| minShelfLifeDays | No | Exclude lots with fewer than this many days left at asOf (needs expiry on every non-held lot). |