Skip to main content
Glama

Find places (IATA codes)

find_places
Read-onlyIdempotent

Look up airports and cities by name and get IATA codes, including metro codes. Example: {"q":"paris"} returns PAR plus CDG, ORY and BVA. Free: never uses search quota. q under 2 characters is an error naming q. Typos and old names (Abidjn, Bombay) return up to 5 close places marked match fuzzy.

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": {
      "q": "<q>"
    },
    "name": "find_places"
  }
}

Input Schema

NameRequiredDescriptionDefault
qYesCity, airport or country name, or an IATA code. At least 2 characters.
limitNoMax places returned, 1 to 20. Default 8.
localeNoLanguage for names: en (default) or fr.

Output Schema

NameRequiredDescriptionDefault
hintNoSet when places is empty.
queryYes
placesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / $defs
      Added value: +{
      +  "__schema0": {
      +    "type": "string"
      +  }
      +}
    • addedOutput schema / properties / hint
      Added value: +{
      +  "$ref": "#/$defs/__schema0",
      +  "description": "Set when places is empty."
      +}
  2. Changed11 schema fields changed
    • removedInput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
    • changedInput schema / properties / locale / description
      Previous value: -"Language for matching and ranking names: en (default) or fr."New value: +"Language for names: en (default) or fr."
    • changedInput schema / properties / q / description
      Previous value: -"City, airport or country name, or an IATA code. At least 2 characters. English or French names."New value: +"City, airport or country name, or an IATA code. At least 2 characters."
    • removedInput schema / properties / q / examples
      Removed value: -[
      -  "paris",
      -  "abidjan",
      -  "Lagos",
      -  "DSS"
      -]
    • removedOutput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
    • removedOutput schema / properties / places / description
      Removed value: -"Best match first; cities before their airports."
    • removedOutput schema / properties / places / items / properties / airports / description
      Removed value: -"Airport IATA codes covered by this place."
    • removedOutput schema / properties / places / items / properties / cityCode / description
      Removed value: -"Metro code the place belongs to."
    • changedOutput schema / properties / places / items / properties / code / description
      Previous value: -"IATA code to pass to search_flights (city/metro code for kind city, airport code for kind airport)."New value: +"IATA code to pass to search_flights."
    • removedOutput schema / properties / places / items / properties / countryCode / description
      Removed value: -"ISO 3166-1 alpha-2."
    • removedOutput schema / properties / places / items / properties / kind / description
      Removed value: -"city or airport."
  3. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds genuinely non-obvious behavior beyond them: zero search-quota cost, an error contract for q shorter than 2 characters, and fuzzy matching of typos/old names returning 'up to 5 close places'. It does not discuss pagination or ordering of results, but with an output schema present that is a minor gap.

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?

Four dense sentences, front-loaded with the core purpose, then the example, then cost, then edge cases. The inline JSON example is more efficient than prose and no sentence restates the name or title.

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?

An output schema exists, so return shape need not be described, and all three parameters are documented in the schema. Combined, the description covers purpose, example output, failure mode, fuzzy behavior and cost — everything an agent needs to call this correctly on the first try.

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 would be 3. The description earns above baseline by specifying runtime semantics of q that the schema cannot express: the 2-character minimum fails as an error naming q, and misspellings or historical names yield fuzzy-matched results. It is silent on limit and locale, but those are already fully documented 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 ('look up airports and cities by name') plus the concrete output ('IATA codes, including metro codes'), and the Paris example shows exactly what a call returns. This cleanly separates it from every sibling, which are flight-search, alert-management and offer tools.

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?

Usage context is clear (name/typo/IATA-code lookup, with old-name handling) and 'Free: never uses search quota' implicitly signals when to prefer this over the quota-consuming search tools. It never explicitly names an alternative tool or states an exclusion, so it stops short of full routing guidance.

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.