City and airport codes
al_citiesLook 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
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max results. | |
| query | No | Part of a city name (Persian/English) or code; empty lists all. | |
| international | No | Search airports worldwide (for al_flights_international) instead of Iranian cities. |