Skip to main content
Glama

Price trend

dv_price_trend

Records one median asking-price point per day for a narrow Divar search and returns up to 90 points with change_pct to track price trends.

Instructions

The median asking price of a search over the days you have checked it: records one point per day in a local file.

Divar keeps no history: the trend starts with your first call. Returns the last 90 points with change_pct. Use a narrow query.

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

Input Schema

NameRequiredDescriptionDefault
cityNoتهران
pagesNo
queryNo
recordNoStore today's point.
filtersNo
categoryNo
districtsNo
brand_modelNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 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 / 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 / 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'."
    • changedInput schema / properties / record / description
      Previous value: -"Store today's median so later calls can show the trend."New value: +"Store today's point."
  2. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

The annotations mark this as non-read-only and non-idempotent, and the description usefully explains why: each call writes a daily point to a local file, and Divar itself keeps no history. It still leaves open what happens on repeat calls the same day (overwrite, duplicate, or skip) despite idempotentHint=false, and does not say how the local file is stored or reset.

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?

Four short lines, front-loaded with the core concept and the storage side effect, with no filler. The phrasing 'over the days you have checked it' is slightly roundabout 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 an 8-parameter, open-world tool with a free-form nested filters object and no output schema, the description does well to explain the return shape (last 90 points plus change_pct) and the no-history limitation. It falls short on the majority of parameters and on how `pages` affects cost or how filters are formed, which is the main gap.

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 13% across 8 parameters including a free-form nested `filters` object, so the description carries most of the burden. It only touches `query` ('use a narrow query') and implicitly `record`, leaving city, pages, category, districts, brand_model, and the filters shape entirely undocumented.

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 states a specific resource and action: it computes the median asking price for a search and records one point per day to a local file, returning the last 90 points with `change_pct`. That is clearly distinguishable from listing siblings like dv_posts or dv_search, though it never names the closest alternative (e.g. dv_watch) explicitly.

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?

There is one actionable directive, 'Use a narrow query,' and a useful caveat that history starts at the first call, so early results are thin. However, there is no guidance on when to prefer this over dv_watch/dv_market, and no mention that `record: false` can be used for a read-only check without writing a point.

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