Skip to main content
Glama

Get booking link

get_booking_link
Read-onlyIdempotent

Booking link for an offer: send the traveller to bookingLink. For separate tickets, tickets[] has one link each. Expired id: offer_expired error, never another flight. Example: {"id":"off_8f2c1a"}. The id also works as offerId, offer_id or offer (id wins).

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_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoOffer id from search_flights (offers[].id), valid about 20 minutes. Or send offerId, offer_id or offer.
offerNoSame as id: the offer id, or the offer object from search_flights.
offerIdNoSame as id. Use id; offerId is accepted too.
offer_idNoSame as id. Use id; offer_id is accepted too.

Output Schema

NameRequiredDescriptionDefault
idYes
notesNo
ticketsNoOne /go link per ticket when the trip is on separate tickets.
bookableNo
priceKindNo
bookingLinkYeslowest.flights /go link. Send the traveller here.
separateTicketsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / id / description
      Previous value: -"Offer id from search_flights (offers[].id), valid about 30 minutes. Or send offerId, offer_id or offer."New value: +"Offer id from search_flights (offers[].id), valid about 20 minutes. Or send offerId, offer_id or offer."
  2. Changed12 schema fields changed
    • removedInput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
    • changedInput schema / properties / id / description
      Previous value: -"Offer id returned by search_flights (offers[].id). Valid for about 30 minutes. Required: send it as id (or offerId, offer_id, offer)."New value: +"Offer id from search_flights (offers[].id), valid about 30 minutes. Or send offerId, offer_id or offer."
    • changedInput schema / properties / offer / description
      Previous value: -"Same as id (alias): the offer id, or the offer object from search_flights (its id is used)."New value: +"Same as id: the offer id, or the offer object from search_flights."
    • changedInput schema / properties / offerId / description
      Previous value: -"Same as id (alias). Use id; offerId is accepted too."New value: +"Same as id. Use id; offerId is accepted too."
    • changedInput schema / properties / offer_id / description
      Previous value: -"Same as id (alias). Use id; offer_id is accepted too."New value: +"Same as id. Use id; offer_id is accepted too."
    • addedOutput schema / $defs
      Added value: +{
      +  "__schema0": {
      +    "items": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "bookingLink": {
      +          "type": "string"
      +        },
      +        "index": {
      +          "type": "number"
      +        }
      +      },
      +      "required": [
      +        "index",
      +        "bookingLink"
      +      ],
      +      "type": "object"
      +    },
      +    "type": "array"
      +  }
      +}
    • removedOutput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / properties / bookingLink / description
      Previous value: -"lowest.flights /go link. Send the traveller here. No other booking URL is returned."New value: +"lowest.flights /go link. Send the traveller here."
    • addedOutput schema / properties / tickets / $ref
      Added value: +"#/$defs/__schema0"
    • changedOutput schema / properties / tickets / description
      Previous value: -"When the trip is on separate tickets, one /go link per ticket."New value: +"One /go link per ticket when the trip is on separate tickets."
    • removedOutput schema / properties / tickets / items
      Removed value: -{
      -  "additionalProperties": {},
      -  "properties": {
      -    "bookingLink": {
      -      "type": "string"
      -    },
      -    "index": {
      -      "type": "number"
      -    }
      -  },
      -  "required": [
      -    "index",
      -    "bookingLink"
      -  ],
      -  "type": "object"
      -}
    • removedOutput schema / properties / tickets / type
      Removed value: -"array"
  3. Changed6 schema fields changed
    • changedInput schema / properties / id / description
      Previous value: -"Offer id returned by search_flights (offers[].id). Valid for about 30 minutes."New value: +"Offer id returned by search_flights (offers[].id). Valid for about 30 minutes. Required: send it as id (or offerId, offer_id, offer)."
    • addedInput schema / properties / id / examples
      Added value: +[
      +  "off_8f2c1a"
      +]
    • addedInput schema / properties / offer
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "additionalProperties": {},
      +      "properties": {
      +        "id": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "id"
      +      ],
      +      "type": "object"
      +    }
      +  ],
      +  "description": "Same as id (alias): the offer id, or the offer object from search_flights (its id is used)."
      +}
    • addedInput schema / properties / offerId
      Added value: +{
      +  "description": "Same as id (alias). Use id; offerId is accepted too.",
      +  "type": "string"
      +}
    • addedInput schema / properties / offer_id
      Added value: +{
      +  "description": "Same as id (alias). Use id; offer_id is accepted too.",
      +  "type": "string"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "id"
      -]
  4. Changed6 schema fields changed
    • removedOutput schema / properties / alternatives
      Removed value: -{
      -  "items": {
      -    "additionalProperties": {},
      -    "properties": {},
      -    "type": "object"
      -  },
      -  "type": "array"
      -}
    • addedOutput schema / properties / bookable
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / bookingLink / description
      Added value: +"lowest.flights /go link. Send the traveller here. No other booking URL is returned."
    • addedOutput schema / properties / priceKind
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / separateTickets
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / tickets
      Added value: +{
      +  "description": "When the trip is on separate tickets, one /go link per ticket.",
      +  "items": {
      +    "additionalProperties": {},
      +    "properties": {
      +      "bookingLink": {
      +        "type": "string"
      +      },
      +      "index": {
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "index",
      +      "bookingLink"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  5. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "additionalProperties": {},
      +  "properties": {
      +    "alternatives": {
      +      "items": {
      +        "additionalProperties": {},
      +        "properties": {},
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "bookingLink": {
      +      "type": "string"
      +    },
      +    "id": {
      +      "type": "string"
      +    },
      +    "notes": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "id",
      +    "bookingLink"
      +  ],
      +  "type": "object"
      +}
  6. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive) so the bar is lower, and the description still adds real behavior: the bookingLink field to hand off, tickets[] for separate-ticket itineraries, and that an expired id yields offer_expired rather than a substitute flight. That last point is a genuinely useful failure-mode disclosure; only auth/rate-limit context is absent.

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?

Dense and front-loaded: the output field comes first, then the multi-ticket case, then the error case, then the alias note. The telegraphic fragments ("Expired id: offer_expired error") are slightly clipped but nothing is wasted.

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?

An output schema exists, yet the description still usefully names bookingLink and tickets[], and it covers the expired-offer failure path. The one real gap is that it never states one identifier must be provided, which matters given all four parameters are optional.

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 would be 3, but the description adds the alias precedence rule ("id wins") that resolves ambiguity the schema leaves open across the four accepted keys. It does not clarify that at least one of the aliases must be supplied despite zero required parameters.

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?

"Booking link for an offer: send the traveller to bookingLink" names a specific resource and the exact output field to use. It is clearly distinct from get_flight_offer or search_flights, though it never names a sibling to contrast with.

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

Usage Guidelines3/5

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

Usage is only implied: the id is an offer id, which suggests this runs after a search, and the expired-id note hints at freshness constraints. There is no explicit statement of when to call this versus get_flight_offer or get_search_results, and no prerequisites are spelled out.

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.