Skip to main content
Glama

International flights

al_flights_international
Read-onlyIdempotent

Search international flights between Iran and abroad or any two cities on a chosen date; filter by cabin, stops, airline, and passenger counts, and compare one-way or round-trip fares.

Instructions

Search international flights between Iran and abroad (or any two cities Alibaba sells) on one day.

price_toman is per adult, total_toman for the whole group. With return_date each fare has a return leg. Codes: al_cities with international=true. Takes 10-20 seconds.

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": {
      "origin": "<origin>",
      "destination": "<destination>",
      "date": "<date>"
    },
    "name": "al_flights_international"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateYesGregorian 2026-11-11 or Jalali 1405-08-20.
sortNoSort order.price
cabinNoCabin class.economy
limitNoMax results.
adultsNoAdults.
originYesCity/airport name (تهران, Dubai) or code (DXB, THRALL = all Tehran airports).
airlineNoPart of an airline name, e.g. 'Turkish'.
infantsNoInfants under 2.
childrenNoChildren aged 2-11.
max_stopsNoMax stops (0 = direct).
destinationYesCity/airport name (تهران, Dubai) or code (DXB, THRALL = all Tehran airports).
return_dateNoRound-trip return day.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed11 schema fields changedv0.2.0
    • changedInput schema / properties / adults / description
      Previous value: -"Number of adults."New value: +"Adults."
    • changedInput schema / properties / airline / description
      Previous value: -"Part of an airline name to keep, e.g. 'Turkish', 'ماهان'."New value: +"Part of an airline name, e.g. 'Turkish'."
    • changedInput schema / properties / children / description
      Previous value: -"Number of children (2-11)."New value: +"Children aged 2-11."
    • changedInput schema / properties / date / description
      Previous value: -"Travel date, Gregorian 2026-11-11 or Jalali 1405-08-20 (the year tells which)."New value: +"Gregorian 2026-11-11 or Jalali 1405-08-20."
    • changedInput schema / properties / destination / description
      Previous value: -"City or airport as a name (تهران, Dubai) or code (THR, DXB, THRALL for all airports of Tehran)."New value: +"City/airport name (تهران, Dubai) or code (DXB, THRALL = all Tehran airports)."
    • changedInput schema / properties / infants / description
      Previous value: -"Number of infants under 2."New value: +"Infants under 2."
    • changedInput schema / properties / limit / description
      Previous value: -"Maximum number of results."New value: +"Max results."
    • changedInput schema / properties / max_stops / description
      Previous value: -"Keep only itineraries with at most this many stops (0 = direct)."New value: +"Max stops (0 = direct)."
    • changedInput schema / properties / origin / description
      Previous value: -"City or airport as a name (تهران, Dubai) or code (THR, DXB, THRALL for all airports of Tehran)."New value: +"City/airport name (تهران, Dubai) or code (DXB, THRALL = all Tehran airports)."
    • changedInput schema / properties / return_date / description
      Previous value: -"Return day for a round trip (same formats as `date`)."New value: +"Round-trip return day."
    • changedInput schema / properties / sort / description
      Previous value: -"Order of the results."New value: +"Sort order."
  2. First observedv0.1.2

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so safety is covered. The description adds genuinely new behavioral facts: a 10-20 second latency expectation and the fact that supplying return_date changes the response shape by attaching a 'return' leg to each fare. It stops short of describing result volume or failure modes.

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?

Four short lines, front-loaded with the purpose and followed by pricing semantics, return behavior, the code source, and latency. No filler, though the parenthetical 'or any two cities Alibaba sells' slightly dilutes the international framing.

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 12-parameter search with no output schema, the description covers the important non-schema knowledge: price field semantics, the return-trip response change, code lookup, and runtime cost. Remaining gaps (result volume, what a fare object contains beyond price) are minor for a read-only search.

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 that by clarifying cross-parameter effects the schema cannot express — return_date producing return legs — and by disambiguating the two price fields (price_toman per adult vs total_toman for the group). It adds no extra detail on sort, cabin, limit or max_stops beyond the schema.

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 ('Search international flights') plus the temporal scope ('on one day') and the route domain (Iran↔abroad, or any two Alibaba cities). It distinguishes itself from al_flights by the 'international' qualifier, but never names al_flights or al_flights_cheapest explicitly, so the agent must infer the boundary from the adjective alone.

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?

Offers one concrete prerequisite hint — 'Codes: al_cities with international=true' — which tells the agent where to source origin/destination codes. It gives no guidance on when to prefer this over al_flights_cheapest or al_flights, and no exclusion rules, so the routing decision against siblings is left implicit.

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