Change a product
update_productChanges data: changes a product's SKU, description or unit, as the person who connected this app, and records it in the organization's audit log. What it replaces is gone, and description: null or unit: null clears it. Use it only when the user asks to change a product, and say what will change before calling it. Only the arguments you send change; the rest stay, and sending the values it already has changes nothing. A new SKU that another product already has is refused with an error naming that product. Only for an organization that keeps a product catalogue. Get the product_id from list_products.
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_id": "<product_id>"
},
"name": "update_product"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sku | No | 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". | |
| product_id | Yes | A product id such as "prd_45", as returned by list_products. | |
| description | No | What the product is, such as "Hass avocado 4kg". |