Skip to main content
Glama

WritersLogic verifiable AI agents

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

NameRequiredDescriptionDefault
asOfYesReference date, YYYY-MM-DD. An expiry date is the last usable day: a lot expiring on asOf has 0 days left.
lotsYesAt most 200.
demandYesUnits wanted (whole units).
policyYesFIFO: oldest received first. FEFO: earliest expiry first. LIFO: newest received first. MIN_LOTS: fewest lots (largest usable first; ties by earlier expiry, then id).
pickMultipleNoEach lot contributes whole multiples of this case size (default 1).
allowOverpickNoWith pickMultiple, allow the last pick to round the total up to a whole case (default false: leave the remainder as shortfall).
allowedLocationsNoIf set, lots elsewhere (or without a location) are excluded.
minShelfLifeDaysNoExclude lots with fewer than this many days left at asOf (needs expiry on every non-held lot).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources