add_barcode
Attach a GTIN/EAN barcode to a product. Scanning that code then identifies the product for stock actions, removing the need to type a name.
Instructions
Attach a GTIN/EAN barcode to a product.
Once attached, that code resolves to this product everywhere a tool takes a product argument, so a scanned package can be consumed or restocked without typing a name.
Args: product: Product name or description fragment. barcode: The full GTIN/EAN as printed under the bars.
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": {
"product": "<product>",
"barcode": "<barcode>"
},
"name": "add_barcode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| barcode | Yes | ||
| product | Yes |