Skip to main content
Glama

Find cheapest ads

dv_cheapest
Read-onlyIdempotent

Rank Divar search results by price to surface low-cost ads, filtering negotiable, placeholder, absurd, and far-below-median listings; rent categories rank by monthly rent.

Instructions

The cheapest ads of a search, cheapest first. Skips negotiable ads, placeholder or absurd prices and far-below-median outliers.

Divar cannot sort by price: this ranks the newest pages pages (raise it for a wider scan). Rent categories rank by monthly rent. Next: dv_post, dv_compare.

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_cheapest"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityNoتهران
limitNo
pagesNo
queryNo
recentNo
excludeNo
filtersNo
categoryNo
keywordsNo
districtsNo
has_photoNo
max_priceNoToman; monthly rent in rent categories.
min_priceNoToman; monthly rent in rent categories.
brand_modelNo
max_age_hoursNo
include_outliersNoAlso list ads under 10% of the median (usually deposits, parts or bait).
min_realistic_priceNoDrop ads priced below this (Toman).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed15 schema fields changedv0.3.0
    • removedInput schema / properties / brand_model / description
      Removed value: -"Vehicles, phones: brand/model, e.g. ['پژو 206']."
    • removedInput schema / properties / category / description
      Removed value: -"Category slug or Persian name, e.g. 'light' (cars), 'apartment-sell', 'apartment-rent', 'mobile-phones'."
    • removedInput schema / properties / city / description
      Removed value: -"City name or id; several comma-separated, e.g. 'تهران', 'mashhad', 'تهران,کرج'."
    • removedInput schema / properties / districts / description
      Removed value: -"Neighbourhood names or ids in the one city, e.g. ['ونک']."
    • removedInput schema / properties / exclude / description
      Removed value: -"Drop ads whose title has any of these words."
    • removedInput schema / properties / filters / description
      Removed value: -"Other category filters (keys from dv_filters): {'size': {'min': 80, 'max': 120}, 'rooms': ['دو'], 'parking': true}. Unknown keys are returned in `ignored`."
    • removedInput schema / properties / has_photo / description
      Removed value: -"Only ads with photos."
    • changedInput schema / properties / include_outliers / description
      Previous value: -"Also list ads priced under 10% of the scanned median (usually deposits, parts or bait)."New value: +"Also list ads under 10% of the median (usually deposits, parts or bait)."
    • removedInput schema / properties / keywords / description
      Removed value: -"Words that must all be in the title."
    • removedInput schema / properties / limit / description
      Removed value: -"Max ads in the answer."
    • removedInput schema / properties / max_age_hours / description
      Removed value: -"Only ads bumped within this many hours."
    • changedInput schema / properties / min_realistic_price / description
      Previous value: -"Drop ads priced below this many Toman (seller junk prices like 1,000 are already flagged and skipped)."New value: +"Drop ads priced below this (Toman)."
    • removedInput schema / properties / pages / description
      Removed value: -"Result pages to merge, about 25 ads each."
    • removedInput schema / properties / query / description
      Removed value: -"Free text in title or description, e.g. 'پراید 111'."
    • removedInput schema / properties / recent / description
      Removed value: -"Published within '3h', '12h', '1d', '3d' or '7d'."
  2. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), so the description correctly spends its budget elsewhere: it discloses filtering behavior (skips negotiable ads, placeholder/absurd prices, far-below-median outliers) and, crucially, that Divar cannot sort by price so ranking is limited to the newest `pages` pages. That coverage caveat is exactly the kind of non-obvious behavior an agent needs. It stops short of describing the shape of each returned ad.

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?

Three tight sentences: purpose first, then the important ranking caveat, then next steps. No filler. The 'Next: dv_post, dv_compare' fragment is terse to the point of being cryptic but does not waste space.

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

Completeness3/5

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

For a 17-parameter tool with no output schema and 24% schema coverage, the description carries a lot of weight and only partially discharges it — it nails the ranking/filtering contract but leaves most parameters and the return value unexplained. An agent can invoke it with defaults but would guess at the meaning of most optional args.

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

Parameters3/5

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

Schema description coverage is only 24%, so the description is expected to compensate. It does explain `pages` (scan depth of the newest listings) and implicitly the outlier controls via the skipping sentence, and it notes rent categories rank by monthly rent. But city, query, recent, exclude, filters, category, keywords, districts, has_photo, brand_model and max_age_hours remain undocumented in both schema and description.

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

Purpose4/5

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

States a specific verb and resource with ranking semantics: 'cheapest ads of a search, cheapest first.' An agent immediately knows what it returns. However, it does not distinguish itself from the near-identical siblings dv_best_for_budget and dv_find_deals, which is the main ambiguity an agent would face.

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?

Provides workflow chaining ('Next: dv_post, dv_compare') and a tuning hint ('raise pages for a wider scan'), which implies when to use it after a search. It never states when NOT to use it or why to pick it over dv_best_for_budget, dv_find_deals, or dv_search.

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