Skip to main content
Glama

City boundary

dv_boundary
Read-onlyIdempotent

Fetch a city's bounding box and neighbourhood boundaries from Divar GeoJSON, or retrieve a specific district's thinned polygon by name or id for map display and spatial analysis.

Instructions

Neighbourhood borders of a city from Divar's GeoJSON: the city's bounding box, or one neighbourhood's polygon.

Without district: the city box and its neighbourhoods. With it: a thinned GeoJSON Feature ([lon, lat]).

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

Input Schema

NameRequiredDescriptionDefault
cityNoتهران
limitNoMax neighbourhoods in the overview.
districtNoNeighbourhood name or id for its polygon, e.g. 'ونک'.
max_pointsNoMax vertices per ring.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.3.0
    • removedInput schema / properties / city / description
      Removed value: -"City name or id; several comma-separated, e.g. 'تهران', 'mashhad', 'تهران,کرج'."
    • changedInput schema / properties / district / description
      Previous value: -"A neighbourhood name or id (e.g. 'ونک', '315') to get its polygon. Omit for the city's bounding box and its neighbourhoods."New value: +"Neighbourhood name or id for its polygon, e.g. 'ونک'."
    • changedInput schema / properties / limit / description
      Previous value: -"Max neighbourhoods listed in the overview."New value: +"Max neighbourhoods in the overview."
    • changedInput schema / properties / max_points / description
      Previous value: -"Max vertices per polygon ring (the full outline is thinned)."New value: +"Max vertices per ring."
  2. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/openWorld, so the safety profile is covered. The description adds genuinely non-obvious behavior: the polygon is 'thinned' and coordinates are ordered [lon, lat] — a detail that prevents a common lat/lon swap error. It does not mention coordinate system/CRS, payload size, or error behavior for unknown districts.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences, front-loaded with the resource and immediately followed by the mode table. Every clause carries information; no filler or repetition of the title.

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?

There is no output schema, so the description must carry the return shape, and it only partly does — it clarifies the district-mode Feature but leaves the no-district 'city box and its neighbourhoods' structure (FeatureCollection? bbox array? list of polygons?) unspecified. For a geometry-returning tool an agent may need to parse, that is a meaningful 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?

With 75% schema coverage, the baseline is 3; `limit`, `max_points`, and `district` are already documented in the schema. The description adds only the mode-switch meaning of `district` and implicitly ties `limit`/`max_points` to the thinned overview, but says nothing about `city` matching rules (name vs. id, the Persian default) beyond what the schema hints at.

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 concrete resource — Divar GeoJSON neighbourhood borders / city bounding box — which clearly distinguishes it from name-list siblings like dv_districts and dv_neighbours. It never explicitly contrasts itself with those siblings or with dv_place_mapping, so the differentiation is inferential rather than stated.

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?

The 'Without district / With it' construction gives the agent an explicit rule for choosing between overview mode and single-polygon mode, which is the main branch this tool has. It stops short of naming alternatives (e.g. use dv_districts for plain names, dv_locate for geocoding) or stating when not to call it.

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