Search products
ab_searchSearch cosmetics, skin, hair and make-up products by keyword and get each match's price, discount, stock and rating. Use it to check if an item is available or what it costs.
Instructions
Search products by keyword: price, discount, stock and rating of each match.
Use first for "price of X" / "do you have X". Matches titles and descriptions, so check titles. out_of_stock_matches counts sold-out matches when none is in stock.
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": {
"query": "<query>"
},
"name": "ab_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| sort | No | 'default' = in-stock first (relevance for a search). | default |
| limit | No | ||
| query | Yes | Product keyword, Persian or English, e.g. 'شامپو ضد شوره'. | |
| max_price | No | Toman, e.g. 2000000. | |
| min_price | No | Toman, e.g. 1000000. | |
| in_stock_only | No | Only orderable items. |