# Hermoso: set_woocommerce_stock · Hermoso developer docs

> Machine-readable twin of https://hermoso.ai/docs/reference/workspace/set_woocommerce_stock/. Generated from the shipped page. Do not edit by hand.
> Full agent guide: https://hermoso.ai/llms.txt · MCP: https://app.hermoso.ai/mcp

[Docs](https://hermoso.ai/docs/) / [Tool reference](https://hermoso.ai/docs/reference/) / [Workspace & account](https://hermoso.ai/docs/reference/workspace/) / set_woocommerce_stock

# `set_woocommerce_stock`

Set or adjust WooCommerce stock destructive

Area: WooCommerce · [Workspace & account](https://hermoso.ai/docs/reference/workspace/). Generated from the running MCP server, like the rest of the [tool reference](https://hermoso.ai/docs/reference/).

## Description

Change stock on the brand's WooCommerce store. mode set (quantity becomes the count) or adjust (quantity is added; negative subtracts). changes: [{ productId, variationId or sku, quantity }], up to 100. Without confirm:true NOTHING changes and the reply shows the count now and after for each: show the user, get a yes, then call again with confirm:true and each change's expected set to its 'now' number, so a sale in between is refused instead of overwritten. An item whose stock is not tracked yet gets tracking turned on at the new count. Read back. Free.

## Parameters

Parameter Type Description

`mode` `"set" | "adjust"` default set

`changes` required `object[]`

`changes[].productId` `string`

`changes[].variationId` `string`

`changes[].sku` `string`

`changes[].quantity` required `number`

`changes[].expected` `number | null` the "now" count the preview showed

`confirm` `boolean`

## Example call

Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and `POST https://app.hermoso.ai/v1/tools/set_woocommerce_stock`.

**MCP** (`tools/call`)

`{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"set_woocommerce_stock","arguments":{"changes":"<array>"}}}`
**CLI**

`hermoso call set_woocommerce_stock --json '{"changes":"<array>"}'`

## Credits

Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See [Credits & costs](https://hermoso.ai/docs/credits/).

## Related tools

- [get_woocommerce_stock](https://hermoso.ai/docs/reference/workspace/get_woocommerce_stock/) Get WooCommerce stock
- [refund_woocommerce_order](https://hermoso.ai/docs/reference/workspace/refund_woocommerce_order/) Refund a WooCommerce order
- [update_woocommerce_order](https://hermoso.ai/docs/reference/workspace/update_woocommerce_order/) Update a WooCommerce order
- [list_woocommerce_orders](https://hermoso.ai/docs/reference/workspace/list_woocommerce_orders/) List WooCommerce orders

[All 143 Workspace & account tools](https://hermoso.ai/docs/reference/workspace/) · [tools.json](https://hermoso.ai/docs/reference/tools.json)
