get_top_products
Retrieve best-selling products ranked by units sold with revenue per product, excluding cancelled orders. Use for product sales rankings without writing joins.
Instructions
Get the best-selling products ranked by units sold, with revenue per product. Cancelled orders are excluded. Use this for 'best-selling products' questions instead of writing the order_items→products join yourself.
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_products"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No |