Skip to main content
Glama

Update category

update_category
Destructive

Update fields on an existing catalog category by id: name, parent, slug, description, Google category, marketplaceCategories and translations. Provide a patch with at least one field; use list_categories first to find the id and current values. The slug is normalized to Latin. The parent must exist in this workspace and cannot create a loop. Translations REPLACE the whole set when sent (an empty array removes them all) and are left untouched when omitted — translate only the category's own name and description, add no facts. marketplaceCategories ({ prom, rozetka, olx, amazon, google_merchant, etsy }) links marketplace category ids: a string sets one, null clears it, an omitted platform is left untouched. Look 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). The result is the updated category 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": {
      "id": "<id>",
      "patch": "<patch>"
    },
    "name": "update_category"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe category id returned by list_categories.
patchYesThe category fields to update; include at least one changed field.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / patch / 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 / patch / properties / translations / maxItems
      Previous value: -19New value: +20
  2. Changed1 schema field changed
    • addedInput schema / properties / patch / 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 / patch / 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 / patch / 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 flag a destructive, non-read mutation; the description earns credit by explaining exactly what gets destroyed ('Translations REPLACE the whole set when sent (an empty array removes them all)', null clears a platform) and what is left untouched when omitted. It also discloses validation performed on write (slug Latin transliteration, parent existence and loop prevention, leaf-only OLX/Etsy, Google taxonomy existence) and the return shape.

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?

Front-loads verb, resource and field list in the first sentence, then layers constraints — good ordering. It is dense and one long paragraph, and a few clauses duplicate the already-verbose schema descriptions rather than adding new information.

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 two-parameter but deeply nested patch tool with no output schema, the description covers normalization rules, replace-vs-omit semantics, per-platform validation, id lookup guidance and the return value (updated category plus operating workspace). Nothing an agent needs to invoke it correctly is missing.

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

Parameters4/5

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

With 100% schema coverage the baseline is 3, and the description adds real meaning beyond the schema: the parent cannot create a loop, translations must translate only the category's own name/description with 'no facts' added, and marketplace values are not inherited by subcategories except google_merchant. Some of this (leaf requirements, replace-on-send) merely restates the schema's own parameter descriptions.

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?

States a specific verb and resource plus the exact editable fields (name, parent, slug, description, Google category, marketplaceCategories, translations). An agent can distinguish it from create_category, delete_category and update_product without opening any schema.

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

Usage Guidelines4/5

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

Gives clear prerequisites and sequencing: 'use list_categories first to find the id and current values' and 'Look ids up with search_marketplace_categories first and never guess them.' It does not, however, route the agent for the overlapping sibling upsert_category_translation, which is the obvious alternative for single-locale translation edits.

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