Skip to main content
Glama

woo_create_category

Create a WooCommerce product category by providing the site ID and category name, with optional slug, parent category, image, and description.

Instructions

Create a product category

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>",
      "name": "<name>"
    },
    "name": "woo_create_category"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesCategory name
siteYesSite id (see list_sites)
slugNoSlug (default: derived from name)
parentNoParent category ID (default 0 = top level)
image_idNoThumbnail attachment ID
descriptionNoDescription

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changedv3.14.0
    • removedInput schema / properties / description / default
      Removed value: -""
    • addedInput schema / properties / description / description
      Added value: +"Description"
    • removedInput schema / properties / image_id / default
      Removed value: -0
    • addedInput schema / properties / image_id / description
      Added value: +"Thumbnail attachment ID"
    • changedInput schema / properties / image_id / type
      Previous value: -"number"New value: +"integer"
    • removedInput schema / properties / parent / default
      Removed value: -0
    • addedInput schema / properties / parent / description
      Added value: +"Parent category ID (default 0 = top level)"
    • changedInput schema / properties / parent / type
      Previous value: -"number"New value: +"integer"
    • removedInput schema / properties / slug / default
      Removed value: -""
    • addedInput schema / properties / slug / description
      Added value: +"Slug (default: derived from name)"
  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: -[
      -  "name"
      -]New value: +[
      +  "site",
      +  "name"
      +]
  3. First observedv2.0.0

TDQS

C2.5/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it delivers nothing beyond the bare action: no statement about required permissions, whether slug collisions fail or auto-suffix, what happens with an invalid parent, or what the call returns. Only the implicit fact that it mutates state via creation is conveyed.

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

Conciseness3/5

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

The single four-word sentence contains no waste and is trivially front-loaded. Its brevity is not achieved through efficiency but through omission, leaving nothing to structure or prioritize.

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

Completeness2/5

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

This is a six-parameter mutation tool with no annotations and no output schema, and the description covers none of what annotations would normally supply. The schema fully documents the inputs, but an agent still lacks permission requirements, failure modes, and any confirmation of what is created.

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%, and the schema already documents all six parameters including defaults for slug and parent and the reference to list_sites for site. The description adds no meaning beyond that, so the baseline of 3 applies.

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

Purpose3/5

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

"Create a product category" names a verb and a resource, so the basic action is unambiguous. However, it offers no scope or qualifier to distinguish it from nearby siblings such as wp_create_category (post categories) or woo_create_attribute_term, and "product category" is the only implicit differentiator.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no mention of prerequisites (e.g. site must exist, parent ID must be valid), and no pointer to alternatives. The agent must infer entirely from the name that this is the WooCommerce product-category creation path rather than the WordPress or attribute-term paths.

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