30 days free. No credit card. Full access from the moment you connect your site.

Start free trial

List Low Stock

store/list-low-stock lists published products that track stock and are at or below a threshold you choose, including those already at zero.

Read-only. It is the reordering list.

At a glance

Abilitystore/list-low-stock
ToolsetWooCommerce — toolset/woocommerce
GroupWooCommerce › Inventory
RequiresWooCommerce, active on the site
Capabilitymanage_options
SafetyRead-only — changes nothing
RepeatableIdempotent — running it twice leaves the same result
Ships inAcrossAI Abilities Manager 0.0.34 and later

How it works

The threshold is yours rather than the store’s. WooCommerce has its own low-stock setting, but it drives notification emails and is usually set once and forgotten — which makes it a poor answer to “what should we order this week”, where the sensible number depends on how fast the thing sells.

Products that do not track stock are excluded, because they have no number to be low. That includes most virtual and downloadable products and anything set to unlimited.

Zero-stock products are included rather than separated out. They are the most urgent entries on the list, not a different question.

The examination limit caps how many products are inspected, not how many are returned low — worth raising on a large catalogue.

Input

NameTypeRequiredWhat it is
thresholdintegerNoQuantity at or below which a product counts as low.
limitintegerNoHow many products to examine.

What comes back

NameTypeWhat it is
thresholdintegerThe threshold used.
productsarrayThe products at or below it, with their stock levels.
countintegerHow many were found.
successbooleanWhether the call completed.
messagestringA one-line summary of what happened, suitable for showing a human.
error_codestringPresent only on failure — a stable machine-readable reason, such as a missing field, a wrong field type or an unmet confirmation.

Example

Ask your assistant:

What do we need to reorder? Anything with five or fewer left.

It resolves to one call:

{
  "ability": "store/list-low-stock",
  "parameters": {
    "threshold": 5
  }
}

Worth knowing

  • Only products that track stock appear. Unlimited products have no number to be low.
  • Zero-stock products are included.
  • The limit caps how many products are examined, not how many come back.
  • Read-only.

Related abilities


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading