Skip to main content
Glama

Districts

kl_districts
Read-onlyIdempotent

Lists a city’s districts or neighborhoods with IDs for listing searches and slugs for price statistics, so you can target the right area.

Instructions

List the districts or neighborhoods of a city with the ids kl_search_listings takes as region_ids.

Neighborhood rows carry the slug used by kl_price_stats (e.g. tehran-velenjak) and their municipal region.

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": {
      "city_id": "<city_id>"
    },
    "name": "kl_districts"
  }
}

Input Schema

NameRequiredDescriptionDefault
levelNodistrict = municipal regions (منطقه 1..22 in Tehran); neighborhood = محله level.district
limitNoMax rows returned.
queryNoPart of a name in Persian, e.g. 'ولنجک'.
city_idYesCity id from kl_cities (Tehran is 272905).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive, open-world behavior, so the bar is low; the description adds real value by disclosing what rows contain (ids, neighborhood slugs, municipal region) in the absence of an output schema. It does not mention ordering, pagination behavior, or empty-result cases.

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 primary action and scope, then the id/slug handoff. No filler, and the example slug is embedded compactly rather than in a separate expository sentence.

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 4-parameter lookup with no output schema, the description covers the essential return shape and the cross-tool contract with kl_search_listings and kl_price_stats. Minor gaps remain around result ordering and how to obtain a city_id, but the core is present.

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 100%, so level, limit, query, and city_id are already fully documented with defaults, bounds, and Persian examples. The description only obliquely touches semantics by saying neighborhood rows carry slugs and municipal regions, adding marginal meaning beyond the schema baseline.

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 specific verb and resource (list districts/neighborhoods of a city) and immediately clarifies what the returned ids are for (region_ids consumed by kl_search_listings). The second sentence names the neighborhood-level slug and its consumer kl_price_stats, so an agent can distinguish this from kl_cities or kl_neighborhood_prices without opening schemas.

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?

Explicitly describes the downstream usage path: this tool supplies region_ids for kl_search_listings and slugs for kl_price_stats, which is clear when-to-use context. It does not state exclusions (e.g. use kl_cities to find a city_id first) or say when the neighborhood level is preferred over district, leaving some routing to inference.

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