Skip to main content
Glama

Resolve City IATA Code

resolve_city_iata_code
Read-only

Use this tool to resolve a city name into its corresponding city IATA code before calling any route price, monthly price, or airport analytics tool that requires a city code. It returns cities only, not individual airports.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of city matches to return.
queryYesCity name to resolve to its corresponding city IATA code, for example Москва, Moscow, London.
localeNoLocale used to localize autocomplete results.en

Output Schema

NameRequiredDescriptionDefault
resultsYesResolved cities with their corresponding city IATA codes. Airport results are intentionally excluded.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, openWorldHint, and destructiveHint=false, so the safety profile is covered. The description adds useful behavioral context beyond that: it is a lookup prerequisite for other tools and returns city-level entities only, not airports. It stops short of describing match ambiguity or no-result behavior, which keeps it from a 5.

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?

Two sentences, both front-loaded with the actionable constraint (call order first, scope limit second). No redundant restatement of the title and no filler.

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 simple 3-parameter lookup with a full schema, complete annotations, and an output schema, the description covers purpose, ordering, and scope adequately. The only gap is what happens when no city matches or when multiple cities share a name, which an agent would need to handle.

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% — query, limit, and locale are each documented in the schema, including multilingual examples and the enum for locale. The description adds no additional meaning about parameter interaction (e.g., how limit affects disambiguation of same-named cities), so the baseline 3 applies.

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 ('resolve a city name into its corresponding city IATA code') and immediately scopes it ('returns cities only, not individual airports'), which lets an agent distinguish it from airport-level resolution. The purpose is unambiguous without opening the 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?

Explicitly prescribes when to call it: 'before calling any route price, monthly price, or airport analytics tool that requires a city code' — which maps directly onto the sibling analytics/pricing tools. It also gives a when-not condition by excluding individual airports, so nothing is left to inference.

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