Skip to main content
Glama

Adjacent neighbourhoods

dv_neighbours
Read-onlyIdempotent

Find districts adjacent to a given Divar district, including up to six within 3 km, to widen a neighborhood search before passing them to search.

Instructions

Neighbourhoods adjacent to a district, to widen a neighbourhood search to the surrounding area.

districts is Divar's own (often short) list; nearest adds up to 6 districts within 3 km. Pass them as districts to dv_search.

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": {
      "district_id": "<district_id>"
    },
    "name": "dv_neighbours"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityNoتهران
district_idYesDistrict id from dv_districts, e.g. 655.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.3.0
    • removedInput schema / properties / city / description
      Removed value: -"City name or id; several comma-separated, e.g. 'تهران', 'mashhad', 'تهران,کرج'."
  2. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already cover the safety profile (readOnly, idempotent, openWorld, non-destructive), so the bar is lower. The description usefully adds result-shape behaviour that the annotations cannot: `districts` is a short Divar-curated list while `nearest` returns at most 6 districts within 3 km — valuable because there is no output schema. It does not say whether the source district is included in the results or what an empty result looks like.

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?

Three short sentences with the purpose front-loaded and no filler. The second sentence, which introduces `districts` and `nearest` as bare backticked terms without saying they are response fields, is slightly harder to parse than it needs to be.

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?

For a two-parameter read tool with no output schema, the definition is largely sufficient: it explains the intent, the practical follow-up, and the two result sets returned. The remaining gap is the undocumented `city` parameter and the absence of any note on result limits or the source-district inclusion question.

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 50%: `district_id` is documented in the schema (with the pointer to dv_districts), but `city` is never mentioned anywhere in the description, so an agent gets no guidance on when to override the default 'تهران'. Since district IDs may be city-scoped, that omission is meaningful rather than cosmetic.

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 — neighbourhoods adjacent to a given district — and frames the concrete goal of widening a neighbourhood search. It is distinguishable from siblings like dv_nearby and dv_districts by being explicitly about adjacency rather than raw proximity or the district list itself, though it never names those siblings to draw the contrast.

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?

It gives a clear use case ('to widen a neighbourhood search to the surrounding area') and a concrete follow-up chain: pass the results as `districts` to dv_search. What is missing is when NOT to use it — e.g. when to prefer dv_nearby for radius search or dv_districts to enumerate districts — since those alternatives are never mentioned.

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