Skip to main content
Glama

Find deals

dv_find_deals
Read-onlyIdempotent

Find underpriced Divar ads by comparing prices to the local median, removing bait and placeholder listings, and returning scored deals.

Instructions

Ads priced well below the median of the same search, without a budget: scored deals, with bait and junk prices removed.

Scans the newest pages pages and keeps ads min_discount_pct to 70% below the median (price per m2 for property for sale). Left out: suspect and placeholder prices, ads under 20% of the median (deposits, parts, bait), bait or co-op titles (وامدار, قدرالسهم, اقساط, پیش‌فروش...; unless you ask for the word) and notice / parking titles. Use a narrow query or filters: the median of a mixed category means nothing. Asking prices only. Next: dv_post, dv_appraise, dv_compare.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cityNoCity name or id; several comma-separated, e.g. 'تهران', 'mashhad', 'تهران,کرج'.تهران
limitNoMax deals.
pagesNoResult pages to merge, about 25 ads each.
queryNoFree text in title or description, e.g. 'پراید 111'.
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.
brand_modelNoVehicles, phones: brand/model, e.g. ['پژو 206'].
max_age_hoursNoOnly ads bumped within this many hours.
min_discount_pctNoOnly ads at least this many percent below the median.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the read-only/idempotent annotations, it discloses the filtering logic in detail: median basis is price per m2 for sale, ads under 20% of median, suspect/placeholder prices, bait/co-op titles, notice/parking titles are dropped, and "Asking prices only". This is genuinely useful behavioral context an agent cannot infer from the 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 definition, then the exclusion rules, then guidance — no filler sentences. It is dense and telegraphic (Persian keyword lists, backtick references), but every clause carries operational information.

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 16-parameter discovery tool with nested `filters` and no output schema, it covers the essentials: median semantics, exclusion rules, and narrow-query guidance. It does not explain the shape of the returned "scored deals" (no output schema exists) or the apparent gap between `min_discount_pct` max of 60 and the stated 70% floor.

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?

Schema coverage is 100%, so the baseline is 3. The description adds meaning beyond the schema by explaining what `min_discount_pct` is measured against (median, up to 70% below) and by advising that `query`/`filters` must be narrow for the median to be meaningful.

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?

Specific verb and resource: it finds ads priced below the median, explicitly "without a budget", which implicitly separates it from dv_best_for_budget and dv_cheapest. The scope (scored deals, bait/junk removed) is clear. It does not explicitly contrast itself with dv_search or dv_cheapest, so sibling differentiation is partial.

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

Usage Guidelines4/5

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

Gives a concrete usage rule: "Use a narrow query or filters: the median of a mixed category means nothing", plus a workflow pointer ("Next: dv_post, dv_appraise, dv_compare"). It states the condition that makes results meaningful but does not say when to pick this over the other deal-hunting siblings.

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