Skip to main content
Glama

Similar ads

dv_similar
Read-onlyIdempotent

Find classified ads similar to a given Divar ad by matching brand, model or category and neighbourhood, widening the search step by step until enough comparable listings are found.

Instructions

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

basis names the levels searched, narrowest first. Property far off in price or area is counted in excluded_outliers. Next: dv_compare, dv_appraise.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "token": "<token>"
    },
    "name": "dv_similar"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
pagesNoPages scanned per breadcrumb level.
tokenYesAd token, e.g. 'gaRPIP2m'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.3.0
    • removedInput schema / properties / limit / description
      Removed value: -"Max similar ads."
    • changedInput schema / properties / token / description
      Previous value: -"Ad token: the last part of divar.ir/v/<slug>/<token> or `token` of a search result, e.g. 'gaRPIP2m'."New value: +"Ad token, e.g. 'gaRPIP2m'."
  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 read-only, idempotent, open-world and non-destructive, so the safety profile is covered. The description adds real behavioral context beyond that: the search widens level by level until a threshold is met, `basis` records which levels were used, and far-off properties are diverted into `excluded_outliers` rather than silently dropped. That is meaningful disclosure about how results are produced.

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 plus a next-step pointer; the core behavior is front-loaded with no filler. The closing 'Next: dv_compare, dv_appraise.' is telegraphic enough that it reads as a fragment, but it still earns its space as routing.

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?

With only three simple parameters, no nested objects and no output schema, the definition supplies what an agent needs: what gets matched, how the search escalates, and two key response markers. What an individual ad record contains is left implicit, which is the main remaining gap.

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

Parameters3/5

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

Schema coverage is 67%: `token` has an example and `pages` is explained as 'pages scanned per breadcrumb level' in the schema, while `limit` is undocumented in both places. The description's mention of `basis` and `excluded_outliers` refers to response fields rather than inputs, and its 'widening step by step' language loosely contextualises `pages` and `limit` without defining them, so it hovers at the baseline.

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 gives a concrete verb+resource — 'Ads similar to one ad' — and specifies the matching criteria (same brand/model or category, same neighbourhood) plus the progressive widening. It is clearly distinct from a generic search sibling, though it never names the sibling it competes with (dv_nearby, dv_posts).

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?

'Widening step by step until enough are found' implies when the tool is appropriate (when exact matches are scarce), and 'Next: dv_compare, dv_appraise' gives the follow-on workflow. However there is no explicit statement of when to prefer this over dv_search, dv_nearby, or dv_posts, so the agent must infer.

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