Skip to main content
Glama

Create category

create_category

Create 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

NameRequiredDescriptionDefault
nameYesThe category name in the workspace's base language, up to 120 characters. Must be unique among categories with the same parent.
slugNoURL segment for the category. Normalized to lowercase Latin letters, digits and hyphens whatever is sent (Cyrillic is transliterated); derived from the name when omitted.
parentIdNoId 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.
descriptionNoProse 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.
translationsNoCategory 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.
googleProductCategoryNoGoogle 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.
marketplaceCategoriesNoThe 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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / translations / items / properties / locale / enum
      Previous value: -[
      -  "uk",
      -  "ru",
      -  "en",
      -  "pl",
      -  "de",
      -  "it",
      -  "fr",
      -  "es",
      -  "pt",
      -  "nl",
      -  "cs",
      -  "sk",
      -  "hu",
      -  "ro",
      -  "bg",
      -  "lt",
      -  "lv",
      -  "et",
      -  "tr"
      -]New value: +[
      +  "uk",
      +  "ru",
      +  "en",
      +  "pl",
      +  "de",
      +  "it",
      +  "fr",
      +  "es",
      +  "pt",
      +  "nl",
      +  "cs",
      +  "sk",
      +  "hu",
      +  "ro",
      +  "bg",
      +  "lt",
      +  "lv",
      +  "et",
      +  "tr",
      +  "sv"
      +]
    • changedInput schema / properties / translations / maxItems
      Previous value: -19New value: +20
  2. Changed1 schema field changed
    • addedInput schema / properties / marketplaceCategories / properties / etsy
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maxLength": 10,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Etsy seller-taxonomy node id (digits) a listing is created in. Must be a FINAL (leaf) node. Not inherited by subcategories. Send null to clear it."
      +}
  3. Changed2 schema fields changed
    • changedInput schema / properties / googleProductCategory / description
      Previous value: -"Google Product Taxonomy id or full path for this category (for Google Shopping). Separate from the name; send null to clear it."New value: +"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."
    • addedInput schema / properties / marketplaceCategories
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "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.",
      +  "properties": {
      +    "amazon": {
      +      "anyOf": [
      +        {
      +          "maxLength": 60,
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "Amazon product type (e.g. SHOES, HOME_BED_AND_BATH) — the schema Amazon validates every listing of this category against; no Amazon listing can be created without it. Upper-cased on write. While Amazon is connected it is checked against Amazon. Take it from search_marketplace_categories, never guess. Not inherited by subcategories. Send null to clear it."
      +    },
      +    "google_merchant": {
      +      "anyOf": [
      +        {
      +          "maxLength": 255,
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "Google Product Taxonomy entry for Google Shopping — the numeric id (e.g. 187). An exact English taxonomy path is accepted and stored as its id. Take it from search_marketplace_categories, never guess. Subcategories without their own value inherit the nearest parent's. Send null to clear it."
      +    },
      +    "olx": {
      +      "anyOf": [
      +        {
      +          "maxLength": 10,
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "OLX category id (digits) that products of this category publish into. Must be a FINAL (leaf) OLX category — OLX refuses an advert in a parent. While OLX is connected it is checked against OLX and its path is stored for display. Take it from search_marketplace_categories, never guess. Not inherited by subcategories. Send null to clear it."
      +    },
      +    "prom": {
      +      "anyOf": [
      +        {
      +          "maxLength": 40,
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "Prom.ua rubric id (digits) — exported as <portal_category_id>; Prom refuses an offer without it. Prom publishes no category directory: take the id from search_marketplace_categories (rubrics observed on the merchant's own Prom listings) or from the user, never guess. Not inherited by subcategories. Send null to clear it."
      +    },
      +    "rozetka": {
      +      "anyOf": [
      +        {
      +          "maxLength": 40,
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "Rozetka category id (digits) — exported as rz_id, which links this category to Rozetka's tree. Take it from search_marketplace_categories, never guess. Not inherited by subcategories. Send null to clear it."
      +    }
      +  },
      +  "type": "object"
      +}
  4. Added

TDQS

A4.6/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only declare the generic write profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false, openWorldHint=false). The description goes well beyond that with real behavioral facts: slug is normalized to Latin regardless of input, the parent must already exist in this workspace, duplicate names under the same parent are rejected, and marketplace formats are validated always on write but against the live marketplace only while it is connected.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The most important constraint (create + nesting) is front-loaded, followed by validation and lookup guidance in a logical order. It is dense but long for a description, with some repetition of the 'never guess' lookup instruction that the schema already carries.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 7-parameter write tool with a nested object and no output schema, the description closes the important gaps: it describes the return value ('the created category with its id') and how to reuse that id, the workspace echo, and the validation timing. Nothing an agent needs in order to call it correctly appears to be missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents every parameter in depth, including the null-to-clear convention and leaf-category constraints. The description mostly restates that (slug normalization, the marketplaceCategories key set, null-to-clear) and adds only the procedural note to source ids via search_marketplace_categories, which the schema itself also states.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource ('Create a catalog category') and immediately scopes it ('optionally nested under an existing one, with optional description and per-language translations'), which is enough to separate it from update_category and get_category without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives explicit preconditions and routing: 'call list_categories first to avoid duplicates' and 'look the ids up with search_marketplace_categories first and never guess them'. It also names the downstream consumer of the returned id (create_product/update_product), so the agent knows both when to call it and what to do with the result.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources