Skip to main content
Glama

Get checkout quote

get_checkout_quote
Read-only

Re-price a specific room live against the supplier before checkout (no booking, no charge). Use the offerRef and price/currency from get_rooms. Returns the authoritative grand total, a rateValidUntil timestamp, and any taxes/fees.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
refNoHotel `ref` from `search_hotels` (e.g. 'TBO:1402689'). Alternative to supplierCode + supplierHotelId.
roomsNoRooms (default 1).
adultsNoAdults (default 2).
checkInYesCheck-in date, ISO 8601 (YYYY-MM-DD).
checkOutYesCheck-out date, ISO 8601 (YYYY-MM-DD).
childrenNoChildren (default 0).
currencyYesISO 4217 currency of `price`/`totalPrice` (e.g. 'USD').
offerRefNoOpaque room offer from get_rooms.
promoCodeNoOptional promo code.
totalPriceYesThe room's price from `search_hotels` — the TOTAL for the whole stay, not a nightly rate (used to detect price changes).
childrenAgesNoAge of each child.
supplierCodeNoSupplier code (from `search_hotels`). Required if `ref` is omitted.
supplierRoomIdNoBookable room/rate id from the chosen room in `search_hotels`.
supplierHotelIdNoSupplier hotel id (from `search_hotels`). Required if `ref` is omitted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / offerRef
      Added value: +{
      +  "description": "Opaque room offer from get_rooms.",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "supplierRoomId",
      -  "checkIn",
      -  "checkOut",
      -  "totalPrice",
      -  "currency"
      -]New value: +[
      +  "checkIn",
      +  "checkOut",
      +  "totalPrice",
      +  "currency"
      +]
  2. Changed1 schema field changed
    • changedInput schema / properties / totalPrice / description
      Previous value: -"The room's price from `search_hotels` (used to detect price changes)."New value: +"The room's price from `search_hotels` — the TOTAL for the whole stay, not a nightly rate (used to detect price changes)."
  3. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the description's 'no booking, no charge' reinforces the safety profile. It adds useful behavioral context: the tool performs a live re-price against the supplier, returns an authoritative grand total, a `rateValidUntil` timestamp, and taxes/fees. It does not detail failure modes or rate limits, but the key behavioral traits are disclosed.

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?

The description is two sentences with no filler. The core action and safety guarantee are front-loaded, and the return value summary is compact. Every clause earns its place.

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 read-only re-pricing tool with 14 parameters and no output schema, the description covers the essential context: what it does, what it returns, and where inputs come from. It does not explain the `ref` vs `supplierCode`+`supplierHotelId` alternative, but the schema already documents that. The lack of an output schema is partially compensated by the description listing the key return fields.

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 description coverage is 100%, so the schema already documents all 14 parameters. The description adds value by explaining the purpose of `totalPrice` ('used to detect price changes') and clarifying that `offerRef` comes from `get_rooms`. It also clarifies that `totalPrice` is the total for the whole stay, not a nightly rate, which is critical for correct invocation. This goes beyond the schema's own description.

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?

The description states a specific verb ('re-price'), a specific resource ('a specific room live against the supplier'), and the context ('before checkout'). It also explicitly distinguishes itself from booking/charging ('no booking, no charge') and names the source of inputs (`get_rooms`). This clearly differentiates it from siblings like `create_checkout` and `get_rooms`.

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

Usage Guidelines4/5

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

The description clearly indicates when to use this tool: before checkout to re-price a room, and it references `get_rooms` for the `offerRef` and price/currency. It does not explicitly state when NOT to use it or name alternatives like `create_checkout`, but the context is clear enough for an agent to select it appropriately.

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