Create category
create_categoryCreate a catalog category, optionally nested under an existing one, with optional description and per-language translations. The slug is normalized to Latin whatever is sent. The parent must exist in this workspace, and a name already used under the same parent is rejected, so call list_categories first to avoid duplicates. To link marketplace categories send marketplaceCategories ({ prom, rozetka, olx, amazon, google_merchant, etsy } with the id as a string, null to clear): look the ids up with search_marketplace_categories first and never guess them. The format is always checked on write, and against the marketplace while it is connected (OLX and Etsy must be a leaf category; a Google id must exist in the Google taxonomy). Translate only the category's own name and description into each locale — add no facts the user did not give. The result is the created category with its id (use it as categoryId for create_product/update_product) and echoes the operating workspace.
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_category"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The category name in the workspace's base language, up to 120 characters. Must be unique among categories with the same parent. | |
| slug | No | URL segment for the category. Normalized to lowercase Latin letters, digits and hyphens whatever is sent (Cyrillic is transliterated); derived from the name when omitted. | |
| parentId | No | Id of the parent category from list_categories, to nest this one under it; it must exist in this workspace. Omit or send null for a top-level category. | |
| description | No | Prose a storefront shows at the top of the category shelf, in the workspace's base language (up to 4000 characters). Send null to clear it. | |
| translations | No | Category name (and optional description) per locale. Omit to leave existing translations untouched; when sent it REPLACES the whole set, so an empty array removes them all. | |
| googleProductCategory | No | Google Product Taxonomy id or full path for this category (for Google Shopping). Prefer marketplaceCategories.google_merchant, which this field is an alias of; send the Google category in one place only. Separate from the name; send null to clear it. | |
| marketplaceCategories | No | The category's id on each marketplace, keyed by platform. Omit a platform to leave it untouched, send null to clear it. Every value is checked on write (format always; against the marketplace itself while it is connected) — find valid ids with search_marketplace_categories first. |