set_merchant_inventory
Set store or region price and stock destructive
Description
SET the price, availability or stock level of one Shopping product at ONE physical store (kind:"local", keyed by storeCode) or in ONE region (kind:"regional", keyed by region). This is what stops a Shopping ad advertising something the nearest store has sold out of. Google's insert REPLACES the whole entry, so this tool reads what is already stored, merges your fields over it, and reports which stored fields it preserved; pass an explicit null to CLEAR one. The API publishes no enum for availability, so it accepts anything and only Google's local inventory data specification says which values actually serve: In stock, Limited availability, On display to order, Out of stock, submitted in English. An unrecognised value is warned about here rather than refused, because refusing would mean inventing an enum Google does not publish. Google states it can take up to 30 minutes before the product itself reflects the change, so a product read straight afterwards can still show the old value and be correct. Free.
Parameters
| Parameter | Type | Description |
|---|---|---|
merchantCenterIdrequired | string | from list_merchant_accounts |
offerIdrequired | string | the product's own id in the feed |
contentLanguagerequired | string | two-letter feed language, e.g. "en" |
feedLabelrequired | string | usually the feed target country, e.g. "US" |
kindrequired | "local" | "regional" | local = one physical store (storeCode), regional = one Google region (region) |
storeCode | string | required for kind:'local' — the store ID from the merchant's Business Profile. Immutable |
region | string | required for kind:'regional' — the Merchant Center region id. Immutable |
availability | string | null | no API enum exists; Google's local spec publishes In stock, Limited availability, On display to order, Out of stock, in English. Anything else is warned about, not refused. null clears it |
price | string | null | "12.99 USD". A bare number is refused because a price with no currency is not a price. null clears it |
salePrice | string | null | "9.99 USD". Google requires salePriceEffectiveDate alongside it if that is set. null clears it |
quantity | number | null | local only. null clears it |
pickupMethod | string | null | local only. Must be sent WITH pickupSla unless the value is "not supported" |
pickupSla | string | null | local only |
instoreProductLocation | string | null | local only, max 20 bytes |
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_merchant_inventory.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"set_merchant_inventory","arguments":{"merchantCenterId":"<string>","offerId":"<string>","contentLanguage":"<string>","feedLabel":"<string>","kind":"<one of the listed values>"}}}
CLI
hermoso call set_merchant_inventory --json '{"merchantCenterId":"<string>","offerId":"<string>","contentLanguage":"<string>","feedLabel":"<string>","kind":"<one of the listed values>"}'
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
list_merchant_inventoryMerchant store and region overrides