get_product_health
CROSS-SOURCE PRODUCT HEALTH SCAN — one call that returns per-product reviews + refunds + sales velocity + inventory + a composite 'needs attention' score (0-100). Use this for 'which products need fixing?' / 'what should I look at?' / 'are there any product issues?' / 'which products are performing badly?'. Saves the LLM from stitching get_top_products + get_refunds + get_reviews + get_inventory manually — synthesis is consistent and the composite score is grounded in the same heuristic each time. Returns each product's underlying signals (refund rate, review rating, review count, stock level, units sold, days since last sale) plus a flags array explaining WHY the score is what it is. Sort is by attentionScore descending so the most concerning products come first. Filter with minAttentionScore (default 0, set to 30 to see only flagged products). Default analyses the top 50 products by sales over the last 30 days.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max products to analyse, ordered by recent revenue (default: 50, max: 100). | |
| store | No | Filter to a specific store domain. Omit to query all connected stores. | |
| _offset | No | Pagination offset. If a response includes _pagination.hasMore=true, use _offset to fetch the next page. | |
| endDate | No | End of sales window (YYYY-MM-DD). Defaults to yesterday (last fully-closed day — today is excluded by default to avoid partial-day totals; pass an explicit endDate to include today). | |
| startDate | No | Start of sales window (YYYY-MM-DD). Defaults to 30 days ago. | |
| minAttentionScore | No | Filter to products with attentionScore >= this value (default: 0 = all). Set to 30 to see only products with a flagged signal. |