Skip to main content
Glama

Find deals

dv_find_deals
Read-onlyIdempotent

Find underpriced Divar ads by comparing listings with the median for the same search and removing suspect bait and junk prices. Use a narrow query and minimum discount to surface scored deals.

Instructions

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

Keeps ads min_discount_pct to 70% below the median (per m2 for property for sale); drops suspect prices and bait, co-op, notice or parking titles. Use a narrow query. Next: dv_post, dv_appraise.

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

Input Schema

NameRequiredDescriptionDefault
cityNoتهران
limitNoMax deals.
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
min_discount_pctNoMinimum percent below the median.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed13 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."
    • removedInput schema / properties / keywords / description
      Removed value: -"Words that must all be in the title."
    • removedInput schema / properties / max_age_hours / description
      Removed value: -"Only ads bumped within this many hours."
    • changedInput schema / properties / min_discount_pct / description
      Previous value: -"Only ads at least this many percent below the median."New value: +"Minimum percent below the median."
    • 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.8/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, open-world), and the description adds genuine behavioral detail beyond them: results are scored, prices are normalized per m2 for property-for-sale, and suspect/bait/co-op/notice/parking listings are dropped. This tells an agent that absence of a result is not evidence of absence of inventory. It would score higher if it mentioned result volume, pagination, or cost of the deep scan.

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?

Two tight sentences with the core concept front-loaded and no filler. The backtick parameter reference and the 'Next:' tail are compact and earn their place, though the first sentence is dense enough to require a second read.

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

Completeness2/5

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

With 16 parameters including a free-form nested `filters` object, no output schema, and 25% coverage, the description is too thin for the tool's complexity. It explains the deal concept but leaves an agent unable to construct filters, understand `recent`, `exclude`, `pages`, or `brand_model`, and it never describes the shape of a 'scored deal' despite having no output schema to fall back on.

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

Parameters5/5

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

Schema coverage is 25%, so the description must compensate, and it does not: it references only `min_discount_pct` and `query`, and even then introduces ambiguity by saying deals are kept up to 70% below median while the schema caps `min_discount_pct` at 60. The nested `filters` object and 12 other parameters receive no explanation anywhere.

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?

The description defines the resource precisely: ads priced well below the median of the same search, scored, with bait and junk removed. That is a meaningfully sharper definition than the name alone and implicitly separates it from dv_cheapest and dv_best_for_budget, though those siblings are never named.

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?

It gives one actionable usage rule ('Use a narrow query') and useful follow-up routing ('Next: dv_post, dv_appraise'). However, it never states when NOT to use this tool or explicitly why an agent would pick it over dv_cheapest, dv_best_for_budget, or dv_search, so the alternative selection is left to inference.

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