Create category
hub_create_categoryCreate a product category. Call get_categories FIRST — a second "Drinks" is easy to make and there is no merge. Pass parentId to make it a subcategory; leave it out for a top-level one. The cabinet's own form asks for a description, so ask the merchant for one rather than inventing it. This does NOT move any product into the category — do that with update_product and its categoryIds.
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": "hub_create_category"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Category name as the merchant said it, e.g. "Beverages" | |
| image | No | Image URL, or a Lucide icon reference like "lucide:coffee" | |
| parentId | No | Parent category id from get_categories — a name is rejected. Omit for top level | |
| sortOrder | No | Position among its siblings, lowest first. Omit to leave it unsorted | |
| description | No | Short description shown in the cabinet |