Skip to main content
Glama

woo_update_product_meta

Update product meta key-value pairs, including regular price, sale price, stock, stock status, and SKU, to adjust WooCommerce product details.

Instructions

Update product meta data (merged; _regular_price, _sale_price, _stock, _stock_status, _sku go through the product setters)

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

Input Schema

NameRequiredDescriptionDefault
idYesProduct ID
metaYesMeta key-value pairs
siteYesSite id (see list_sites)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv3.14.0
    • changedInput schema / properties / id / 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",
      -  "meta"
      -]New value: +[
      +  "site",
      +  "id",
      +  "meta"
      +]
  3. First observedv2.0.0

TDQS

B3.3/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It discloses the merge semantics and the setter routing, which is genuinely useful, but says nothing about permissions, whether keys can be removed, what happens on invalid keys, or what the call returns for a mutation on a nested object.

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 front-loaded sentence with the key behavioral fact (merged) placed early and the special-key caveat in a tight parenthetical. No filler, though the parenthetical list is dense and could be slightly clearer about what 'setters' imply.

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 mutation tool with a free-form nested object, zero annotations, and no output schema, the definition covers the essentials but leaves gaps: no failure behavior, no note on how nested meta values are serialized, and no confirmation of what the response contains.

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?

Schema coverage is 100%, so the baseline is 3, but the description goes beyond it by explaining that specific meta keys (_regular_price, _sale_price, _stock, _stock_status, _sku) are handled by product setters rather than written as raw meta. That changes how an agent should populate the generic 'meta' object, which the schema alone cannot convey.

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?

Names a specific verb and resource ('Update product meta data') and adds the non-obvious qualifier 'merged', which tells the agent existing meta is preserved rather than replaced. It does not explicitly differentiate itself from the closely named sibling woo_update_product, so it falls 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?

There is no explicit statement of when to choose this over woo_update_product or woo_get_product_meta. The parenthetical hint that price/stock/sku keys 'go through the product setters' implies this is a viable path for those fields, but the agent must infer it rather than being told.

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