Skip to main content
Glama

MAQAMI Travel

get_data_cities

Read-onlyIdempotent

Overview

Get a list of all cities within a specific country. Perfect for building location dropdowns and city selection interfaces.

When to Use

  • City dropdowns - Populate city selection lists

  • Location filters - Filter hotels by city

  • Geographic data - Get city lists for specific countries

  • Form autocomplete - Build city autocomplete features

What You Get

  • City list - All cities in the specified country

  • City names - Formatted city names ready for display

Quick Start

Provide the countryCode in ISO-2 format (e.g., "US", "GB"). Returns all cities in that country. Use the Get Country List endpoint to get country codes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
timeoutNorequest timeout in seconds
countryCodeYesCountry code in iso-2 format (example: SG)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive, and openWorld, so the safety profile is covered. The description adds the ISO-2 requirement and that all cities for a country are returned, but says nothing about rate limits, result size, ordering, or error behavior.

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

Conciseness3/5

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

Front-loaded and skimmable via headers, but the 'What You Get' bullets ('City list', 'City names') are redundant filler for a simple list endpoint, and the use-case bullets overlap heavily. Not wasteful enough to drop below 3, but not tight either.

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 one-required-parameter read-only list tool with full annotation coverage and no output schema, the description is largely sufficient: it names the input format and the companion endpoint. Missing only minor details like result ordering or volume.

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 documented in the schema itself. The description reinforces ISO-2 format with examples ('US', 'GB') and points to the country-code endpoint, which is mildly useful but largely restates the schema.

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: 'Get a list of all cities within a specific country.' This clearly distinguishes it from siblings like get_data_countries or get_data_places, which cover different geographic resources.

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?

A dedicated 'When to Use' section gives concrete contexts (dropdowns, location filters, autocomplete) and the Quick Start explicitly routes to the country list endpoint to obtain countryCode. It lacks any 'when not to use' or sibling-alternative guidance, which keeps it from a 5.

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