Skip to main content
Glama

woo_update_product

Update selected WooCommerce product fields such as price, stock, status, descriptions, categories, tags, and metadata without changing product type, images, or attributes.

Instructions

Update a WooCommerce product; only the given fields change (type, images and attributes cannot be changed here)

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

Input Schema

NameRequiredDescriptionDefault
idYesProduct ID
skuNoSKU (must be unique)
nameNoProduct name
siteYesSite id (see list_sites)
tagsNoProduct tag IDs (replaces the current set)
statusNoStatus
meta_dataNoCustom meta to set (merged)
categoriesNoProduct category IDs (replaces the current set)
sale_priceNoSale price as decimal string ("" removes the sale price)
descriptionNoLong description (HTML)
manage_stockNoTrack stock quantity
stock_statusNoStock status
regular_priceNoRegular price as decimal string, e.g. "19.90"
stock_quantityNoStock quantity
short_descriptionNoShort description (HTML)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed19 schema fields changedv3.14.0
    • addedInput schema / properties / categories / description
      Added value: +"Product category IDs (replaces the current set)"
    • changedInput schema / properties / categories / items / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / description / description
      Added value: +"Long description (HTML)"
    • changedInput schema / properties / id / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / manage_stock / description
      Added value: +"Track stock quantity"
    • addedInput schema / properties / meta_data / description
      Added value: +"Custom meta to set (merged)"
    • addedInput schema / properties / name / description
      Added value: +"Product name"
    • addedInput schema / properties / regular_price / description
      Added value: +"Regular price as decimal string, e.g. \"19.90\""
    • addedInput schema / properties / sale_price / description
      Added value: +"Sale price as decimal string (\"\" removes the sale price)"
    • addedInput schema / properties / short_description / description
      Added value: +"Short description (HTML)"
    • addedInput schema / properties / sku / description
      Added value: +"SKU (must be unique)"
    • addedInput schema / properties / status / description
      Added value: +"Status"
    • addedInput schema / properties / status / enum
      Added value: +[
      +  "draft",
      +  "pending",
      +  "private",
      +  "publish"
      +]
    • addedInput schema / properties / stock_quantity / description
      Added value: +"Stock quantity"
    • changedInput schema / properties / stock_quantity / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / stock_status / description
      Added value: +"Stock status"
    • addedInput schema / properties / stock_status / enum
      Added value: +[
      +  "instock",
      +  "outofstock",
      +  "onbackorder"
      +]
    • addedInput schema / properties / tags / description
      Added value: +"Product tag IDs (replaces the current set)"
    • changedInput schema / properties / tags / items / type
      Previous value: -"number"New value: +"integer"
  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

A3.5/5.0
Behavior3/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. It usefully discloses that this is a partial (merge) update rather than a replace, and that type/images/attributes are rejected, but says nothing about required permissions, error behavior on invalid IDs or duplicate SKUs, or whether the call returns the updated product.

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

Conciseness5/5

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

A single front-loaded sentence with the mutation scope first and the restriction in a parenthetical. No filler and nothing wasted.

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?

For a 15-parameter mutation tool with zero annotations and no output schema, the description plus rich schema covers the mechanics but omits permission requirements, failure modes, and whether the response contains the updated entity. Adequate to call correctly, thin on what to expect.

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 coverage is 100% and the schema itself carries the critical semantics (categories/tags "replace the current set", meta_data "merged", empty sale_price removes the sale). The description adds only the excluded-field list, so it neither compensates for nor duplicates much beyond the schema baseline.

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?

States a specific verb and resource ("Update a WooCommerce product") and narrows scope by naming what cannot be changed here (type, images, attributes), which hints at sibling tools. It does not explicitly name which sibling handles those excluded fields, so differentiation is implicit rather than stated.

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?

The phrase "only the given fields change" establishes partial-update semantics and the parenthetical gives a clear boundary on unsupported fields. There is no explicit guidance on when to prefer this over woo_update_variation, woo_bulk_update_stock, or woo_update_product_meta, so the agent must infer alternatives.

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