Use case: inventory sync after a stocktake
After a physical count, you often need to reconcile Shopify stock with what's on the shelves. Doing it by hand in the admin is slow and error-prone. Here's the agent-assisted version.
The prompt
From the attached stock count (SKU → quantity), adjust each variant's available
inventory to match. Use `update_inventory_quantity` with `dryRun: true` first and report what will change.
What happens
- The agent matches each SKU to a variant via
list_products(read) — catching typos before anything changes. - For each mismatch it calls
update_inventory_quantitywithdryRun: true, returning a preview of the quantity change. Nothing is written. - You review that preview. This tool's confirmation setting is off by default, so the live call runs unless you turn confirmation on for it in Curated Tools.
bulk_update_inventorysets available quantities for a list of items in one call. Its dry-run returns one would-change diff and does not write. Its confirmation setting is on by default. On Free the live write is refused. If the optional inventory scope is not granted, the preview says so and the live call changes nothing.
The audit trail
Every adjustment is stored with its input, result, and time. The Audit Log page shows the tool, status, time, latency, and client.
Particularly useful for stores with multiple locations: the agent can target a specific location per SKU without you hunting through dropdown menus.