Skip to main content
Glama

Live offers

get_hotel_offers
Read-onlyIdempotent

Use this when the user wants what a stay really costs or whether it can be booked, at hotels already found, and before create_order. It returns live, bookable offers for up to 15 hotels and one stay. Every room in stay.rooms must have the same party: for different parties, call once per party. Each offer has the room type, the meals included, the total, in the request's currency, for the whole stay and every room (what is charged), with its average per room-night for comparison, fees payable at the property, the cancellation terms with times in UTC and the hotel's time zone, the confirmation mode, and an offerId for create_order with the time it expires. Hotels with nothing to offer are listed as unavailable with the reason. Up to limitPerHotel offers per hotel (default 15, fewer when the call's hotels share its 45 offers), picked to span price, free cancellation, breakfast and rooms, listed cheapest first; the answer says, per hotel, how many more a call for that hotel alone would show.

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": {
      "hotelIds": "<hotelIds>",
      "stay": "<stay>"
    },
    "name": "get_hotel_offers"
  }
}

Input Schema

NameRequiredDescriptionDefault
stayYesDates and party. One party per call: every room must be the same.
localeNoLanguage for names and text in the response: en or zh.
filtersNoFilters every offer must pass.
currencyNoThe currency of every price: USD (default) or CNY. Each currency is paid through its own channel, with its own payment methods; the order's payment page shows them. CNY is paid through payment channels in mainland China and suits a user who pays that way. An order made from these offers is charged in this currency.
hotelIdsYesHotels to price, 1 to 15, no repeats.
limitPerHotelNoOffers per hotel, 1 to 30. Left out: 15 for each hotel that has offers while that is at most 45 offers in all, otherwise 45 split evenly among those hotels (5 hotels: 9 each; 15 hotels: 3 each). Given: that many for each hotel while that is at most 100 offers in all, otherwise 100 split evenly the same way. The answer says, for each hotel, how many more offers a call for that hotel alone would show.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • removedInput schema / properties / limitPerHotel / default
      Removed value: -15
    • changedInput schema / properties / limitPerHotel / description
      Previous value: -"Offers per hotel, 1 to 30. Default 15."New value: +"Offers per hotel, 1 to 30. Left out: 15 for each hotel that has offers while that is at most 45 offers in all, otherwise 45 split evenly among those hotels (5 hotels: 9 each; 15 hotels: 3 each). Given: that many for each hotel while that is at most 100 offers in all, otherwise 100 split evenly the same way. The answer says, for each hotel, how many more offers a call for that hotel alone would show."
    • changedOutput schema / (root)
      Previous value: -{
      -  "$schema": "https://json-schema.org/draft/2020-12/schema",
      -  "additionalProperties": {},
      -  "properties": {
      -    "hotels": {
      -      "items": {
      -        "additionalProperties": {},
      -        "properties": {
      -          "hotel": {
      -            "additionalProperties": {},
      -            "properties": {
      -              "hotelId": {
      -                "pattern": "^htl_[0-9A-Za-z]{20}$",
      -                "type": "string"
      -              },
      -              "name": {
      -                "type": "string"
      -              },
      -              "names": {
      -                "additionalProperties": {},
      -                "properties": {
      -                  "en": {
      -                    "type": [
      -                      "string",
      -                      "null"
      -                    ]
      -                  },
      -                  "zh": {
      -                    "type": [
      -                      "string",
      -                      "null"
      -                    ]
      -                  }
      -                },
      -                "required": [
      -                  "en",
      -                  "zh"
      -                ],
      -                "type": "object"
      -              }
      -            },
      -            "required": [
      -              "hotelId",
      -              "name",
      -              "names"
      -            ],
      -            "type": "object"
      -          },
      -          "offers": {
      -            "items": {
      -              "additionalProperties": {},
      -              "properties": {
      -                "cancellation": {
      -                  "additionalProperties": {},
      -                  "description": "The cancellation terms, read at asOf.",
      -                  "properties": {
      -                    "asOf": {
      -                      "description": "When these terms were read: status and penalties are as of this time.",
      -                      "pattern": "^\\d{4}-\\d{2}-\\d{2}T(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?Z$",
      -                      "type": "string"
      -                    },
      -                    "freeCancellationEndsAt": {
      -                      "anyOf": [
      -                        {
      -                          "pattern": "^\\d{4}-\\d{2}-\\d{2}T(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?Z$",
      -                          "type": "string"
      -                        },
      -                        {
      -                          "type": "null"
      -                        }
      -                      ]
      -                    },
      -                    "penalties": {
      -                      "items": {
      -                        "additionalProperties": {},
      -                        "properties": {
      -                          "amount": {
      -                            "additionalProperties": {},
      -                            "properties": {
      -                              "amount": {
      -                                "pattern": "^\\d+(\\.\\d+)?$",
      -                                "type": "string"
      -                              },
      -                              "currency": {
      -                                "pattern": "^[A-Z]{3}$",
      -                                "type": "string"
      -                              }
      -                            },
      -                            "required": [
      -                              "amount",
      -                              "currency"
      -                            ],
      -                            "type": "object"
      -                          },
      -                          "startsAt": {
      -                            "anyOf": [
      -                              {
      -                                "pattern": "^\\d{4}-\\d{2}-\\d{2}T(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?Z$",
      -                                "type": "string"
      -                              },
      -                              {
      -                                "type": "null"
      -                              }
      -                            ]
      -                          }
      -                        },
      -                        "required": [
      -                          "startsAt",
      -                          "amount"
      -                        ],
      -                        "type": "object"
      -                      },
      -                      "type": "array"
      -                    },
      -                    "status": {
      -                      "anyOf": [
      -                        {
      -                          "enum": [
      -                            "free",
      -                            "partial_penalty",
      -                            "non_refundable",
      -                            "unknown"
      -                          ],
      -                          "type": "string"
      -                        },
      -                        {
      -                          "type": "string"
      -                        }
      -                      ]
      -                    },
      -                    "timeZone": {
      -                      "type": [
      -                        "string",
      -                        "null"
      -                      ]
      -                    }
      -                  },
      -                  "required": [
      -                    "status",
      -                    "asOf",
      -                    "freeCancellationEndsAt",
      -                    "penalties",
      -                    "timeZone"
      -                  ],
      -                  "type": "object"
      -                },
      -                "confirmation": {
      -                  "additionalProperties": {},
      -                  "description": "How the hotel confirms a booking of this offer.",
      -                  "properties": {
      -                    "mode": {
      -                      "anyOf": [
      -                        {
      -                          "enum": [
      -                            "instant",
      -                            "on_request",
      -                            "unknown"
      -                          ],
      -                          "type": "string"
      -                        },
      -                        {
      -                          "type": "string"
      -                        }
      -                      ],
      -                      "description": "instant: the hotel confirms the booking as soon as it is made. on_request: the hotel confirms or refuses it later, within withinMinutes when stated. unknown: not stated."
      -                    },
      -                    "withinMinutes": {
      -                      "anyOf": [
      -                        {
      -                          "maximum": 9007199254740991,
      -                          "minimum": -9007199254740991,
      -                          "type": "integer"
      -                        },
      -                        {
      -                          "type": "null"
      -                        }
      -                      ],
      -                      "description": "For on_request, the minutes the hotel takes to confirm; null when instant or not stated."
      -                    }
      -                  },
      -                  "required": [
      -                    "mode",
      -                    "withinMinutes"
      -                  ],
      -                  "type": "object"
      -                },
      -                "expiresAt": {
      -                  "pattern": "^\\d{4}-\\d{2}-\\d{2}T(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?Z$",
      -                  "type": "string"
      -                },
      -                "hotel": {
      -                  "additionalProperties": {},
      -                  "properties": {
      -                    "hotelId": {
      -                      "pattern": "^htl_[0-9A-Za-z]{20}$",
      -                      "type": "string"
      -                    },
      -                    "meals": {
      -                      "additionalProperties": {},
      -                      "description": "What the rate includes to eat. known false: the meals are unknown, not none, and included, unspecifiedMainMeals and allInclusive are null.",
      -                      "properties": {
      -                        "allInclusive": {
      -                          "type": [
      -                            "boolean",
      -                            "null"
      -                          ]
      -                        },
      -                        "guestsCoveredPerRoom": {
      -                          "anyOf": [
      -                            {
      -                              "maximum": 9007199254740991,
      -                              "minimum": -9007199254740991,
      -                              "type": "integer"
      -                            },
      -                            {
      -                              "type": "null"
      -                            }
      -                          ],
      -                          "description": "How many guests in each room the meals are for; fewer than the guests in the room means not everyone gets them. null when not stated."
      -                        },
      -                        "included": {
      -                          "anyOf": [
      -                            {
      -                              "items": {
      -                                "anyOf": [
      -                                  {
      -                                    "enum": [
      -                                      "breakfast",
      -                                      "lunch",
      -                                      "dinner"
      -                                    ],
      -                                    "type": "string"
      -                                  },
      -                                  {
      -                                    "type": "string"
      -                                  }
      -                                ]
      -                              },
      -                              "type": "array"
      -                            },
      -                            {
      -                              "type": "null"
      -                            }
      -                          ]
      -                        },
      -                        "known": {
      -                          "type": "boolean"
      -                        },
      -                        "label": {
      -                          "anyOf": [
      -                            {
      -                              "additionalProperties": {},
      -                              "properties": {
      -                                "locale": {
      -                                  "anyOf": [
      -                                    {
      -                                      "anyOf": [
      -                                        {
      -                                          "enum": [
      -                                            "en",
      -                                            "zh"
      -                                          ],
      -                                          "type": "string"
      -                                        },
      -                                        {
      -                                          "type": "string"
      -                                        }
      -                                      ]
      -                                    },
      -                                    {
      -                                      "type": "null"
      -                                    }
      -                                  ]
      -                                },
      -                                "text": {
      -                                  "type": "string"
      -                                }
      -                              },
      -                              "required": [
      -                                "text",
      -                                "locale"
      -                              ],
      -                              "type": "object"
      -                            },
      -                            {
      -                              "type": "null"
      -                            }
      -                          ]
      -                        },
      -                        "unspecifiedMainMeals": {
      -                          "anyOf": [
      -                            {
      -                              "maximum": 9007199254740991,
      -                              "minimum": -9007199254740991,
      -                              "type": "integer"
      -                            },
      -                            {
      -                              "type": "null"
      -                            }
      -                          ],
      -                          "description": "Main meals a day beyond included that the rate doesn't name (e.g. 1 when a half-board rate doesn't say lunch or dinner); null when known is false."
      -                        }
      -                      },
      -                      "required": [
      -                        "known",
      -                        "included",
      -                        "unspecifiedMainMeals",
      -                        "allInclusive",
      -                        "guestsCoveredPerRoom",
      -                        "label"
      -                      ],
      -                      "type": "object"
      -                    },
      -                    "room": {
      -                      "additionalProperties": {},
      -                      "properties": {
      -                        "areaSqm": {
      -                          "anyOf": [
      -                            {
      -                              "additionalProperties": {},
      -                              "properties": {
      -                                "max": {
      -                                  "type": "number"
      -                                },
      -                                "min": {
      -                                  "type": "number"
      -                                }
      -                              },
      -                              "required": [
      -                                "min",
      -                                "max"
      -                              ],
      -                              "type": "object"
      -                            },
      -                            {
      -                              "type": "null"
      -                            }
      -                          ]
      -                        },
      -                        "beds": {
      -                          "anyOf": [
      -                            {
      -                              "additionalProperties": {},
      -                              "properties": {
      -                                "locale": {
      -                                  "anyOf": [
      -                                    {
      -                                      "anyOf": [
      -                                        {
      -                                          "enum": [
      -                                            "en",
      -                                            "zh"
      -                                          ],
      -                                          "type": "string"
      -                                        },
      -                                        {
      -                                          "type": "string"
      -                                        }
      -                                      ]
      -                                    },
      -                                    {
      -                                      "type": "null"
      -                                    }
      -                                  ]
      -                                },
      -                                "text": {
      -                                  "type": "string"
      -                                }
      -                              },
      -                              "required": [
      -                                "text",
      -                                "locale"
      -                              ],
      -                              "type": "object"
      -                            },
      -                            {
      -                              "type": "null"
      -                            }
      -                          ]
      -                        },
      -                        "maxOccupancy": {
      -                          "anyOf": [
      -                            {
      -                              "maximum": 9007199254740991,
      -                              "minimum": -9007199254740991,
      -                              "type": "integer"
      -                            },
      -                            {
      -                              "type": "null"
      -                            }
      -                          ]
      -                        },
      -                        "name": {
      -                          "anyOf": [
      -                            {
      -                              "additionalProperties": {},
      -                              "properties": {
      -                                "locale": {
      -                                  "anyOf": [
      -                                    {
      -                                      "anyOf": [
      -                                        {
      -                                          "enum": [
      -                                            "en",
      -                                            "zh"
      -                                          ],
      -                                          "type": "string"
      -                                        },
      -                                        {
      -                                          "type": "string"
      -                                        }
      -                                      ]
      -                                    },
      -                                    {
      -                                      "type": "null"
      -                                    }
      -                                  ]
      -                                },
      -                                "text": {
      -                                  "type": "string"
      -                                }
      -                              },
      -                              "required": [
      -                                "text",
      -                                "locale"
      -                              ],
      -                              "type": "object"
      -                            },
      -                            {
      -                              "type": "null"
      -                            }
      -                          ]
      -                        },
      -                        "window": {
      -                          "anyOf": [
      -                            {
      -                              "anyOf": [
      -                                {
      -                                  "enum": [
      -                                    "yes",
      -                                    "no",
      -                                    "partial"
      -                                  ],
      -                                  "type": "string"
      -                                },
      -                                {
      -                                  "type": "string"
      -                                }
      -                              ]
      -                            },
      -                            {
      -                              "type": "null"
      -                            }
      -                          ]
      -                        }
      -                      },
      -                      "required": [
      -                        "name",
      -                        "beds",
      -                        "areaSqm",
      -                        "maxOccupancy",
      -                        "window"
      -                      ],
      -                      "type": "object"
      -                    },
      -                    "roomCount": {
      -                      "maximum": 9007199254740991,
      -                      "minimum": -9007199254740991,
      -                      "type": "integer"
      -                    }
      -                  },
      -                  "required": [
      -                    "hotelId",
      -                    "room",
      -                    "roomCount",
      -                    "meals"
      -                  ],
      -                  "type": "object"
      -                },
      -                "offerId": {
      -                  "pattern": "^off_[0-9A-Za-z]{20}$",
      -                  "type": "string"
      -                },
      -                "price": {
      -                  "additionalProperties": {},
      -                  "properties": {
      -                    "payAtProperty": {
      -                      "additionalProperties": {},
      -                      "description": "Fees paid at the property, on top of price.total, in the property's currency, not converted. disclosure incomplete: there may be fees not listed.",
      -                      "properties": {
      -                        "disclosure": {
      -                          "anyOf": [
      -                            {
      -                              "enum": [
      -                                "complete",
      -                                "incomplete"
      -                              ],
      -                              "type": "string"
      -                            },
      -                            {
      -                              "type": "string"
      -                            }
      -                          ]
      -                        },
      -                        "items": {
      -                          "items": {
      -                            "additionalProperties": {},
      -                            "properties": {
      -                              "amount": {
      -                                "anyOf": [
      -                                  {
      -                                    "additionalProperties": {},
      -                                    "properties": {
      -                                      "amount": {
      -                                        "pattern": "^\\d+(\\.\\d+)?$",
      -                                        "type": "string"
      -                                      },
      -                                      "currency": {
      -                                        "pattern": "^[A-Z]{3}$",
      -                                        "type": "string"
      -                                      }
      -                                    },
      -                                    "required": [
      -                                      "amount",
      -                                      "currency"
      -                                    ],
      -                                    "type": "object"
      -                                  },
      -                                  {
      -                                    "type": "null"
      -                                  }
      -                                ]
      -                              },
      -                              "basis": {
      -                                "anyOf": [
      -                                  {
      -                                    "enum": [
      -                                      "per_stay",
      -                                      "per_night",
      -                                      "per_person",
      -                                      "per_person_per_night",
      -                                      "unknown"
      -                                    ],
      -                                    "type": "string"
      -                                  },
      -                                  {
      -                                    "type": "string"
      -                                  }
      -                                ]
      -                              },
      -                              "collectedAt": {
      -                                "anyOf": [
      -                                  {
      -                                    "enum": [
      -                                      "property",
      -                                      "unknown"
      -                                    ],
      -                                    "type": "string"
      -                                  },
      -                                  {
      -                                    "type": "string"
      -                                  }
      -                                ]
      -                              },
      -                              "label": {
      -                                "anyOf": [
      -                                  {
      -                                    "additionalProperties": {},
      -                                    "properties": {
      -                                      "locale": {
      -                                        "anyOf": [
      -                                          {
      -                                            "anyOf": [
      -                                              {
      -                                                "enum": [
      -                                                  "en",
      -                                                  "zh"
      -                                                ],
      -                                                "type": "string"
      -                                              },
      -                                              {
      -                                                "type": "string"
      -                                              }
      -                                            ]
      -                                          },
      -                                          {
      -                                            "type": "null"
      -                                          }
      -                                        ]
      -                                      },
      -                                      "text": {
      -                                        "type": "string"
      -                                      }
      -                                    },
      -                                    "required": [
      -                                      "text",
      -                                      "locale"
      -                                    ],
      -                                    "type": "object"
      -                                  },
      -                                  {
      -                                    "type": "null"
      -                                  }
      -                                ]
      -                              },
      -                              "mandatory": {
      -                                "type": "boolean"
      -                              }
      -                            },
      -                            "required": [
      -                              "label",
      -                              "amount",
      -                              "mandatory",
      -                              "basis",
      -                              "collectedAt"
      -                            ],
      -                            "type": "object"
      -                          },
      -                          "type": "array"
      -                        }
      -                      },
      -                      "required": [
      -                        "disclosure",
      -                        "items"
      -                      ],
      -                      "type": "object"
      -                    },
      -                    "perNightAllRooms": {
      -                      "additionalProperties": {},
      -                      "description": "price.total divided by the nights: all rooms, one night. A search's fromPerRoomNight is for one room; divide by roomCount to compare.",
      -                      "properties": {
      -                        "amount": {
      -                          "pattern": "^\\d+(\\.\\d+)?$",
      -                          "type": "string"
      -                        },
      -                        "currency": {
      -                          "pattern": "^[A-Z]{3}$",
      -                          "type": "string"
      -                        }
      -                      },
      -                      "required": [
      -                        "amount",
      -                        "currency"
      -                      ],
      -                      "type": "object"
      -                    },
      -                    "total": {
      -                      "additionalProperties": {},
      -                      "properties": {
      -                        "amount": {
      -                          "pattern": "^\\d+(\\.\\d+)?$",
      -                          "type": "string"
      -                        },
      -                        "currency": {
      -                          "pattern": "^[A-Z]{3}$",
      -                          "type": "string"
      -                        }
      -                      },
      -                      "required": [
      -                        "amount",
      -                        "currency"
      -                      ],
      -                      "type": "object"
      -                    }
      -                  },
      -                  "required": [
      -                    "total",
      -                    "perNightAllRooms",
      -                    "payAtProperty"
      -                  ],
      -                  "type": "object"
      -                },
      -                "type": {
      -                  "anyOf": [
      -                    {
      -                      "enum": [
      -                        "hotel"
      -                      ],
      -                      "type": "string"
      -                    },
      -                    {
      -                      "type": "string"
      -                    }
      -                  ]
      -                }
      -              },
      -              "required": [
      -                "offerId",
      -                "type",
      -                "expiresAt",
      -                "hotel",
      -                "price",
      -                "cancellation",
      -                "confirmation"
      -              ],
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "omitted": {
      -            "additionalProperties": {},
      -            "description": "How many offers each selection step left out.",
      -            "properties": {
      -              "byFilters": {
      -                "description": "Offers left out by filters.",
      -                "maximum": 9007199254740991,
      -                "minimum": -9007199254740991,
      -                "type": "integer"
      -              },
      -              "byLimit": {
      -                "description": "Offers left out by limitPerHotel.",
      -                "maximum": 9007199254740991,
      -                "minimum": -9007199254740991,
      -                "type": "integer"
      -              },
      -              "byNationality": {
      -                "description": "Offers left out because the hotel sells them only to guests of some nationalities; Fortrip can't book them.",
      -                "maximum": 9007199254740991,
      -                "minimum": -9007199254740991,
      -                "type": "integer"
      -              },
      -              "dominated": {
      -                "description": "Offers left out because another offer of the same room is as good on price and every term, or can't be told apart from one kept.",
      -                "maximum": 9007199254740991,
      -                "minimum": -9007199254740991,
      -                "type": "integer"
      -              },
      -              "unreadable": {
      -                "description": "Offers left out because their details came back incomplete or inconsistent.",
      -                "maximum": 9007199254740991,
      -                "minimum": -9007199254740991,
      -                "type": "integer"
      -              }
      -            },
      -            "required": [
      -              "byNationality",
      -              "byFilters",
      -              "dominated",
      -              "unreadable",
      -              "byLimit"
      -            ],
      -            "type": "object"
      -          }
      -        },
      -        "required": [
      -          "hotel",
      -          "offers",
      -          "omitted"
      -        ],
      -        "type": "object"
      -      },
      -      "type": "array"
      -    },
      -    "stay": {
      -      "additionalProperties": {},
      -      "properties": {
      -        "checkIn": {
      -          "type": "string"
      -        },
      -        "checkOut": {
      -          "type": "string"
      -        },
      -        "rooms": {
      -          "items": {
      -            "additionalProperties": {},
      -            "properties": {
      -              "adults": {
      -                "maximum": 9007199254740991,
      -                "minimum": -9007199254740991,
      -                "type": "integer"
      -              },
      -              "childrenAges": {
      -                "items": {
      -                  "maximum": 9007199254740991,
      -                  "minimum": -9007199254740991,
      -                  "type": "integer"
      -                },
      -                "type": "array"
      -              }
      -            },
      -            "required": [
      -              "adults",
      -              "childrenAges"
      -            ],
      -            "type": "object"
      -          },
      -          "minItems": 1,
      -          "type": "array"
      -        }
      -      },
      -      "required": [
      -        "checkIn",
      -        "checkOut",
      -        "rooms"
      -      ],
      -      "type": "object"
      -    },
      -    "unavailable": {
      -      "items": {
      -        "additionalProperties": {},
      -        "properties": {
      -          "hotelId": {
      -            "pattern": "^htl_[0-9A-Za-z]{20}$",
      -            "type": "string"
      -          },
      -          "omitted": {
      -            "anyOf": [
      -              {
      -                "additionalProperties": {},
      -                "description": "How many offers each selection step left out.",
      -                "properties": {
      -                  "byFilters": {
      -                    "description": "Offers left out by filters.",
      -                    "maximum": 9007199254740991,
      -                    "minimum": -9007199254740991,
      -                    "type": "integer"
      -                  },
      -                  "byLimit": {
      -                    "description": "Offers left out by limitPerHotel.",
      -                    "maximum": 9007199254740991,
      -                    "minimum": -9007199254740991,
      -                    "type": "integer"
      -                  },
      -                  "byNationality": {
      -                    "description": "Offers left out because the hotel sells them only to guests of some nationalities; Fortrip can't book them.",
      -                    "maximum": 9007199254740991,
      -                    "minimum": -9007199254740991,
      -                    "type": "integer"
      -                  },
      -                  "dominated": {
      -                    "description": "Offers left out because another offer of the same room is as good on price and every term, or can't be told apart from one kept.",
      -                    "maximum": 9007199254740991,
      -                    "minimum": -9007199254740991,
      -                    "type": "integer"
      -                  },
      -                  "unreadable": {
      -                    "description": "Offers left out because their details came back incomplete or inconsistent.",
      -                    "maximum": 9007199254740991,
      -                    "minimum": -9007199254740991,
      -                    "type": "integer"
      -                  }
      -                },
      -                "required": [
      -                  "byNationality",
      -                  "byFilters",
      -                  "dominated",
      -                  "unreadable",
      -                  "byLimit"
      -                ],
      -                "type": "object"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "reason": {
      -            "anyOf": [
      -              {
      -                "enum": [
      -                  "sold_out",
      -                  "no_matching_offers",
      -                  "nationality_restricted",
      -                  "offers_unreadable",
      -                  "not_found",
      -                  "supplier_unavailable",
      -                  "stay_in_past"
      -                ],
      -                "type": "string"
      -              },
      -              {
      -                "type": "string"
      -              }
      -            ],
      -            "description": "Why the hotel has no offers: sold_out (nothing left for the stay), no_matching_offers (the filters left none), nationality_restricted (the hotel sells this stay only to guests of some nationalities; Fortrip can't book it), offers_unreadable (its offers came back incomplete or inconsistent), not_found (Fortrip has no bookable hotel with this hotelId), supplier_unavailable (offers couldn't be fetched this time; try again), stay_in_past (check-in has passed in the hotel's time zone)."
      -          }
      -        },
      -        "required": [
      -          "hotelId",
      -          "reason",
      -          "omitted"
      -        ],
      -        "type": "object"
      -      },
      -      "type": "array"
      -    }
      -  },
      -  "required": [
      -    "stay",
      -    "hotels",
      -    "unavailable"
      -  ],
      -  "type": "object"
      -}New value: +null
  2. Changed4 schema fields changed
    • changedInput schema / properties / currency / description
      Previous value: -"The currency to price and charge in: USD (default) or CNY, where available (otherwise the answer is currency_unavailable). Use CNY only for a user who pays with Alipay, WeChat Pay or a bank card from mainland China, the only ways a CNY order can be paid: when they ask for CNY or say they pay that way. Ask only when the conversation suggests it; otherwise keep USD. An order made from these offers is charged in this currency."New value: +"The currency of every price: USD (default) or CNY. Each currency is paid through its own channel, with its own payment methods; the order's payment page shows them. CNY is paid through payment channels in mainland China and suits a user who pays that way. An order made from these offers is charged in this currency."
    • changedInput schema / properties / limitPerHotel / default
      Previous value: -10New value: +15
    • changedInput schema / properties / limitPerHotel / description
      Previous value: -"Offers per hotel, 1 to 20. Default 10."New value: +"Offers per hotel, 1 to 30. Default 15."
    • changedInput schema / properties / limitPerHotel / maximum
      Previous value: -20New value: +30
  3. Changed1 schema field changed
    • changedInput schema / properties / currency / description
      Previous value: -"The currency to price and charge in: USD (default) or CNY, where available (otherwise the answer is currency_unavailable). An order made from these offers is charged in this currency."New value: +"The currency to price and charge in: USD (default) or CNY, where available (otherwise the answer is currency_unavailable). Use CNY only for a user who pays with Alipay, WeChat Pay or a bank card from mainland China, the only ways a CNY order can be paid: when they ask for CNY or say they pay that way. Ask only when the conversation suggests it; otherwise keep USD. An order made from these offers is charged in this currency."
  4. Changed22 schema fields changed
    • addedInput schema / properties / currency
      Added value: +{
      +  "description": "The currency to price and charge in: USD (default) or CNY, where available (otherwise the answer is currency_unavailable). An order made from these offers is charged in this currency.",
      +  "enum": [
      +    "USD",
      +    "CNY"
      +  ],
      +  "type": "string"
      +}
    • removedInput schema / properties / displayCurrency
      Removed value: -{
      -  "description": "Currency to show prices in, USD or CNY. It never changes what is charged: payment is in USD.",
      -  "enum": [
      -    "USD",
      -    "CNY"
      -  ],
      -  "type": "string"
      -}
    • addedOutput schema / properties / hotels / items / properties / offers / items / properties / cancellation / description
      Added value: +"The cancellation terms, read at asOf."
    • addedOutput schema / properties / hotels / items / properties / offers / items / properties / cancellation / properties / asOf / description
      Added value: +"When these terms were read: status and penalties are as of this time."
    • addedOutput schema / properties / hotels / items / properties / offers / items / properties / confirmation / description
      Added value: +"How the hotel confirms a booking of this offer."
    • addedOutput schema / properties / hotels / items / properties / offers / items / properties / confirmation / properties / mode / description
      Added value: +"instant: the hotel confirms the booking as soon as it is made. on_request: the hotel confirms or refuses it later, within withinMinutes when stated. unknown: not stated."
    • addedOutput schema / properties / hotels / items / properties / offers / items / properties / confirmation / properties / withinMinutes / description
      Added value: +"For on_request, the minutes the hotel takes to confirm; null when instant or not stated."
    • addedOutput schema / properties / hotels / items / properties / offers / items / properties / hotel / properties / meals / description
      Added value: +"What the rate includes to eat. known false: the meals are unknown, not none, and included, unspecifiedMainMeals and allInclusive are null."
    • addedOutput schema / properties / hotels / items / properties / offers / items / properties / hotel / properties / meals / properties / guestsCoveredPerRoom / description
      Added value: +"How many guests in each room the meals are for; fewer than the guests in the room means not everyone gets them. null when not stated."
    • addedOutput schema / properties / hotels / items / properties / offers / items / properties / hotel / properties / meals / properties / unspecifiedMainMeals / description
      Added value: +"Main meals a day beyond included that the rate doesn't name (e.g. 1 when a half-board rate doesn't say lunch or dinner); null when known is false."
    • removedOutput schema / properties / hotels / items / properties / offers / items / properties / price / properties / approx
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "additionalProperties": {},
      -      "properties": {
      -        "perNightAllRooms": {
      -          "additionalProperties": {},
      -          "properties": {
      -            "amount": {
      -              "pattern": "^\\d+(\\.\\d+)?$",
      -              "type": "string"
      -            },
      -            "currency": {
      -              "pattern": "^[A-Z]{3}$",
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "amount",
      -            "currency"
      -          ],
      -          "type": "object"
      -        },
      -        "rateDate": {
      -          "type": "string"
      -        },
      -        "total": {
      -          "additionalProperties": {},
      -          "properties": {
      -            "amount": {
      -              "pattern": "^\\d+(\\.\\d+)?$",
      -              "type": "string"
      -            },
      -            "currency": {
      -              "pattern": "^[A-Z]{3}$",
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "amount",
      -            "currency"
      -          ],
      -          "type": "object"
      -        }
      -      },
      -      "required": [
      -        "total",
      -        "perNightAllRooms",
      -        "rateDate"
      -      ],
      -      "type": "object"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ]
      -}
    • addedOutput schema / properties / hotels / items / properties / offers / items / properties / price / properties / payAtProperty / description
      Added value: +"Fees paid at the property, on top of price.total, in the property's currency, not converted. disclosure incomplete: there may be fees not listed."
    • addedOutput schema / properties / hotels / items / properties / offers / items / properties / price / properties / perNightAllRooms / description
      Added value: +"price.total divided by the nights: all rooms, one night. A search's fromPerRoomNight is for one room; divide by roomCount to compare."
    • changedOutput schema / properties / hotels / items / properties / offers / items / properties / price / required
      Previous value: -[
      -  "total",
      -  "perNightAllRooms",
      -  "approx",
      -  "payAtProperty"
      -]New value: +[
      +  "total",
      +  "perNightAllRooms",
      +  "payAtProperty"
      +]
    • addedOutput schema / properties / hotels / items / properties / omitted / description
      Added value: +"How many offers each selection step left out."
    • addedOutput schema / properties / hotels / items / properties / omitted / properties / byFilters / description
      Added value: +"Offers left out by filters."
    • addedOutput schema / properties / hotels / items / properties / omitted / properties / byLimit / description
      Added value: +"Offers left out by limitPerHotel."
    • addedOutput schema / properties / hotels / items / properties / omitted / properties / byNationality / description
      Added value: +"Offers left out because the hotel sells them only to guests of some nationalities; Fortrip can't book them."
    • addedOutput schema / properties / hotels / items / properties / omitted / properties / dominated / description
      Added value: +"Offers left out because another offer of the same room is as good on price and every term, or can't be told apart from one kept."
    • addedOutput schema / properties / hotels / items / properties / omitted / properties / unreadable / description
      Added value: +"Offers left out because their details came back incomplete or inconsistent."
    • changedOutput schema / properties / unavailable / items / properties / omitted / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": {},
      -    "properties": {
      -      "byFilters": {
      -        "maximum": 9007199254740991,
      -        "minimum": -9007199254740991,
      -        "type": "integer"
      -      },
      -      "byLimit": {
      -        "maximum": 9007199254740991,
      -        "minimum": -9007199254740991,
      -        "type": "integer"
      -      },
      -      "byNationality": {
      -        "maximum": 9007199254740991,
      -        "minimum": -9007199254740991,
      -        "type": "integer"
      -      },
      -      "dominated": {
      -        "maximum": 9007199254740991,
      -        "minimum": -9007199254740991,
      -        "type": "integer"
      -      },
      -      "unreadable": {
      -        "maximum": 9007199254740991,
      -        "minimum": -9007199254740991,
      -        "type": "integer"
      -      }
      -    },
      -    "required": [
      -      "byNationality",
      -      "byFilters",
      -      "dominated",
      -      "unreadable",
      -      "byLimit"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": {},
      +    "description": "How many offers each selection step left out.",
      +    "properties": {
      +      "byFilters": {
      +        "description": "Offers left out by filters.",
      +        "maximum": 9007199254740991,
      +        "minimum": -9007199254740991,
      +        "type": "integer"
      +      },
      +      "byLimit": {
      +        "description": "Offers left out by limitPerHotel.",
      +        "maximum": 9007199254740991,
      +        "minimum": -9007199254740991,
      +        "type": "integer"
      +      },
      +      "byNationality": {
      +        "description": "Offers left out because the hotel sells them only to guests of some nationalities; Fortrip can't book them.",
      +        "maximum": 9007199254740991,
      +        "minimum": -9007199254740991,
      +        "type": "integer"
      +      },
      +      "dominated": {
      +        "description": "Offers left out because another offer of the same room is as good on price and every term, or can't be told apart from one kept.",
      +        "maximum": 9007199254740991,
      +        "minimum": -9007199254740991,
      +        "type": "integer"
      +      },
      +      "unreadable": {
      +        "description": "Offers left out because their details came back incomplete or inconsistent.",
      +        "maximum": 9007199254740991,
      +        "minimum": -9007199254740991,
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "byNationality",
      +      "byFilters",
      +      "dominated",
      +      "unreadable",
      +      "byLimit"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedOutput schema / properties / unavailable / items / properties / reason / description
      Added value: +"Why the hotel has no offers: sold_out (nothing left for the stay), no_matching_offers (the filters left none), nationality_restricted (the hotel sells this stay only to guests of some nationalities; Fortrip can't book it), offers_unreadable (its offers came back incomplete or inconsistent), not_found (Fortrip has no bookable hotel with this hotelId), supplier_unavailable (offers couldn't be fetched this time; try again), stay_in_past (check-in has passed in the hotel's time zone)."
  5. Changed2 schema fields changed
    • changedInput schema / properties / limitPerHotel / default
      Previous value: -5New value: +10
    • changedInput schema / properties / limitPerHotel / description
      Previous value: -"Offers per hotel, 1 to 20. Default 5."New value: +"Offers per hotel, 1 to 20. Default 10."
  6. Changed2 schema fields changed
    • changedInput schema / properties / stay / properties / checkOut / description
      Previous value: -"Check-out date in the hotel's calendar, yyyy-MM-dd. Stays are 1 to 30 nights."New value: +"Check-out date in the hotel's calendar, yyyy-MM-dd. Stays are 1 to 15 nights; a longer one answers stay_unsupported (max_nights), and past 30 nights invalid_request: ask the user whether to split it into consecutive stays."
    • changedInput schema / properties / stay / properties / rooms / description
      Previous value: -"The rooms wanted, 1 to 8, each with its own party."New value: +"The rooms wanted, 1 to 8, each with its party; offers and orders need every room the same."
  7. Added

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the readOnly/openWorld/idempotent annotations it discloses substantive behavior: the answer is capped by a shared 45-offer budget, results are listed cheapest first and diversified across price/cancellation/breakfast, unbookable hotels come back as unavailable with a reason, and each offerId carries an expiry for create_order.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

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

The usage constraint is front-loaded, which is good, but the body is one dense stream of clauses that repeats the schema's limitPerHotel splitting math and currency channel details; it could be trimmed without losing information.

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?

There is no output schema and no output schema is needed here: the description fully documents the return payload (room type, meals, totals, fees at property, cancellation terms with UTC and hotel time zone, confirmation mode, offerId, per-hotel "more available" counts).

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 baseline is 3. The description does add interpretive value about what prices mean (whole stay, all rooms, versus per-room-night average), but its treatment of limitPerHotel and currency largely restates schema text rather than extending it.

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?

"Returns live, bookable offers for up to 15 hotels and one stay" gives a specific verb and resource, and the trigger clause ("what a stay really costs or whether it can be booked, at hotels already found") cleanly separates it from search_hotels and create_order.

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?

It states the moment to use it (after hotels are found, before create_order) and the when-not case with the remedy: "Every room in stay.rooms must have the same party: for different parties, call once per party." The agent has an explicit alternative path for mixed parties.

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