Rank products by a spec or value
zm_rankRanks popular products in a category by one numeric spec or value for money, with filters for price, brand, and score to surface suitable matches.
Instructions
Rank a category's popular products by one numeric spec (battery, weight, RAM, brightness) or by value for money.
Use for "phone with the biggest battery under 30 million" or "best value laptop". Only the candidates most popular
matches are ranked, so narrow the filters rather than raising it. Storage is normalised to GB.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"category": "<category>",
"by": "<by>"
},
"name": "zm_rank"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | Yes | Spec to rank by (part of its Persian name, e.g. ظرفیت باتری, وزن) or 'value' for user score per million Toman. | |
| limit | No | Max ranked products. | |
| order | No | high = biggest first. | high |
| query | No | Same as zm_list. | |
| specs | No | Same as zm_list. | |
| brands | No | Brand slugs from zm_filters. | |
| category | Yes | Category slug from zm_categories, e.g. mobile, laptop, vga. | |
| max_price | No | Highest price in Toman. | |
| min_price | No | Lowest price in Toman. | |
| min_score | No | Min user score, whole stars. | |
| candidates | No | Most popular matches to rank (one request per 4). |