lot_create
Create a unique lot (batch) for a lot-tracked item and record optional expiry, manufacture date, supplier reference, notes, and status; stock on hand comes from movements, not a quantity field.
Instructions
Create a lot (a batch) against a lot-tracked item. number is 1-60 chars, unique per item case-insensitively (lot_number_taken); the item must be lot-tracked (else tracking_not_applicable). Optional expiryDate, manufacturedDate, supplierReference, notes and an initial status (default open). No quantity column: on-hand is always derived from movements.
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": {
"workspaceId": "<workspaceId>",
"itemId": "<itemId>",
"number": "<number>",
"idempotencyKey": "<idempotencyKey>"
},
"name": "lot_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | ||
| itemId | Yes | ||
| number | Yes | ||
| status | No | ||
| expiryDate | No | ||
| workspaceId | Yes | ||
| idempotencyKey | Yes | ||
| manufacturedDate | No | ||
| supplierReference | No |