Skip to main content
Glama

List cities

list_cities
Read-onlyIdempotent

The cities covered, with their slugs and how many listings each category has there. Pass category to see only cities that have it.

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

Input Schema

NameRequiredDescriptionDefault
categoryNoCategory key; URL forms also work

Output Schema

NameRequiredDescriptionDefault
citiesYes
page_urlNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so safety is fully covered. The description adds only the shape of the result (slugs and per-category counts); it says nothing about ordering, pagination, or how the counts are derived.

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?

Two short sentences, front-loaded with what is returned and followed by the filter behavior; nothing is redundant. The elliptical opening ('The cities covered') is slightly vague out of context but costs only a few words.

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 one optional enum parameter, a full output schema, and annotations covering side effects, the description supplies what an agent still needs: the content of the response and the filter's semantics. Ordering and pagination are the only notable omissions.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the schema already documents the enum values and notes that URL forms work. The description adds genuine meaning by explaining the filter's effect: cities without that category are dropped from the result rather than returned with a zero count.

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?

States a specific resource (the cities covered) and the payload it returns (slugs plus per-category listing counts), so an agent knows this is a catalog-listing tool. It does not explicitly contrast itself with siblings like list_categories or search_listings, leaving differentiation to inference.

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?

The only usage guidance is a parameter-level hint: 'Pass category to see only cities that have it.' That tells the agent what the filter does, but not when to prefer this tool over list_categories or search_listings, and there are no exclusions.

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