top_selling_items
Rank items by quantity sold or sales amount over today, this week, or a custom date range to identify leading dishes and products.
Instructions
Get the top-selling items for a period, ranked by quantity sold or by sales amount. Answers: What was the best-selling dish today?
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": "top_selling_items"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End date (ISO 8601) for explicit date range | |
| from | No | Start date (ISO 8601) for explicit date range | |
| limit | No | Number of top items to return (1-50) | |
| metric | No | Ranking metric: by quantity sold or by sales amount | quantity |
| period | No | Date preset for the period | |
| store_id | No | Filter by store UUID |