Skip to main content
Glama

Cheapest flight per day

al_flights_cheapest
Read-onlyIdempotent

Compare daily domestic flight fares from a start date to identify a lower-cost day to fly.

Instructions

List the lowest domestic fare for each day from a start date, to pick the cheapest day to fly.

Toman per adult; a day with no flight is missing.

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

Input Schema

NameRequiredDescriptionDefault
dateYesGregorian 2026-11-11 or Jalali 1405-08-20.
daysNoDays to list from `date`.
originYesCity name (تهران, Mashhad) or code (THR); see al_cities.
destinationYesCity name (تهران, Mashhad) or code (THR); see al_cities.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.2.0
    • 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 / days / description
      Previous value: -"How many days to list, starting at `date`."New value: +"Days to list from `date`."
    • 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 / 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."
  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 the safety profile is covered. The description adds genuinely non-redundant behavior: fares are quoted in Toman per adult, and days with no flight are omitted from the result rather than returned as empty rows — a data-shape quirk an agent would otherwise misread as an error.

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 short sentences with zero filler; the core purpose and the start-date semantics come first, and the unit/omission caveats follow compactly. Nothing needs trimming.

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 four-parameter read-only tool with full schema coverage and four annotations, the description supplies the two things structured data cannot: fare currency basis and the missing-day behavior. Without an output schema it could say a bit more about the per-day record's shape, but what is present is sufficient to call it correctly.

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%, with pattern, default 7 and 1-15 bounds all documented, so the baseline is 3. The description reinforces that `date` is the start of a range and that output is one row per day, but adds no format or unit detail for `origin`/`destination` beyond what the schema already says.

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?

The description names a specific verb and resource ('List the lowest domestic fare for each day') and scopes it to domestic fares from a start date, which implicitly separates it from al_flights (raw flight listing) and al_flights_international. It never names those siblings explicitly, which is the only thing keeping it from a 5.

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?

'To pick the cheapest day to fly' gives the intent behind calling it, so an agent can infer the use case. However, there is no explicit when-not guidance and no named alternative (e.g. use al_flights for full schedules, al_flights_international for foreign routes), leaving routing to inference.

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