Skip to main content
Glama

Get flight offer

get_flight_offer
Read-onlyIdempotent

Full details of one offer from search_flights. Example: {"id":"off_8f2c1a"}. Expires ~20 min after the search (offer_expired). 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_flight_offer"
  }
}

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

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. Changed6 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."
    • removedOutput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
  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. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "additionalProperties": {},
      +  "properties": {
      +    "id": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "id"
      +  ],
      +  "type": "object"
      +}
  5. 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 the safety profile (readOnly, idempotent, non-destructive, open-world), so the description's job is to add operational context, which it does: a ~20 minute lifetime and the specific failure mode name (offer_expired). It does not say what the caller should do on that error (e.g., re-run search_flights), which keeps it below 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?

Three short sentences with the core purpose first, then a concrete example, then the expiry behavior and aliasing note. Every sentence carries distinct information and nothing is repeated from the title.

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, so return values need not be described, and the key temporal constraint plus error name are covered. The remaining gap is the missing requirement statement about supplying an identifier and the recovery path after offer_expired, which matters for a lookup tool with four optional alias parameters.

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 the baseline is 3, and the description adds only the precedence rule ("id wins") on top of what each parameter already documents. More importantly, the schema declares zero required parameters, and the description never states that at least one of the id/offer/offerId/offer_id aliases must actually be supplied, leaving a real ambiguity unresolved.

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?

"Full details of one offer from search_flights" gives a specific resource (a single offer) and ties it directly to the producing sibling, so an agent can tell it apart from search_flights and get_search_results. It stops just short of a 5 because "full details" never says what the details actually contain, and the link to the sibling is implied by origin rather than by contrast.

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?

The description implies the usage pattern (call this after search_flights to expand one offer) and the expiry note reinforces that this is a follow-up step. It gives no explicit when-to-use versus when-not, and does not mention the other sibling that could re-surface results (get_search_results) or what to do once an offer has expired.

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.