Tools Catalog / WooCommerce tools / wc_create_product_variation

wc_create_product_variation tool reference for StifLi Flex MCP

Write
Group Products and variationsCapability edit_products

creates a product variation.

Description

creates a product variation.

What it is for

  • Adding new combinations to a variable product.

Example use case

adding a new size.

Sample prompt

Create a new variation for product ID 410 with size XL, SKU LAMP-XL, and its own price and stock.

Sample response

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

What does wc_create_product_variation do?

creates a product variation.

Does wc_create_product_variation 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_create_product_variation be used safely?

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