Skip to main content
Glama

Domestic flights

al_flights
Read-onlyIdempotent

Search domestic Iranian flights between two airports on a given date and get airline, flight number, times, fare in Toman, and seat availability.

Instructions

Search domestic flights between two Iranian airports on one day: airline, flight number, times, fare, seats.

Toman per adult (child_price_toman, infant_price_toman for the others); a flight repeats per fare class. For a flexible date call al_flights_cheapest first. Abroad: al_flights_international.

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

Input Schema

NameRequiredDescriptionDefault
dateYesGregorian 2026-11-11 or Jalali 1405-08-20.
sortNoSort order.departure
limitNoMax results.
adultsNoAdults.
originYesCity name (تهران, Mashhad) or code (THR); see al_cities.
infantsNoInfants under 2 (max one per adult).
childrenNoChildren aged 2-11.
destinationYesCity name (تهران, Mashhad) or code (THR); see al_cities.
return_dateNoRound-trip return day; adds `returning`.
refund_rulesNoAdd `refund_penalties` (cancellation fee table) to each fare.
only_availableNoHide fares with no seat left.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changedv0.2.0
    • changedInput schema / properties / adults / description
      Previous value: -"Number of adults."New value: +"Adults."
    • changedInput schema / properties / children / description
      Previous value: -"Number of children (2-11); their fare is lower."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 name in Persian or English (تهران, Mashhad) or its code (THR, MHD); al_cities lists them."New value: +"City name (تهران, Mashhad) or code (THR); see al_cities."
    • changedInput schema / properties / infants / description
      Previous value: -"Number of infants under 2 (one per adult at most)."New value: +"Infants under 2 (max one per adult)."
    • changedInput schema / properties / limit / description
      Previous value: -"Maximum number of results."New value: +"Max results."
    • changedInput schema / properties / origin / description
      Previous value: -"City name in Persian or English (تهران, Mashhad) or its code (THR, MHD); al_cities lists them."New value: +"City name (تهران, Mashhad) or code (THR); see al_cities."
    • changedInput schema / properties / refund_rules / description
      Previous value: -"Add `refund_penalties` (cancellation fee by time before departure) to each fare."New value: +"Add `refund_penalties` (cancellation fee table) to each fare."
    • changedInput schema / properties / return_date / description
      Previous value: -"Return day for a round trip (same formats as `date`); adds a `returning` list."New value: +"Round-trip return day; adds `returning`."
    • changedInput schema / properties / sort / description
      Previous value: -"Order of the results."New value: +"Sort order."
  2. First observedv0.1.2

TDQS

A4.6/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 the safety profile is covered. The description adds genuinely new behavioral context the schema does not carry: fares are quoted in Toman per adult, and results repeat per fare class rather than per flight. It does not discuss result caps or empty-result behavior, which keeps it just below top marks.

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?

Three short sentences, front-loaded with the core action, then result-shape notes, then sibling routing. No filler and no repetition of annotation data.

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 an 11-parameter search tool with no output schema, the description covers the action, the return shape, currency, and the routing decision, which is most of what an agent needs. Detail on pagination limits, sort semantics, and round-trip behavior lives only in schema descriptions, leaving a small residual gap.

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 is 3, but the description adds meaning the schema lacks: it clarifies that `child_price_toman` and `infant_price_toman` are the per-passenger companions of the adult fare and that pricing is in Toman. This makes the passenger-count parameters interpretable rather than just numeric.

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 (search domestic flights) with tight scope: two Iranian airports, one day. It also enumerates what comes back (airline, flight number, times, fare, seats) and names the two siblings that cover the excluded cases, so an agent can distinguish it from al_flights_international and al_flights_cheapest without opening any 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?

Explicit routing: flexible dates go to al_flights_cheapest first, non-Iran routes go to al_flights_international. Both alternatives are named with the condition that selects them, leaving nothing to inference.

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