get_top_items
Identify best-selling products by sales amount, quantity, or gross profit within a date range. Use these results to prioritize high-performing items.
Instructions
Top selling items by sales amount or quantity — uses SMLSVC POST. Aggregates by ItemCode.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_top_items"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topN | No | Default 10 | |
| sortBy | No | NetSalesAmountLC | QuantityInInventoryUoM | GrossProfitLC | |
| toDate | No | ||
| fromDate | No |