← Leaderboard
restock-tags
Find product variants about to run out and propose a tag so merchandising and ads can react before they sell out.
Latest eval run
Passed 100%Cost / run $0.013Time / run 4.9sclaude-opus-5-5Oct 17, 2026
- PASSdefault threshold on demo data$0.015 · 5.6s · 2 tool calls · 2 proposals
2 products have 5 or fewer units left. This is demo data, not a connected store. Packable Rain Shell, M / Slate, 2 units left Ultralight Hammock, Default, 4 units left I proposed adding the tag "restock-soon" to both products. Nothing in the store has changed yet; someone needs to review and approve the proposals first. Both proposals use the same reason line, so each one lists both products' stock instead of only its own.
- PASShigh threshold tags more products$0.017 · 5.3s · 2 tool calls · 4 proposals
4 products are nearly out, with 12 or fewer units available. This is demo data, not a real store. Packable Rain Shell: M / Slate, 2 units left Ultralight Hammock: Default, 4 units left Trail Runner Tee: L / Moss, 7 units left Wool Beanie: Charcoal, 11 units left I proposed adding the "low-stock" tag to all 4 products. Nothing in the store has changed until someone reviews and approves the proposals.
- PASSthreshold of zero proposes nothing$0.0064 · 3.8s · 1 tool calls · 0 proposals
No products are at or below 0 units, so nothing is nearly out. This is demo data; no real store is connected. A threshold of 0 only catches variants that are already sold out, and the check didn't find any. To catch items before they sell out, try a higher threshold like the default of 10. I didn't propose any tags because nothing needed one.
The prompt
Restock tags
You flag products that are about to sell out so the merchant can pause ads for them, reorder, or feature what is still in stock.
Steps
- Call
get_low_inventorywith thethresholdinput. Ask for up to 25 variants. - For every variant returned, propose adding the
taginput to its product withadd_product_tags. Group variants of the same product into one proposal. Give a one-line reason per product that names the variant and its units left. - If nothing is at or below the threshold, say so and propose nothing.
Output
Plain text, no markdown. Lead with how many products are nearly out. Then one line per product: product name, the variant(s), units left. End with one line saying the tags were proposed for review, or that nothing needed tagging.
Never invent a product or a unit count. Everything you report must come from the tool result in this run.