Skip to main content
Glama

True cost

true_cost
Read-onlyIdempotent

The true cost of a flight on one airline. Pass fare (the total for the whole party, from a flight-search tool or the person) to get fare + extras; without it you get the extras alone. Extras = what the person chooses (cabin bag, checked bag by kg, seat, priority, infants) for their party and trip, as the range the airline publishes. Also lists what costs more if left until the airport, unchosen fees that may apply (admin, card %), and extras the airline does not publish a price for.

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": {
      "airline": "<airline>"
    },
    "name": "true_cost"
  }
}

Input Schema

NameRequiredDescriptionDefault
fareNoTotal fare already found for the whole party, if known
seatNoextra = legroom / front
tripNoone_way (default) or return: return counts each extra on both flights
airlineYesName or IATA code
infantsNoUnder-2s on a lap
currencyNoCurrency of the answer: EUR (default), GBP, USD or CAD. A price the airline publishes in it is exact; any other is converted at the ECB rate and marked ≈
domesticNotrue for a flight within the US: US airlines charge different bag prices there than on international routes
priorityNoPriority boarding
cabin_bagNoA large cabin bag for the overhead locker
hold_bagsNoChecked bags per person (default 1); the 2nd bag often costs more
group_bagsNoChecked bags shared by the whole party, fewer than the people (e.g. 1 bag between 2): priced as that many 1st bags; needs checked_bag_kg
passengersNoPeople aged 2+ (default 1)
checked_bag_kgNoChecked bag(s) per person of this weight allowance

Output Schema

NameRequiredDescriptionDefault
noteNo
pageNo
errorNo
linesNo
airlineNo
true_costNo
extras_totalNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / currency / description
      Previous value: -"Currency of the answer: EUR (default) or GBP, as the airline publishes it"New value: +"Currency of the answer: EUR (default), GBP, USD or CAD. A price the airline publishes in it is exact; any other is converted at the ECB rate and marked ≈"
    • changedInput schema / properties / currency / enum
      Previous value: -[
      -  "EUR",
      -  "GBP"
      -]New value: +[
      +  "EUR",
      +  "GBP",
      +  "USD",
      +  "CAD"
      +]
  2. Changed1 schema field changed
    • addedInput schema / properties / group_bags
      Added value: +{
      +  "description": "Checked bags shared by the whole party, fewer than the people (e.g. 1 bag between 2): priced as that many 1st bags; needs checked_bag_kg",
      +  "maximum": 8,
      +  "minimum": 1,
      +  "type": "integer"
      +}
  3. Changed1 schema field changed
    • addedInput schema / properties / domestic
      Added value: +{
      +  "description": "true for a flight within the US: US airlines charge different bag prices there than on international routes",
      +  "type": "boolean"
      +}
  4. Changed3 schema fields changed
    • addedInput schema / properties / currency / description
      Added value: +"Currency of the answer: EUR (default) or GBP, as the airline publishes it"
    • addedInput schema / properties / priority / description
      Added value: +"Priority boarding"
    • addedInput schema / properties / trip / description
      Added value: +"one_way (default) or return: return counts each extra on both flights"
  5. Changed2 schema fields changed
    • changedInput schema / properties / checked_bag_kg / description
      Previous value: -"One checked bag per person of this weight allowance"New value: +"Checked bag(s) per person of this weight allowance"
    • addedInput schema / properties / hold_bags
      Added value: +{
      +  "description": "Checked bags per person (default 1); the 2nd bag often costs more",
      +  "maximum": 3,
      +  "minimum": 1,
      +  "type": "integer"
      +}
  6. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Beyond the read-only and idempotent annotations, the description discloses meaningful behavior: optional fare changes the output mode, extras are presented as airline-published ranges, and results include airport-increase costs, possible unchosen fees, and unpublished extras. It is strong behavioral context, though it does not describe all output details, which is acceptable because an output schema exists.

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 description is front-loaded with the core purpose and then explains the key fare/no-fare behavior before listing what the extras include. It is dense but efficient, with no clearly redundant sentences, though the third sentence is long and packs several distinct behaviors together.

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?

Given 13 parameters, full schema coverage, annotations, and an output schema, the description is complete enough for an agent to understand the tool's role and the important fare-dependent behavior. Its main gap is the absence of explicit guidance on choosing this tool over similarly named sibling tools.

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 the input schema already carries the parameter semantics. The description adds useful meaning for `fare` as the total for the whole party and frames the extras parameters collectively, but it does not materially deepen most individual parameter definitions beyond what the schema provides.

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 states a specific purpose: calculating the true cost of a flight on one airline, including fare and extras. It distinguishes the tool from a flight-search tool by explaining that a fare may come from elsewhere, but it does not explicitly contrast itself with named siblings such as airline_fees.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It clearly explains when to pass `fare` and what happens without it: fare plus extras versus extras alone. It gives useful context for using the tool after a flight search, but it does not explicitly say when another sibling should be used instead.

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.