Tools Catalog / WooCommerce tools / wc_set_product_attributes

wc_set_product_attributes tool reference for StifLi Flex MCP

Write
Group Products and variationsCapability edit_products

sets product attributes on a product, supporting both global taxonomy attributes and local/custom attributes.

Description

sets product attributes on a product, supporting both global taxonomy attributes and local/custom attributes.

What it is for

  • Assigning variation-ready attribute sets to variable products.
  • Updating attribute visibility and variation flags in one action.

Example use case

assigning color options.

Sample prompt

Set product ID 410 attributes to include global Color options Red and Blue as variation-enabled and visible.

Sample response

{
  "tool": "wc_set_product_attributes",
  "status": "ok",
  "updated": true
}

What does wc_set_product_attributes do?

sets product attributes on a product, supporting both global taxonomy attributes and local/custom attributes.

Does wc_set_product_attributes modify store data?

Yes. It is a write operation and can create, update, or delete data depending on arguments.

Which capability is commonly required?

It usually runs under controls compatible with edit_products and the active MCP profile.

How should wc_set_product_attributes be used safely?

Enable write confirmations, test in staging first, and keep changelog/rollback enabled.