update_product
Update an existing product's details in Chirak, including price, stock quantity, name, category, SKU, or barcode, by providing its UUID.
Instructions
Update details of an existing product in Chirak, such as selling price, cost, physical stock quantity, name, category, SKU, or 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": {
"id": "<id>"
},
"name": "update_product"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Product UUID (required). | |
| sku | No | Updated SKU code. | |
| name | No | Updated product name. | |
| unit | No | Updated unit type (e.g. 'Adet', 'Kg'). | |
| barcode | No | Updated barcode string. | |
| category | No | Updated category name. | |
| costPrice | No | Updated wholesale cost price. | |
| minimumStock | No | Updated minimum stock threshold. | |
| sellingPrice | No | Updated retail selling price. | |
| stockQuantity | No | Updated stock quantity. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Result data payload from Chirak API. | |
| success | No | Status of the tool execution. |