commerce.create_product
Creates and adds a new product (with optional size/weight/color variants) to an e-commerce website store inventory.
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": {
"siteId": "<siteId>",
"name": "<name>",
"price": "<price>"
},
"name": "commerce.create_product"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Product name (e.g. 'Single Origin Ilam CTC Tea') | |
| tags | No | List of tags | |
| price | Yes | Product regular price in NPR | |
| stock | No | Inventory stock count | |
| images | No | Array of product image URLs | |
| siteId | Yes | MongoDB Site ID | |
| category | No | Product category (e.g. 'Tea', 'Pashmina', 'Handicrafts') | |
| currency | No | Currency code (default 'NPR') | |
| variants | No | List of variant objects with name, price, offerPrice, and stock | |
| offerPrice | No | Optional discounted offer price in NPR | |
| description | No | Product description (Markdown supported) | |
| variantType | No | Type of variants (e.g. 'ram_storage', 'ram', 'storage', 'mobile', 'size', 'color', 'weight', 'flavor', 'custom') |