Skip to main content
Glama

City and airport codes

al_cities
Read-onlyIdempotent

Look up city codes for train, flight, and bus searches, see what is sold in each city, and find domestic or international airport options by city name or code.

Instructions

Look up the city codes the other tools take (THR for Tehran, MHD for Mashhad) and what is sold for each city.

train/flight say a city has a station/domestic airport. With international=true it returns airports worldwide; whole_city rows (code ending in ALL) cover all airports of a city.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "al_cities"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax results.
queryNoPart of a city name (Persian/English) or code; empty lists all.
internationalNoSearch airports worldwide (for al_flights_international) instead of Iranian cities.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.2.0
    • changedInput schema / properties / international / description
      Previous value: -"Look up airports and cities worldwide for al_flights_international instead of Iranian cities."New value: +"Search airports worldwide (for al_flights_international) instead of Iranian cities."
    • changedInput schema / properties / limit / description
      Previous value: -"Maximum number of results."New value: +"Max results."
    • changedInput schema / properties / query / description
      Previous value: -"Part of a city name in Persian or English, or a code. Empty lists all."New value: +"Part of a city name (Persian/English) or code; empty lists all."
  2. First observedv0.1.2

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive/openWorld, so the safety profile is covered elsewhere. The description adds genuinely useful behavior beyond that: international=true widens results to airports worldwide, and `whole_city` rows (codes ending in ALL) aggregate all airports of a city. It does not describe pagination, ordering, or what fields each row contains, which matters since there is no output schema.

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?

Three short sentences with the purpose front-loaded and no filler. The third sentence's `train`/`flight` backticking reads like a tool or parameter reference and slightly muddies otherwise clean phrasing.

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

Completeness3/5

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

For a simple 3-param lookup tool with no output schema, the description covers the international mode and the ALL-code aggregation, which is the hard part. However, since no output schema exists, the description is the only place to explain what "what is sold for each city" returns, and it leaves the row structure and result fields unexplained.

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%, so the schema already documents limit, query, and international, and the baseline of 3 applies. The description mostly echoes the schema's account of international=true and adds no format or matching detail for `query` (e.g., whether code prefixes match) beyond what is already stated there.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/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 the city codes") with concrete examples (THR for Tehran, MHD for Mashhad) and ties it to the sibling tools that consume those codes. It loses a point because "what is sold for each city" is vague and the backticked `train`/`flight` do not match the actual sibling names (al_trains, al_flights), so an agent must infer the mapping.

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?

Usage is only implied: the reader infers this should be called to resolve a code before invoking al_trains/al_flights, and that international=true is the right mode before al_flights_international. There is no explicit "call this first" instruction, no statement of when not to use it, and no direct naming of the sibling alternatives.

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