get_top_products
Retrieve top-selling products within a date range, ranked by quantity or revenue. Supports limiting to top N and filtering by sales channel.
Instructions
取得指定時間區間的商品銷售排行榜,依銷量(quantity)或營業額(revenue)排序。
只涵蓋「有賣出」的商品;要找完全沒賣或賣很少的滯銷品請改用 get_slow_movers。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top_n | No | 顯示前 N 名 | |
| channel | No | 通路篩選 | all |
| sort_by | No | 排序依據 | revenue |
| end_date | Yes | 結束日期 YYYY-MM-DD。建議與 start_date 維持較短區間以加快查詢。 | |
| start_date | Yes | 起始日期 YYYY-MM-DD。⚠️ 本工具會逐頁掃描區間內所有訂單,區間越大越慢,請只查實際需要的最小區間(如單週或單月),避免一次查詢過長期間。 |