Skip to main content
Glama

Search flights true cost

search_flights_true_cost
Read-only

LIVE: search real flights (fares from Kiwi.com, fetched for this request, not stored) and return each option's true cost: the fare plus the extras the person chooses, from Airfare Brain's fee tables, cheapest true cost first, each with Kiwi's booking link. Options mixing airlines show the fare only.

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": {
      "from": "<from>",
      "to": "<to>",
      "date": "<date>"
    },
    "name": "search_flights_true_cost"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesDestination airport or city
dateYesDeparture date YYYY-MM-DD
fromYesOrigin airport or city (IATA or name)
seatNoPaid seat choice: none (random seat), standard, or extra (legroom / front)
limitNoHow many options (default 5)
stopsNo0 = direct only, 1 = up to one stop; omit for any
detailNoshort (default): the figures that answer the question; full: every field, note and link
infantsNoUnder-2s on a lap (default 0)
childrenNoChildren aged 2-11 (they get their own seat and often a cheaper fare)
currencyNoCurrency of the answer: EUR (default) or GBP, as the airline publishes it
priorityNoPriority boarding
cabin_bagNoA large cabin bag for the overhead locker (the small under-seat bag is free)
hold_bagsNoChecked bags per person (default 1)
group_bagsNoChecked bags shared by the whole party, fewer than the people (e.g. 1 bag for 3 travellers); overrides hold_bags
passengersNoAdults aged 12+ (default 1); put children 2-11 in children
return_dateNoReturn date YYYY-MM-DD (omit for one-way)
checked_bag_kgNoChecked bag(s) per person of this weight allowance, e.g. 20 or 23; omit for none

Output Schema

NameRequiredDescriptionDefault
noteNo
errorNo
sourceNo
optionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / detail
      Added value: +{
      +  "description": "short (default): the figures that answer the question; full: every field, note and link",
      +  "enum": [
      +    "short",
      +    "full"
      +  ],
      +  "type": "string"
      +}
  2. Added

TDQS

A4/5.0
Behavior4/5

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

Beyond the annotations, it discloses that fares are live and not persisted, that extras come from a separate fee table, that results are sorted cheapest true cost first, that each carries a Kiwi booking link, and that mixed-airline itineraries degrade to fare-only. It does not mention latency, failure modes, or that results are non-idempotent, but the added behavioral content is substantial.

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?

The scope marker is front-loaded and the colon structure separates what it does from what it returns. It is a single long sentence with stacked parentheticals that is dense but largely waste-free.

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

Completeness5/5

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

An output schema exists, so return-shape details are not the description's burden. Between the description's live/fee-table/degradation notes and the fully documented 17-parameter schema, an agent has what it needs to call this 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%, so all 17 parameters including seat, bags, group_bags, and currency are already documented in the schema. The description only adds a general notion of 'extras the person chooses' and 'currency as the airline publishes it', without clarifying interactions like group_bags overriding hold_bags.

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 real flights') and pins the distinctive scope: live Kiwi.com fares fetched per request (not stored) plus true-cost computation from Airfare Brain's fee tables. The word 'LIVE' and 'fetched for this request, not stored' separate it from the static true_cost sibling.

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 implied by 'LIVE' and by the caveat that mixed-airline options show fare only, which tells the agent when results will be partial. But there is no explicit when-to-use rule or pointer to true_cost / airline_fees for the non-live or fee-breakdown cases.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.