Skip to main content
Glama

Find a city

find_city
Read-only

Looks up a city name (query, with the region or country when given; limit 1 to 10, default 5) in AstroProcessor's city dataset: candidates, the cities it matches, most populous first, each with its full label, coordinates, time zone and population, or an empty list when nothing matches. A plain name lookup that reads no chart; cities along the user's AstroMap lines are search_astromap_cities'. A city's label is accepted as the place of the other tools. Used when a city name is unclear, or after a tool answered place_ambiguous or place_not_found. Each call counts toward one metered message (unlimited on a paid plan; on the Free plan a daily free message, then credits, as get_balance shows) and toward the account's per-minute and per-hour call limits; a call refused for either returns an error result, runs nothing and charges nothing.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "find_city"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoHow many cities to return, 1 to 10. Default 5.
queryYesREQUIRED. A city name as the user said it, with the region or country when they gave one ("Lisbon Portugal", "Valencia Spain", "Springfield Illinois"); a city name, not coordinates. A name that matches several cities is refused with the candidates (place_ambiguous).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, and the description adds substantial context beyond them: metering (one message per call, free-plan daily message then credits), per-minute/per-hour rate limits, and that a refused call runs nothing and charges nothing. It also discloses result ordering (most populous first) and the empty-list case. Minor gap: it does not say whether results are cached or how ambiguity is surfaced beyond the error name.

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?

Front-loaded with the core action and return shape, then usage, then metering. Dense with parentheticals and a long final sentence on billing/limits, but nearly every clause carries information an agent needs; slight over-packing keeps it from a 5.

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

Completeness5/5

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

No output schema exists, yet the description fully describes the return value (candidates, most populous first, each with label, coordinates, time zone, population, or empty list). Combined with usage triggers and metering behavior, nothing an agent needs to call it correctly is missing.

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%, so the baseline is 3, but the description adds real meaning: query should include region/country when the user gave one, limit is 1–10 with default 5, and a returned label is accepted as the place argument of other tools. That cross-tool linkage is not in 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 ("Looks up a city name ... in AstroProcessor's city dataset") and explicitly contrasts with the sibling search_astromap_cities for cities along AstroMap lines. An agent can distinguish it from siblings without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-to-use conditions ("Used when a city name is unclear, or after a tool answered place_ambiguous or place_not_found") and names the alternative tool for the other case. Both the positive and negative selection criteria are stated.

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