Tools Catalog / WooCommerce tools / wc_set_stock_status

wc_set_stock_status tool reference for StifLi Flex MCP

Write
Group StockCapability edit_products

changes stock status to `instock`, `outofstock`, or `onbackorder`.

Description

changes stock status to `instock`, `outofstock`, or `onbackorder`.

What it is for

  • Marking products as sold out or available.

Example use case

forcing backorder availability.

Sample prompt

Set product ID 410 to onbackorder because the next shipment is already scheduled.

Sample response

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

What does wc_set_stock_status do?

changes stock status to `instock`, `outofstock`, or `onbackorder`.

Does wc_set_stock_status 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_stock_status be used safely?

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