Skip to main content
Glama

Ads near a point

dv_nearby
Read-onlyIdempotent

Locate classified ads on a map around a GPS point, with nearest-first results, coordinates, distance, price chips, and thumbnails for local area browsing.

Instructions

Ads on the map around a GPS point, nearest first, with coordinates, distance, price chips and a thumbnail.

total_in_area is the true count (up to 200 available). Prices are the site's rounded map chips; sale homes add price_per_m2. Next: dv_post.

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": {
      "lat": "<lat>",
      "lon": "<lon>",
      "category": "<category>"
    },
    "name": "dv_nearby"
  }
}

Input Schema

NameRequiredDescriptionDefault
latYesLatitude, e.g. 35.7 (from dv_place_search or dv_districts).
lonYesLongitude, e.g. 51.4.
limitNo
queryNo
filtersNo
categoryYesRequired (the map is empty without one); as in dv_search, e.g. 'apartment-sell'.
radius_mNoMetres.
max_priceNoToman; monthly rent in rent categories.
min_priceNoToman; monthly rent in rent categories.
brand_modelNo
max_depositNoRent deposit (ودیعه), Toman.
min_depositNoRent deposit (ودیعه), Toman.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changedv0.3.0
    • removedInput schema / properties / brand_model / description
      Removed value: -"Vehicles, phones: brand/model, e.g. ['پژو 206']."
    • changedInput schema / properties / category / description
      Previous value: -"Required: the map shows nothing without a category. Slug or Persian name, e.g. 'apartment-sell', 'apartment-rent', 'light'. List them with dv_categories."New value: +"Required (the map is empty without one); as in dv_search, e.g. 'apartment-sell'."
    • 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`."
    • changedInput schema / properties / lat / description
      Previous value: -"Latitude, e.g. 35.7. Get one from dv_place_search or dv_districts."New value: +"Latitude, e.g. 35.7 (from dv_place_search or dv_districts)."
    • removedInput schema / properties / limit / description
      Removed value: -"Max ads in the answer."
    • 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 / query / description
      Removed value: -"Free text in title or description, e.g. 'پراید 111'."
    • changedInput schema / properties / radius_m / description
      Previous value: -"Search radius in metres."New value: +"Metres."
  2. First observedv0.1.0

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world behavior, so the description's job is mostly done. It still adds real value: result ordering (nearest first), the shape of each result (coordinates, distance, price chips, thumbnail), how `total_in_area` relates to the capped result set, and the caveat that prices are rounded map chips with `price_per_m2` only for sale listings.

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?

Front-loaded with the core purpose, then output notes, then the next step — three short segments with no filler. The backtick field names and stray line break make it slightly scruffy but not wasteful.

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?

With 12 parameters, a free-form nested `filters` object and no output schema, the description does well on return-value shape (compensating for the missing output schema). It falls short on the acceptance criteria for `filters` and `brand_model`, and on how `radius_m` interacts with the result count — the agent must inspect the schema for those.

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 sits at 67%, and the description adds essentially nothing about parameters — it never mentions `radius_m`, `limit`, `query`, `filters`, or `brand_model`. The one indirect contribution is explaining that `total_in_area` can exceed the returned page (up to 200), which hints at `limit` semantics but does not define it.

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 names a specific resource and scope: ads on the map around a GPS point, ordered nearest first, with the returned fields listed. 'Around a GPS point' is a distinct operation that separates it from keyword siblings like dv_search, though it never names those siblings 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?

Usage is implied by the geo scoping (use this when the user has coordinates) and the 'Next: dv_post' line gives a useful chaining hint. However, there is no explicit when-not-to-use guidance versus dv_search or dv_neighbours, and nothing tells the agent what to do when no coordinates are available.

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