save product
save_productStores or revises a single user-approved product with exact name, specs, price, and availability; updates require a matching revision to prevent conflicting overwrites.
Instructions
Store or revise one product only after the user approves the exact name, specs, price, and availability. priceAmount and priceCurrency are the only price an assistant may later state for this product. availability is in_stock, out_of_stock, or quantity. When availability is quantity, quantity is required and is the only stock count an assistant may state. When availability is in_stock or out_of_stock, omit quantity. specs are the label and value pairs the store approved. Use status RETIRED when the user withdraws a product. Updates require productId and expectedRevision from get_store_catalog. A conflicting revision fails without overwriting. An identical retry returns the saved product.
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": {
"storeId": "<storeId>",
"name": "<name>",
"priceAmount": "<priceAmount>",
"priceCurrency": "<priceCurrency>",
"availability": "<availability>"
},
"name": "save_product"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sku | No | ||
| name | Yes | ||
| specs | No | ||
| status | No | ACTIVE | |
| storeId | Yes | ||
| quantity | No | ||
| productId | No | ||
| priceAmount | Yes | ||
| availability | Yes | ||
| priceCurrency | Yes | ||
| expectedRevision | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No |