Skip to main content
Glama

Cities

kl_cities
Read-onlyIdempotent

Find the city ID and slug Kilid uses, so you can query listings or districts by city; filter by Persian city or province name and check whether district data exists.

Instructions

Find the city id and slug Kilid uses for a city (needed by kl_search_listings and kl_districts).

Covers every city Kilid lists, grouped by province. has_districts tells whether kl_districts has data.

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": "kl_cities"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax cities returned.
queryNoPart of a city or province name in Persian (e.g. 'کرج', 'گیلان'). Empty lists every city.

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 and open-world, so the safety profile is covered. The description adds real value beyond that by describing the result shape (id, slug, province grouping, has_districts) and the completeness guarantee of the catalog.

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 purpose and its dependency, then the coverage/result qualifier. No filler or repetition of schema fields.

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 no output schema, the description carries the burden of describing returns, and it does so (id, slug, province grouping, has_districts). It is slightly incomplete on pagination behavior, since 'covers every city' sits alongside a default limit of 30 without explanation.

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 description coverage is 100%, so limit and query are already documented with format hints and a Persian example. The description adds no additional meaning about filtering or pagination, so the baseline 3 applies.

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 ('Find the city id and slug Kilid uses for a city') and names the downstream consumers (kl_search_listings, kl_districts), making the tool's role in the catalog unambiguous against siblings.

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 establishes the call order: use this first to resolve a city id/slug before calling kl_search_listings or kl_districts. It also implies the routing rule to kl_districts via has_districts, but never states an explicit 'do not use when' condition.

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