---
name: low-stock
description: >-
  Lists variants that will sell out within a given number of days at the recent sales rate, ranked by revenue at risk. Use when the user asks what is running low, what to reorder, or which products are about to sell out.
---

# Low Stock Report

Show me what will run out within [DAYS] days.

## Steps
1. Pull inventory by variant across all locations and units sold per variant for the last 30 days.
2. Compute daily sales rate per variant (units last 30 days divided by 30) and days of cover (units on hand divided by the rate). Ignore variants with zero sales in 30 days.
3. List variants with days of cover under [DAYS], ranked by revenue in the last 30 days, with: product, variant, units on hand, units sold in 30 days, days of cover, and whether inventory tracking is on.
4. Separately list variants already at zero that sold in the last 30 days.

## Output
Two tables: running low, and already out. Then one line with the total 30-day revenue of the running-low group.

Do not adjust inventory or create purchase orders in this skill. If no variants qualify, say so.
