Create a product
create_productChanges data: adds a product (an item of the organization's catalogue, as its ERP knows it) as the person who connected this app, and records it in the organization's audit log. Use it only when the user asks to add a product (or to sync one from their ERP), and say what you are about to add first. Look it up with list_products (sku for an exact SKU) before creating one: a SKU the catalogue already has, in any case, is refused with an error that names the existing product, and nothing is created, so use that product instead. Only for an organization that keeps a product catalogue. Answers with the product and its id such as "prd_45". To record what a supplier calls it use add_product_supplier_reference; to change it use update_product. Deleting a product is done in Trackberry only.
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": {
"sku": "<sku>"
},
"name": "create_product"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sku | Yes | The product's SKU in the organization's ERP, such as "ABC-1". Case does not matter. | |
| unit | No | The unit the organization counts it in, such as "box". | |
| description | No | What the product is, such as "Hass avocado 4kg". |