hermosodocs

set_shopify_inventory

Set or adjust Shopify stock destructive

Area: SHOPIFY: the merchant's own storefront · Publishing & scheduling. Generated from the running MCP server, like the rest of the tool reference.

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

ParameterTypeDescription
mode"set" | "adjust"
namestringwhich quantity: available (default) or on_hand for set
reasonstring
changesrequiredobject[]
changes[].variantIdstring
changes[].skustring
changes[].inventoryItemIdstring
changes[].locationIdrequiredstringthe location id or its exact name
changes[].quantityrequirednumber
changes[].expectednumberthe "now" quantity the preview showed
referenceDocumentUristringwhy it changed, e.g. gid://my-app/PurchaseOrder/PO-12; shown in Shopify's inventory history
confirmboolean

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.

All 728 Publishing & scheduling tools · tools.json