Skip to main content
Glama

Get flight details

get_flight_details
Read-onlyIdempotent

Fare options and travel policies for one flight. Renders the Flight Details panel: multi-fare upsell comparison (Saver, Flexi, etc.) plus baggage, cancellation, and reschedule tabs. This is the source for flight details, fare options, upsell fares, baggage allowance, cancellation fees, reschedule fees, or policies for a specific flight, including right after search_flights or when the traveller taps Fare options in the widget. The search_flights summary carries none of these, and the identifiers it returned are enough without a new search. Input: offer_token for the chosen flight, listed in the prior search_flights summary and structured_content. Either form is valid: the long signed token, or that flight's short offerRef (about 30 characters). A short value is valid input, not an internal id. A round trip also takes return_offer_token. Values are matched exactly, character for character: a retyped, abbreviated or merged value fails, and the onward value is not valid for the return leg. They expire; a rejected value needs a fresh search.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
offer_tokenYesOffer token from search_flights — either the long signed token or the flight's short `offerRef`. Both resolve to the same offer.
return_offer_tokenNoOptional return-leg token for a round trip, in either of the same two forms.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
faresNo
headerNo
onwardNo
originNo
returnNo
airlineNo
logoUrlNo
currencyNoINR
providerNo
tripTypeNo
minirulesNo
bookingUrlNo
checkinUrlNo
offerTokenNo
originCityNo
airlineNameNo
destinationNo
featureRowsNo
flightNumberNo
destinationCityNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the safety profile is covered. The description goes further by disclosing value-validation behavior that annotations cannot express: exact character-for-character matching, expiry, rejection requiring a fresh search, and that an onward token is invalid for the return leg. This is genuinely additive, though it omits any rate-limit or error-response detail.

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?

Front-loaded with purpose and usage before the input rules, and each sentence carries distinct information (contents, triggers, token forms, failure modes, expiry). It is dense and slightly long, but the only mild redundancy is restating that the search summary lacks these details.

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?

With an output schema present the description need not explain return values, and it instead covers what the schema cannot: when to call, which token forms are valid, round-trip handling, and expiry behavior. Nothing an agent needs to invoke this correctly is missing.

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 the baseline is 3, but the description adds real meaning beyond the schema: the short `offerRef` is ~30 characters, a short value is a legitimate input rather than an internal id, the two tokens resolve identically, and matching is exact so retyped or merged values fail. This clarifies the accepted value forms in ways the schema description only gestures at.

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?

States a specific verb+resource ('Fare options and travel policies for one flight') and enumerates the concrete contents (multi-fare upsell, baggage, cancellation, reschedule tabs). It also explicitly separates itself from search_flights by noting the summary 'carries none of these', so an agent can route 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?

Gives explicit trigger conditions: right after search_flights, or when the traveller taps Fare options in the widget, and states the identifiers already returned are enough without a new search. It effectively names search_flights as the prerequisite alternative rather than leaving it to inference.

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