create_product
Add products to WooCommerce stores by specifying name, type, price, and categories. Supports simple, grouped, external, and variable product types with inventory management.
Instructions
Create a product. Type: simple, grouped, external, variable. Categories: comma-separated IDs.
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": {
"name": "<name>"
},
"name": "create_product"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| product_type | No | simple | |
| regular_price | No | ||
| description | No | ||
| short_description | No | ||
| sku | No | ||
| manage_stock | No | ||
| stock_quantity | No | ||
| categories | No | ||
| status | No | publish |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |