Skip to main content
Glama

Cheap Flights, Hotels & eSIMs

Compare departure airports

compare_departure_airports
Read-onlyIdempotent

Which departure airport is the cheapest for one destination: the lowest round-trip fare from each airport, in one currency, cheapest first. Give a list of airports, or one airport to compare with those around it. Use this instead of calling deals_to_destination for each airport.

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": {
      "destination": "<destination>"
    },
    "name": "compare_departure_airports"
  }
}

Input Schema

NameRequiredDescriptionDefault
radiusKmNoRadius around nearAirport in kilometres. Default 200.
destinationYesDestination city, IATA code or country, for example Ibiza, IBZ or Greece.
nearAirportNoInstead of a list: compare this airport and the airports around it.
originIatasNoDeparture airports to compare, up to 10, for example ["MXP", "BGY", "LIN"].

Output Schema

NameRequiredDescriptionDefault
noteYes
optionsYes
currencyYes
alertOfferYes
destinationYes
cheapestOriginIataYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), so the description's added value is the result semantics: one fare per airport, single currency, cheapest-first ordering. That is genuinely useful behavioral context beyond the structured fields, though it does not mention pagination, rate limits, or what happens when an airport has no fare data.

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 sentences, both front-loaded with the essential information: what is computed and how to choose it over the sibling. No repetition of schema or annotation content and no filler.

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?

For a read-only comparison tool with an output schema and full parameter documentation, the description supplies everything an agent needs: purpose, both invocation modes, the alternative to avoid, and result ordering. Return-value details are correctly left to the output schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3, but the description goes beyond the per-parameter text by explaining the two modes as mutually exclusive alternatives — a list of airports versus one airport whose neighbors are compared. That clarifies the interaction between originIatas, nearAirport, and radiusKm that the schema documents only in isolation.

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 description names a specific verb and resource ('compare departure airports') and defines the exact output semantics: lowest round-trip fare from each airport, normalized to one currency, sorted cheapest first. It explicitly distinguishes itself from the sibling deals_to_destination, so an agent can route correctly without opening either schema.

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

Usage Guidelines5/5

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

It gives explicit when-to-use guidance for both operating modes ('give a list of airports, or one airport to compare with those around it') and an explicit alternative rule ('use this instead of calling deals_to_destination for each airport'). The condition that selects this tool over the sibling is stated outright.

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.

Resources