inv_receive
Books delivered parts into InvenTree by creating missing part, supplier and manufacturer records, then adding stock items. Run as a dry run first to review the plan before confirming.
Instructions
Book delivered parts into InvenTree. Run with confirm=false first (dry run), show the plan to the user, and only call with confirm=true after they agree.
items: [{"tme_symbol", "mpn", "manufacturer", "name"?, "description", "qty", "location_id"?, "category_id"?, "unit_price"?, "currency"?, "batch"? (e.g. TME order number), "keywords"? , "value"?, "package"?, "kind"?}] Creates the part, the TME supplier part and the manufacturer part when missing (matched by TME symbol, then MPN), then adds a stock item. Needs INVENTREE_ALLOW_WRITE=1. With qty 0 (or no qty) only the part cards are created and no stock is booked. New parts and supplier parts get the TME data attribution in their notes (TME API terms 8.7, 8.8).
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": {
"items": "<items>"
},
"name": "inv_receive"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| confirm | No |