Skip to main content
Glama

Cheap Flights, Hotels & eSIMs

Nearby airports

nearby_airports
Read-onlyIdempotent

Other airports near an airport, nearest first, with the distance and the lowest fare currently stored for each. Use it when someone could depart from a different airport to fly cheaper, or when their airport has no fares.

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": {
      "originIata": "<originIata>"
    },
    "name": "nearby_airports"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoHow many airports to return, 1 to 20. Default 10.
radiusKmNoSearch radius in kilometres. Default 200.
originIataYesIATA code of the airport to search around, for example VCE.
withFaresOnlyNoOnly airports that recently had fares. Default true.

Output Schema

NameRequiredDescriptionDefault
originYes
airportsYes
radiusKmYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so safety needs no restating. The description adds genuinely new behavior: results are sorted nearest-first and fares are 'currently stored' rather than live, which signals data staleness the agent cannot learn from annotations or schema.

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 with no filler; the return shape and ordering come first, followed by the usage trigger. Every clause carries information an agent can act on.

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?

With an output schema present and full parameter documentation, the description only needs to explain purpose and selection context, which it does. Minor gaps remain: it does not say what happens when no airports fall inside the radius or how the fare field behaves when withFaresOnly is disabled.

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 coverage is 100%, so originIata, radiusKm, limit, and withFaresOnly are fully documented in the schema. The description only loosely reinforces withFaresOnly through 'lowest fare currently stored' and adds no format or interaction detail beyond the schema, making the baseline 3 appropriate.

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 resource (other airports near a given airport) plus what each result carries (distance and lowest stored fare) and the ordering (nearest first). It is clear enough to distinguish from search_airports, but it never names a sibling, so differentiation is by inference from the 'depart from a different airport to fly cheaper' framing.

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 gives two concrete when-to-use triggers: the user could depart from another airport to save money, or their airport has no fares. There is no explicit when-not or named alternative (e.g. compare_departure_airports), so it stops short of full routing guidance.

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