Best and slowest sellers
get_top_itemsBest-selling items by takings (units, takings, orders) for a period, default the last 30 days. With order='worst', items on the menu now that sold least, for menu clean-ups.
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 |
|---|---|---|---|
| to | No | Last day, YYYY-MM-DD, included. Overrides period. | |
| cafe | No | Which café, by name or slug. Only needed when the person has more than one (see list_my_cafes). | |
| from | No | First day, YYYY-MM-DD. Overrides period. | |
| limit | No | How many items, default 10. | |
| order | No | best (default) or worst sellers. | |
| branch | No | One branch (location) by name or id. Leave out for the whole business. | |
| period | No | A named period on the café's clock. Weeks start Monday. |