Skip to main content
Glama

Trip at airport

trip_at_airport
Read-onlyIdempotent

The whole trip into one airport in one answer: the flight's extras on an airline (bags, seats, fees, as true_cost) AND what car hire there really costs (Car Rental Brain's measured median per day, car only, dated). Use for 'flying to Faro with Ryanair, bags and a hire car: what will it cost?'. Car only: deposits, second-driver fees and desk cover are not included; the answer links to the airport's full car-hire report.

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": {
      "airport": "<airport>"
    },
    "name": "trip_at_airport"
  }
}

Input Schema

NameRequiredDescriptionDefault
fareNoTotal fare for the whole party, if known
seatNoPaid seat choice: none (random seat), standard, or extra (legroom / front)
tripNoone_way (default) or return: return counts each extra on both flights
airlineNoAirline name or IATA code (optional; without it you get car hire only)
airportYesIATA code or name of the airport you fly INTO, e.g. 'FAO', 'Faro', 'Malaga'
infantsNoUnder-2s on a lap (default 0)
car_daysNoDays of car hire (default 7)
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 (the small under-seat bag is free)
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, e.g. 20 or 23; omit for none

Output Schema

NameRequiredDescriptionDefault
noteNo
errorNo
flightNo
airportNo
car_hireNo

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. Changed9 schema fields changed
    • addedInput schema / properties / cabin_bag / description
      Added value: +"A large cabin bag for the overhead locker (the small under-seat bag is free)"
    • addedInput schema / properties / checked_bag_kg / description
      Added value: +"Checked bag(s) per person of this weight allowance, e.g. 20 or 23; omit for none"
    • addedInput schema / properties / currency / description
      Added value: +"Currency of the answer: EUR (default) or GBP, as the airline publishes it"
    • addedInput schema / properties / hold_bags / description
      Added value: +"Checked bags per person (default 1); the 2nd bag often costs more"
    • addedInput schema / properties / infants / description
      Added value: +"Under-2s on a lap (default 0)"
    • addedInput schema / properties / passengers / description
      Added value: +"People aged 2+ (default 1)"
    • addedInput schema / properties / priority / description
      Added value: +"Priority boarding"
    • addedInput schema / properties / seat / description
      Added value: +"Paid seat choice: none (random seat), standard, or extra (legroom / front)"
    • addedInput schema / properties / trip / description
      Added value: +"one_way (default) or return: return counts each extra on both flights"
  5. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare a safe, idempotent, non-destructive read, so the description is free to spend its words on semantics: it discloses that the car number is a measured median per day, is dated, and excludes deposits, second-driver fees and desk cover, with a pointer to the full report. It does not discuss data freshness windows or rate limits, which keeps it below a 5.

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?

Three sentences, front-loaded with the payoff (whole trip, one answer) and followed by the scope caveat and an example. It is dense with parentheses and slashes but almost every clause carries information; the parenthetical enumeration is slightly heavy.

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 15-parameter aggregation tool with an output schema and full annotation coverage, the description supplies what structured fields cannot: what the combined answer contains, what the car figure excludes, and where to get the rest. Missing only explicit sibling routing (when to prefer true_cost alone).

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 15 parameters are already fully documented, including currency exactness and enum meanings. The description adds only the per-day framing of the car cost and the car-only exclusions; nothing further is said about how fare, group_bags or checked_bag_kg interact with the result.

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?

"The whole trip into one airport in one answer" names the specific combined resource: airline flight extras (bags, seats, fees, as true_cost) plus measured car-hire cost for that airport. It explicitly frames itself against the sibling concept true_cost by describing itself as an extension of it, so an agent can tell what is added rather than duplicated.

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?

The description gives a concrete triggering scenario ("flying to Faro with Ryanair, bags and a hire car: what will it cost?") and states the scope boundary that the car figure is car-only. It does not explicitly say to call true_cost when no car is needed, leaving that routing to inference from the parenthetical "as true_cost".

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.