Skip to main content
Glama

List districts

list_districts
Read-onlyIdempotent

List the districts of a city that have active listings (most cities have none). Use a district slug as district in search_listings.

Input Schema

NameRequiredDescriptionDefault
cityYesRequired. City slug from list_cities.
countryYesRequired. The city's region from list_cities, or its ISO 3166-1 alpha-2 country code (e.g. "DE"), or a city's region code where the site splits a country by state (e.g. "US-CA"). Get valid values from list_countries / list_cities.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive), so the bar is lower. The description still adds a genuinely useful behavioral caveat — 'most cities have none' — warning the agent that empty results are the norm and not an error, plus a hint about what the returned value is used for.

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, zero filler, with the scope qualifier front-loaded and the follow-up usage note second. Everything earns its place.

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 saying what comes back (district slugs with active listings) and it does, plus the empty-result caveat. It stops short of describing the response shape (e.g. slug+name fields), which is a minor gap for a two-parameter list tool.

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% and both parameters are fully documented in the schema (city slug from list_cities, country code/region format). The description only references the output field `district`, not the inputs, so it adds little beyond the schema — baseline 3.

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 of a city) plus a scoping qualifier (only those with active listings). This clearly separates it from list_cities and list_countries, which operate at different geographic levels.

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?

Gives a forward-pointer to the downstream tool: use the returned slug as `district` in search_listings, which tells the agent why it would call this. It lacks an explicit 'do not use this for X, use Y instead' clause, but the sibling set is small and the purpose is unambiguous.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources