Skip to main content
Glama

woo_update_category

Updates a WooCommerce product category and changes only the specified fields, leaving all other category data unchanged.

Instructions

Update a product category; only the given fields change

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": {
      "site": "<site>",
      "id": "<id>"
    },
    "name": "woo_update_category"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesCategory ID
nameNoCategory name
siteYesSite id (see list_sites)
slugNoSlug
parentNoParent category ID (0 = top level)
image_idNoThumbnail attachment ID (0 removes it)
descriptionNoDescription

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv3.14.0
    • addedInput schema / properties / description / description
      Added value: +"Description"
    • changedInput schema / properties / id / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / image_id / description
      Added value: +"Thumbnail attachment ID (0 removes it)"
    • changedInput schema / properties / image_id / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / name / description
      Added value: +"Category name"
    • addedInput schema / properties / parent / description
      Added value: +"Parent category ID (0 = top level)"
    • changedInput schema / properties / parent / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / slug / description
      Added value: +"Slug"
  2. Changed2 schema fields changedv3.4.0
    • addedInput schema / properties / site
      Added value: +{
      +  "description": "Site id (see list_sites)",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "id"
      -]New value: +[
      +  "site",
      +  "id"
      +]
  3. First observedv2.0.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations present, the description carries the full behavioral burden. It does disclose a real behavioral trait — patch semantics, so unspecified fields are preserved — but says nothing about permission requirements, behavior when the ID does not exist, or validation failures on a mutation tool.

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?

A single short sentence, front-loaded with the action and followed by the key mutation semantic. Efficient, though extremely terse for a seven-parameter mutation tool.

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

Completeness3/5

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

The schema is fully documented, so an agent can construct the call. However, for a mutation tool with no annotations and no output schema, the definition leaves out permission/error behavior and does not indicate what the response contains or whether partial-update semantics apply to nested data.

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 every parameter including the non-obvious sentinels ('0 = top level', '0 removes it') is already documented in the schema. The description adds no further parameter meaning such as how 'parent' interacts with existing hierarchy, so the baseline 3 applies.

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

Purpose4/5

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

The description gives a specific verb and resource ('Update a product category'), which is unambiguous on its own. It does not name the closely related siblings (wp_update_category, woo_create_category) to draw the boundary, so it stops short of a 5.

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

Usage Guidelines3/5

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

'Update' plus 'only the given fields change' implies the tool applies to existing categories and supports partial updates, which is useful inference. There is no explicit statement about when to prefer it over wp_update_category or what preconditions (existing ID, permissions) must hold.

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

Deploy Server

Other Tools