pospal_create_product
Creates a test product with auto-generated barcode and first category if not specified.
Instructions
【写】创建测试商品。barcode 为空则自动生成;category_uid 为空则用第一个分类。
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": "pospal_create_product"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| barcode | No | ||
| buy_price | No | 5.00 | |
| sell_price | No | 9.99 | |
| category_uid | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||