Skip to main content
Glama

Market price statistics

dv_market
Read-onlyIdempotent

Calculate asking-price statistics for a Divar search, including min, median, max, mean, and percentiles, split by district and day to assess market prices.

Instructions

Asking-price statistics of a search: min, p10, p25, median, p75, p90, max, mean; split by district and by day.

A sample of the newest pages pages. Use a narrow query (one model, one area). Next: dv_cheapest, 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_market"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityNoتهران
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_depositNoRent deposit (ودیعه), Toman.
min_depositNoRent deposit (ودیعه), Toman.
max_age_hoursNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed14 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 / max_deposit / description
      Previous value: -"Rent categories: deposit (ودیعه) in Toman."New value: +"Rent deposit (ودیعه), Toman."
    • changedInput schema / properties / min_deposit / description
      Previous value: -"Rent categories: deposit (ودیعه) in Toman."New value: +"Rent deposit (ودیعه), 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.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld, non-destructive, so the safety profile is covered. The description adds genuinely useful behavioral context the annotations cannot: the stats are computed from a SAMPLE of the newest `pages` pages, which tells the agent the numbers are approximate and recency-biased. It does not mention latency or cost of fetching multiple pages, but the sampling caveat is the important disclosure.

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

Conciseness5/5

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

Front-loads the payload (what statistics are returned) in the first clause, then the sampling caveat, then the usage constraint, then the hand-off. No filler sentences; the telegraphic 'Next: ...' style is efficient given the sibling list.

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?

The description usefully compensates for the absence of an output schema by enumerating the returned statistics. But for a 16-parameter, nested-object tool, most parameters and their interactions (filters vs. top-level filters like districts/has_photo) are unexplained, and the default city value is never surfaced in prose.

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

Parameters2/5

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

Schema description coverage is only 25% across 16 parameters, so the description must carry the burden and largely does not. It clarifies `pages` (sample of the newest N pages) and advises narrowing `query`, but city (which defaults to Tehran), category, filters, recent, exclude, brand_model, districts, and max_age_hours get no explanation anywhere. Two of sixteen parameters explained is thin compensation for a 25% coverage gap.

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?

Names the specific computation ('asking-price statistics of a search') and enumerates the exact output statistics (min, p10, p25, median, p75, p90, max, mean) plus the two axes of the split (by district, by day). An agent knows immediately this is a distribution/quantile summary, not a listing or a trend series. It stops short of explicitly distinguishing itself from dv_price_trend or dv_count, which are the nearest siblings an agent could confuse it with.

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 constraint ('Use a narrow query (one model, one area)') and routes forward to the next step ('Next: dv_cheapest, dv_appraise'). It never states when NOT to use this tool, e.g. whether dv_price_trend should be preferred for time-series questions, so a sibling-selection gap remains.

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