update_product
Update an existing product's details, including name, price, currency, stock quantity, and description, by specifying its product ID.
Instructions
Update an existing product by ID
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 | The id of the product to update | |
| name | No | The name of the product | |
| price | No | The price of the product. Price should be in the subunit of the supported currency | |
| currency | No | The currency of the product | |
| quantity | No | Number of products in stock. This is required if unlimited is false. | |
| unlimited | No | Whether the product has an unlimited quantity. Set to true if the product has unlimited stock. Leave as false if the product has limited stock | |
| description | No | The description of the product |