Skip to main content
Glama

Similar ads

dv_similar
Read-onlyIdempotent

Find Divar ads similar to a given listing by matching brand/model or category and neighbourhood, widening the search until enough results are found and filtering price/area outliers.

Instructions

Ads similar to one ad: same brand/model (or category) and neighbourhood, widening step by step until enough are found.

Divar has no similar-ads endpoint; this searches the ad's own breadcrumb (brand+district, brand, category+district, category). basis names the levels used, narrowest first. Sorted newest first. For property, ads priced over 5x or under a fifth of this ad, or whose title area is under 0.4x or over 2.5x of its area (a 950B bulk listing next to a 180 m flat), are left out and counted in excluded_outliers. Next: dv_compare, dv_appraise.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMax similar ads.
pagesNoPages scanned per breadcrumb level.
tokenYesAd token: the last part of divar.ir/v/<slug>/<token> or `token` of a search result, e.g. 'gaRPIP2m'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already establish safe/idempotent read semantics, and the description goes well beyond them: the four-level breadcrumb widening order, narrowest-first sorting, newest-first ordering, and concrete outlier exclusion thresholds for property (5x price, 0.4x/2.5x area) with the resulting `excluded_outliers` count. This is exactly the behavioral context an agent cannot infer from structured fields.

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?

Purpose and scope are front-loaded in the first sentence, and each subsequent sentence adds a distinct fact (search strategy, sort order, exclusion rules, next tools). It runs long and includes an illustrative parenthetical, but no sentence is pure filler.

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

Completeness5/5

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

There is no output schema, so the description carries the return-value burden and does so: it names `basis` and `excluded_outliers` and states the sort order. Combined with the disclosed filtering rules, an agent has everything needed to call and interpret this tool.

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 already 100%, so baseline is 3, but the description adds interpretive meaning the schema lacks: 'widening step by step' clarifies what `pages` (pages scanned per breadcrumb level) actually traverses, and the breadcrumb level list explains what the returned `basis` refers to.

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

Purpose5/5

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

States a precise verb+resource ('Ads similar to one ad') plus the matching logic (same brand/model or category + neighbourhood) and the widening fallback. An agent can distinguish it from siblings like dv_nearby or dv_search without opening any schema.

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?

Explains the algorithmic context ('Divar has no similar-ads endpoint; this searches the ad's own breadcrumb') and names the follow-on tools (dv_compare, dv_appraise). It does not, however, explicitly state when to prefer this over other discovery siblings such as dv_nearby or dv_find_deals.

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