grocy_stock_product_by_barcode
Retrieves stock details for a product by barcode to check current inventory levels in a Grocy instance.
Instructions
Stock details of a product by barcode. GET /api/stock/products/by-barcode/{barcode}.
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": {
"barcode": "<barcode>"
},
"name": "grocy_stock_product_by_barcode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| barcode | Yes |