top_products
Ranks up to N products by gross revenue, net revenue, units, or profit within an optional date range, helping users identify which items drive sales.
Instructions
Rank top N products by 'revenue' (gross), 'net_revenue', 'units', or 'profit'.
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_products"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | ||
| metric | No | revenue | |
| end_date | No | ||
| start_date | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |