Search ads
sp_searchSearch Sheypoor classified ads by keyword, city, category, price, and attributes to find cars, real estate, goods, jobs, or services; retrieve ad counts and sort results for market research.
Instructions
Search Sheypoor classified ads (cars, real estate, goods, jobs, services) by words, city, category and price.
Call sp_ad with an ad id for details; sp_filters first for attribute filters. price is Toman (null =
negotiable, see price_text); 1,000 is a placeholder, so set min_price when sorting by price. Rentals carry
prices ({رهن deposit, اجاره rent}). nearby and promoted ads may not match your filters. matching is
the real match count; total includes padding. For a median use sp_price_summary.
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": "sp_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | No | City or province slug from sp_cities, e.g. tehran. 'iran' = all Iran. | iran |
| page | No | 24 ads per page. | |
| sort | No | Cars also: km and year orders. | newest |
| limit | No | Max ads. | |
| query | No | Persian words, e.g. پراید. | |
| filters | No | Filters from sp_filters as {name: value}: a<id> option id, mn<id>/mx<id> range ends (mn68101: '1400' = year from). | |
| category | No | Slug from sp_categories (car, mobile-phone) or sp_filters path (car/peugeot/206). Omit for all. | |
| max_price | No | Highest price, Toman. | |
| min_price | No | Lowest price, Toman. | |
| neighbourhoods | No | Neighbourhood ids from sp_filters(area=...), e.g. ['888']. City-level only. |