set_shopify_inventory
Set or adjust Shopify stock destructive
Description
Change stock on the merchant's Shopify store. mode set (quantity becomes the new count) or adjust (quantity is added; negative subtracts). changes: [{ variantId or sku, locationId or the location's name, quantity }], up to 100. name: available (default) or on_hand for set; available, damaged, incoming, quality_control, reserved or safety_stock for adjust. reason: correction (default), received, damaged, shrinkage, restock, cycle_count_available, promotion, safety_stock, other and Shopify's other reasons. 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 the 'now' number, so a sale in between is refused instead of overwritten. Read back. Free.
Parameters
| Parameter | Type | Description |
|---|---|---|
mode | "set" | "adjust" | |
name | string | which quantity: available (default) or on_hand for set |
reason | string | |
changesrequired | object[] | |
changes[].variantId | string | |
changes[].sku | string | |
changes[].inventoryItemId | string | |
changes[].locationIdrequired | string | the location id or its exact name |
changes[].quantityrequired | number | |
changes[].expected | number | the "now" quantity the preview showed |
referenceDocumentUri | string | why it changed, e.g. gid://my-app/PurchaseOrder/PO-12; shown in Shopify's inventory history |
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_shopify_inventory.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"set_shopify_inventory","arguments":{"changes":"<array>"}}}
CLI
hermoso call set_shopify_inventory --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.
Related tools
get_shopify_inventoryGet Shopify stockmanage_shopify_draft_ordersShopify draft orderslist_shopify_locationsList Shopify locationsmanage_shopify_collectionsShopify collectionsrefund_shopify_orderRefund a Shopify ordermanage_shopify_metafieldsShopify metafieldscancel_shopify_orderCancel a Shopify ordermanage_shopify_pagesShopify Online Store pagesfulfill_shopify_orderFulfil a Shopify ordermanage_shopify_redirectsShopify URL redirects