Skip to main content
Glama
bamwor-dev

bamwor-mcp-server

by bamwor-dev

list_cities_by_country

Retrieve cities from any country with population filters and sorting options. Access 13.4M global cities to find locations by country, minimum population, or alphabetical order.

Instructions

List cities in a specific country, sorted by population or name. Supports minimum population filter. Covers 13.4M cities globally.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
countryYesCountry name or slug (e.g. "brazil", "Japan", "united-states")
min_populationNoMinimum population filter (e.g. 1000000 for cities above 1M)
limitNoMaximum results to return (1-50, default 25)
sortNoSort order: "population" (default, descending) or "name" (ascending)population
Behavior2/5

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

With no annotations provided, the description carries full burden but lacks critical behavioral details. It doesn't disclose whether this is a read-only operation, what authentication might be required, rate limits, pagination behavior (beyond the limit parameter), or what the output format looks like. The mention of '13.4M cities globally' adds some context but insufficient for a mutation tool.

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?

The description is extremely concise - just two sentences that efficiently convey purpose, capabilities, and scope. Every word earns its place with no redundancy or unnecessary elaboration.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with 4 parameters, no annotations, and no output schema, the description is insufficient. It doesn't explain what the tool returns (city objects with what fields?), error conditions, or behavioral constraints. The '13.4M cities' scope hint is helpful but doesn't compensate for missing output and behavioral information.

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 the schema already fully documents all parameters. The description adds minimal value beyond the schema - it mentions sorting and minimum population filter but doesn't provide additional semantic context. Baseline 3 is appropriate when schema does the heavy lifting.

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?

The description clearly states the verb ('List'), resource ('cities'), and scope ('in a specific country'), with specific details about sorting and filtering. It distinguishes from sibling tools like 'search_cities' by emphasizing country-specific listing rather than general search.

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 description implies usage for listing cities within a country with sorting/filtering options, but doesn't explicitly state when to use this tool versus alternatives like 'search_cities' or 'get_country'. No guidance on prerequisites or exclusions is provided.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bamwor-dev/bamwor-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server