Save a category with its products
save_categoryMakes a category, or with id changes that one, so that it has name and exactly product_ids, in that
order. Send the whole list: products left out leave the category, though they stay products. To add or move
one, read the category's products in order with list_category_products and send them back with the change.
Two categories never share a name (category_name_taken), and a product that isn't the business's gets
product_not_found.
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>",
"product_ids": "<product_ids>"
},
"name": "save_category"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The category to change; leave it out to make one. | |
| name | Yes | The category's name. | |
| product_ids | Yes | Every product the category has, in order; an empty list empties it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| name | Yes | ||
| created_at | Yes | ||
| updated_at | Yes | ||
| product_count | Yes |