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 inventory_adjust with dry_run first and report what will change.
What happens
- The agent matches each SKU to a variant via
inventory_levels_list(read) — catching typos before anything changes. - For each mismatch it calls
inventory_adjustwithdry_run: true, returning a clear summary: "SKU AB-123: 14 → 9". - You review the summary in the confirmation card and approve. No mismatched number slips through because the preview shows every delta.
The audit trail
Every adjustment — input, result, timestamp — lands in the audit log. So if a number looks wrong next month, you can see exactly when it was set and by which agent session.
Particularly useful for stores with multiple locations: the agent can target a specific location per SKU without you hunting through dropdown menus.