get_category_sales
Summarize sales by product category: revenue, units sold, and product count, filterable by channel and date range.
Instructions
依商品分類(Category)彙總銷售數據:各分類的營業額、銷量、商品數。需交叉 Categories API + Products + Orders。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"start_date": "<start_date>",
"end_date": "<end_date>"
},
"name": "get_category_sales"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channel | No | 通路篩選 | all |
| end_date | Yes | 結束日期 YYYY-MM-DD。建議與 start_date 維持較短區間以加快查詢。 | |
| start_date | Yes | 起始日期 YYYY-MM-DD。⚠️ 本工具會逐頁掃描區間內所有訂單,區間越大越慢,請只查實際需要的最小區間(如單週或單月),避免一次查詢過長期間。 |