Skip to main content
Glama

Search ads

dv_search
Read-onlyIdempotent

Search Divar ads across one or more cities by category, text, price, and filters. Returns compact newest-first ad cards with Toman prices and cursor paging.

Instructions

Search Divar ads in one or more cities by category, text and filters; compact cards, prices in Toman.

Card fields are described in the server instructions; age_h is hours since the last bump, image comes only with thumbnails, and suspect_price includes 'outlier' (at or under a tenth of the fetched median, 5+ priced ads). Newest first; the first 1-3 rows may be promoted older ads. Continue with next_cursor as cursor. Filters the category lacks come back in ignored; an empty Persian query is retried once with letters folded. Next: dv_post, dv_compare, dv_cheapest, dv_market.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cityNoCity name or id; several comma-separated, e.g. 'تهران', 'mashhad', 'تهران,کرج'.تهران
sortNo'newest' is Divar's own order (default, pages by cursor). 'cheapest' / 'expensive' sort the ads fetched in this call by price (Divar cannot sort by price).newest
limitNoMax ads in the answer.
pagesNoResult pages to merge, about 25 ads each.
queryNoFree text in title or description, e.g. 'پراید 111'.
cursorNo`next_cursor` of the previous call, for older ads.
recentNoPublished within '3h', '12h', '1d', '3d' or '7d'.
excludeNoDrop ads whose title has any of these words.
filtersNoOther category filters (keys from dv_filters): {'size': {'min': 80, 'max': 120}, 'rooms': ['دو'], 'parking': true}. Unknown keys are returned in `ignored`.
categoryNoCategory slug or Persian name, e.g. 'light' (cars), 'apartment-sell', 'apartment-rent', 'mobile-phones'.
keywordsNoWords that must all be in the title.
districtsNoNeighbourhood names or ids in the one city, e.g. ['ونک'].
has_photoNoOnly ads with photos.
max_priceNoToman; monthly rent in rent categories.
min_priceNoToman; monthly rent in rent categories.
thumbnailsNoInclude each ad's thumbnail URL in `image` (about 40 tokens per ad).
brand_modelNoVehicles, phones: brand/model, e.g. ['پژو 206'].
max_depositNoRent categories: deposit (ودیعه) in Toman.
min_depositNoRent categories: deposit (ودیعه) in Toman.
max_age_hoursNoOnly ads bumped within this many hours.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Goes well beyond the readOnly/idempotent/openWorld annotations: it discloses promoted older ads appearing in the first 1-3 rows, that ordering is newest-first, that unsupported category filters are returned in 'ignored', and that an empty Persian query is retried once with folded letters. These are non-obvious runtime behaviors an agent could not infer from annotations or schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core purpose, then a tight second paragraph of behavioral facts. The second paragraph is clause-heavy, but each clause carries distinct information (age_h, image, suspect_price, ordering, cursor, ignored, retry), so little is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 20-parameter tool with no output schema and nested filter objects, the description does the heavy lifting on return-value semantics (age_h units, image gating, suspect_price 'outlier' rule, next_cursor), deferring only the card field list to server instructions. The remaining gap is that it doesn't explain the ignored-filter contract's impact on results or pagination limits with `pages`.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With schema description coverage at 100%, the baseline is 3, but the description adds relational meaning the schema does not: 'image comes only with thumbnails' ties two parameters together, and it clarifies cursor semantics by mapping 'next_cursor' from a prior call into the cursor param. Dense param docs are still carried by the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb+resource+scope: 'Search Divar ads in one or more cities by category, text and filters', plus the output shape ('compact cards, prices in Toman'). This is clearly distinguishable from siblings like dv_count, dv_cheapest, or dv_nearby without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied through the 'Next: dv_post, dv_compare, dv_cheapest, dv_market' follow-up list and the cursor-continuation note, but the description never states when to prefer dv_search over the many overlapping siblings (dv_count, dv_find_deals, dv_place_search) or any when-not conditions. Adequate but leaves the routing decision to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.