True cost
true_costThe 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
| Name | Required | Description | Default |
|---|---|---|---|
| fare | No | Total fare already found for the whole party, if known | |
| seat | No | extra = legroom / front | |
| trip | No | one_way (default) or return: return counts each extra on both flights | |
| airline | Yes | Name or IATA code | |
| infants | No | Under-2s on a lap | |
| currency | No | Currency of the answer: EUR (default) or GBP, as the airline publishes it | |
| domestic | No | true for a flight within the US: US airlines charge different bag prices there than on international routes | |
| priority | No | Priority boarding | |
| cabin_bag | No | A large cabin bag for the overhead locker | |
| hold_bags | No | Checked bags per person (default 1); the 2nd bag often costs more | |
| group_bags | No | 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 | |
| passengers | No | People aged 2+ (default 1) | |
| checked_bag_kg | No | Checked bag(s) per person of this weight allowance |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| page | No | ||
| error | No | ||
| lines | No | ||
| airline | No | ||
| true_cost | No | ||
| extras_total | No |