Add or change a category
save_categoryAdds a category, optionally inside another one (parentId) — "Power tools" under "Tools" — or, with id, renames one or moves it under another parent (null: top level).
Instructions
Adds a category, optionally inside another one (parentId) — "Power tools" under "Tools" — or, with id, renames one or moves it under another parent (null: top level). To add: name; check list_categories first so you don't add one twice, then use its id as categoryId on create_item, update_item or bulk_update_items. Returns the category with its id.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "save_category"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The category to change, from list_categories; leave out to add a new one | |
| name | No | The category's name: "Power tools", "Kitchen appliances" | |
| parentId | No | The category it's inside, from list_categories; null or left out: top level |