Skip to main content
Glama

woo_create_product

Create a WooCommerce product by providing site and name, then configure pricing, stock, images, categories, attributes, SKU, and status.

Instructions

Create a WooCommerce product

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_product"
  }
}

Input Schema

NameRequiredDescriptionDefault
skuNoSKU (must be unique)
nameYesProduct name
siteYesSite id (see list_sites)
tagsNoProduct tag IDs
typeNoProduct type (default simple)
imagesNoAttachment IDs; the first is the main image, the rest the gallery
statusNoStatus (default publish)
meta_dataNoCustom meta to set
attributesNoProduct attributes
categoriesNoProduct category IDs
sale_priceNoSale price as decimal string
descriptionNoLong description (HTML)
manage_stockNoTrack stock quantity (default false)
stock_statusNoStock status (default instock)
regular_priceNoRegular price as decimal string, e.g. "19.90"
stock_quantityNoStock quantity (used when manage_stock is true)
short_descriptionNoShort description (HTML)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed38 schema fields changedv3.14.0
    • removedInput schema / properties / attributes / default
      Removed value: -[]
    • addedInput schema / properties / attributes / description
      Added value: +"Product attributes"
    • changedInput schema / properties / attributes / items / additionalProperties
      Previous value: -{}New value: +false
    • addedInput schema / properties / attributes / items / properties
      Added value: +{
      +  "name": {
      +    "description": "Attribute name (custom) or taxonomy (pa_color)",
      +    "type": "string"
      +  },
      +  "options": {
      +    "description": "Option values (default [])",
      +    "items": {
      +      "type": "string"
      +    },
      +    "type": "array"
      +  },
      +  "variation": {
      +    "description": "Used for variations (default false)",
      +    "type": "boolean"
      +  },
      +  "visible": {
      +    "description": "Show on the product page (default true)",
      +    "type": "boolean"
      +  }
      +}
    • addedInput schema / properties / attributes / items / required
      Added value: +[
      +  "name"
      +]
    • removedInput schema / properties / categories / default
      Removed value: -[]
    • addedInput schema / properties / categories / description
      Added value: +"Product category IDs"
    • changedInput schema / properties / categories / items / type
      Previous value: -"number"New value: +"integer"
    • removedInput schema / properties / description / default
      Removed value: -""
    • addedInput schema / properties / description / description
      Added value: +"Long description (HTML)"
    • removedInput schema / properties / images / default
      Removed value: -[]
    • addedInput schema / properties / images / description
      Added value: +"Attachment IDs; the first is the main image, the rest the gallery"
    • changedInput schema / properties / images / items / type
      Previous value: -"number"New value: +"integer"
    • removedInput schema / properties / manage_stock / default
      Removed value: -false
    • addedInput schema / properties / manage_stock / description
      Added value: +"Track stock quantity (default false)"
    • removedInput schema / properties / meta_data / default
      Removed value: -[]
    • addedInput schema / properties / meta_data / description
      Added value: +"Custom meta to set"
    • removedInput schema / properties / regular_price / default
      Removed value: -""
    • addedInput schema / properties / regular_price / description
      Added value: +"Regular price as decimal string, e.g. \"19.90\""
    • removedInput schema / properties / sale_price / default
      Removed value: -""
    • addedInput schema / properties / sale_price / description
      Added value: +"Sale price as decimal string"
    • removedInput schema / properties / short_description / default
      Removed value: -""
    • addedInput schema / properties / short_description / description
      Added value: +"Short description (HTML)"
    • removedInput schema / properties / sku / default
      Removed value: -""
    • addedInput schema / properties / sku / description
      Added value: +"SKU (must be unique)"
    • removedInput schema / properties / status / default
      Removed value: -"publish"
    • addedInput schema / properties / status / description
      Added value: +"Status (default publish)"
    • addedInput schema / properties / status / enum
      Added value: +[
      +  "draft",
      +  "pending",
      +  "private",
      +  "publish"
      +]
    • addedInput schema / properties / stock_quantity / description
      Added value: +"Stock quantity (used when manage_stock is true)"
    • changedInput schema / properties / stock_quantity / type
      Previous value: -"number"New value: +"integer"
    • removedInput schema / properties / stock_status / default
      Removed value: -"instock"
    • addedInput schema / properties / stock_status / description
      Added value: +"Stock status (default instock)"
    • addedInput schema / properties / stock_status / enum
      Added value: +[
      +  "instock",
      +  "outofstock",
      +  "onbackorder"
      +]
    • removedInput schema / properties / tags / default
      Removed value: -[]
    • addedInput schema / properties / tags / description
      Added value: +"Product tag IDs"
    • changedInput schema / properties / tags / items / type
      Previous value: -"number"New value: +"integer"
    • removedInput schema / properties / type / default
      Removed value: -"simple"
    • addedInput schema / properties / type / description
      Added value: +"Product type (default simple)"
  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 provided, so the description carries the full burden of behavioral disclosure, and it only implies a write operation. It says nothing about permission requirements, side effects, whether the product is published or drafted by default, uniqueness constraints on SKU, or error behavior on invalid references.

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 sentence is front-loaded and free of padding, but its brevity is under-specification rather than disciplined concision. There is no structural detail, such as required fields or a note about defaults, that would help an agent invoke it correctly.

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?

For a 17-parameter mutation tool with no annotations and no output schema, the description is far too thin, even though the schema itself is fully documented. An agent gets no signal about required parameters (site, name), defaults, or what the call returns.

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%, with inline documentation including defaults for status, type, stock fields, and image ordering, so the schema already does the heavy lifting. The description adds no meaning beyond that, which is the baseline case for a fully documented schema.

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?

The description gives a verb (Create) and a resource (WooCommerce product), so the action is identifiable. However, it essentially restates the tool name 'woo_create_product' without any scope detail, and it does nothing to distinguish this from sibling creation tools such as woo_create_variation or woo_create_category.

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 guidance on when to use this tool versus alternatives, no prerequisites, and no mention of what must exist beforehand (categories, tags, attributes, attachments referenced by ID). The agent must infer all usage context from the schema alone.

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