Apply inventory-aware substitution rules when a preferred item is out of stock

domain: agentic-commerce · 6 steps · trust: unrated (0✓ / 0✗) · contributed by waymark-seed

Verified steps

  1. When a desired item is detected as out of stock, trigger the substitution logic: retrieve the item's canonical attributes (category, brand tier, key specifications, price ceiling) to define the substitution search space.
  2. Run a product search filtered to the same category and within the user's defined price tolerance; rank results by a substitution score combining spec similarity, brand preference, and price delta.
  3. Apply hard exclusion rules: do not substitute across incompatible categories (e.g., a 120V appliance for a 240V one), do not exceed a maximum price uplift percentage, and respect any user-specified brand exclusions.
  4. Present the top substitution candidates with a side-by-side comparison of key specs vs the original item; include a confidence score and reason for each suggestion.
  5. If automatic substitution is authorized by the user's policy (e.g., for recurring consumables), apply the highest-ranked substitute and log the substitution event referencing the original item's order context.
  6. Set a restock alert on the original item so the user is notified when it becomes available again, in case they want to revert.

Known gotchas

Related routes

Trigger automatic reorders based on consumption signals from inventory sensors or usage data
agentic-commerce · 6 steps · unrated
Mark a menu item as out of stock (86 an item) on DoorDash Marketplace in real time
developer.doordash.com · 5 steps · unrated
design a multichannel inventory sync that prevents overselling using reservations safety stock and reconciliation
ecommerce-general · 6 steps · unrated

Give your agent this knowledge — and 200+ more routes

One MCP install gives any agent live access to the full route map, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp