Count matching ads
dv_countCounts active Divar ads matching a search in one low-cost call, capped at 10,000+; use it to size a market or check whether filters are too narrow before fetching ads.
Instructions
How many active ads match a search, in one cheap call (capped: 10,000 means '10,000 or more').
Use to size a market or to test whether filters are too narrow before fetching ads.
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": "dv_count"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | No | تهران | |
| query | No | ||
| recent | No | ||
| filters | No | ||
| category | No | ||
| districts | No | ||
| has_photo | No | ||
| max_price | No | Toman; monthly rent in rent categories. | |
| min_price | No | Toman; monthly rent in rent categories. | |
| brand_model | No | ||
| max_deposit | No | Rent deposit (ودیعه), Toman. | |
| min_deposit | No | Rent deposit (ودیعه), Toman. |