Skip to main content
Glama

Get booking links

get_booking_links
Read-only

Get booking URLs for a specific itinerary (airline-direct by default; ignav_id lookups inherit allow_third_party from the search and can override it with allow_third_party=true/false). Preferred: pass ignav_id from search_flights. Alternatively, pass manual flight details (origin, destination, departure_date, outbound_carrier_code, outbound_flight_number, and optional return fields). Returns grouped booking_options: choose one link per group; multiple groups require separate bookings.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_booking_links"
  }
}

Input Schema

NameRequiredDescriptionDefault
adultsNoManual lookup only: number of adult passengers.
marketNoManual lookup only: 2-letter country code for pricing currency and locale.
originNoManual lookup only: 3-letter origin airport IATA code.
childrenNoManual lookup only: number of child passengers.
ignav_idNoOpaque itinerary ID from a fare search (preferred). Do not combine with manual flight, passenger, or market fields.
destinationNoManual lookup only: 3-letter destination airport IATA code.
return_dateNoManual lookup only: optional round-trip return date in YYYY-MM-DD format.
departure_dateNoManual lookup only: outbound departure date in YYYY-MM-DD format.
infants_on_lapNoManual lookup only: number of lap infants.
infants_in_seatNoManual lookup only: number of seated infants.
allow_third_partyNoInclude third-party agency (OTA) booking links. When omitted, ignav_id lookups inherit the search's allow_third_party setting and manual lookups default to false.
inbound_carrier_codeNoManual lookup only: 2-character inbound airline code (required with return_date).
inbound_flight_numberNoManual lookup only: inbound flight number (required with return_date).
outbound_carrier_codeNoManual lookup only: 2-character outbound airline code (e.g. UA).
outbound_flight_numberNoManual lookup only: outbound flight number (e.g. 101).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / allow_third_party
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "boolean"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Include third-party agency (OTA) booking links. When omitted, ignav_id lookups inherit the search's allow_third_party setting and manual lookups default to false.",
      +  "title": "Allow Third Party"
      +}
  2. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnly/openWorld/non-destructive, so the safety profile is covered. The description adds real behavioral detail beyond that: airline-direct is the default, ignav_id lookups inherit allow_third_party from the originating search and can override it, and the returned booking_options are grouped such that one link per group is chosen and multiple groups require separate bookings. It does not cover error/empty-result behavior, which keeps it from 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core purpose, then the preferred path, then the fallback, then the output interpretation — a sensible decision order for an agent. The nested parenthetical about allow_third_party inheritance for ignav_id lookups is slightly dense but every clause carries distinct information.

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 tool with zero required fields, the description adequately explains both invocation modes and how to read the grouped output, and an output schema exists so return shape needn't be restated. The one real omission is that nothing says what happens if the call is made with neither ignav_id nor the manual flight fields, which is a plausible failure mode given no required parameters.

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 per-parameter documentation is already handled and the baseline would be 3. The description adds a mode-level grouping that the flat 15-param schema does not make obvious — it tells the agent that ignav_id and the manual flight/passenger/market fields are mutually exclusive paths, saving the agent from reconciling a dozen optional properties.

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?

Opens with a specific verb+resource ("Get booking URLs for a specific itinerary") and immediately distinguishes its two operating modes, airline-direct default vs. third-party, plus the ignav_id vs. manual-detail paths. An agent can tell this apart from search_flights because the description names search_flights as the upstream source of ignav_id.

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?

"Preferred: pass ignav_id from search_flights. Alternatively, pass manual flight details..." explicitly ranks the two invocation strategies and enumerates the fields each requires. The only slight gap is that "when not to use" is implied (use it after a search) rather than stated, but the preferred/alternative structure is unambiguous.

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.