Skip to main content
Glama

View Booking Details

get_booking
Read-only

Look up a reservation exclusively by the hotel confirmation number shown in the guest's confirmation email. Internal Stayker booking IDs are never accepted or disclosed by MCP. Returns full booking details including hotel, dates, guest info, rate, and status.

Anonymous access requires a verification_token issued by lookup_booking and scoped to a single booking. Without a valid token, no booking data is returned. Developers authenticated with their own API key do not need a token; their access is scoped to their own bookings.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
verification_tokenNoBooking-scoped verification token required for anonymous access. Developer API key-authenticated access does not require it.
confirmation_numberYesHotel confirmation number shown in the guest's confirmation email

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
roomNo
hotelNo
guestsNo
nightsNo
statusNo
pricingNo
check_inNo
check_outNo
created_atNo
booking_typeYes
cancellationNo
action_handoffYes
available_actionsYes
confirmation_numberNo
reward_points_eligibleYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed20 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / properties / cancellation / anyOf
      Previous value: -[
      -  {
      -    "$ref": "#/properties/guests/items"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": {},
      +    "propertyNames": {
      +      "type": "string"
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedOutput schema / properties / check_in / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / check_in / type
      Removed value: -[
      -  "string",
      -  "null"
      -]
    • addedOutput schema / properties / check_out / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / check_out / type
      Removed value: -[
      -  "string",
      -  "null"
      -]
    • addedOutput schema / properties / confirmation_number / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / confirmation_number / type
      Removed value: -[
      -  "string",
      -  "null"
      -]
    • addedOutput schema / properties / created_at / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / created_at / type
      Removed value: -[
      -  "string",
      -  "null"
      -]
    • addedOutput schema / properties / guests / items / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / nights / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / nights / minimum
      Added value: +-9007199254740991
    • removedOutput schema / properties / pricing / $ref
      Removed value: -"#/properties/guests/items"
    • addedOutput schema / properties / pricing / additionalProperties
      Added value: +false
    • addedOutput schema / properties / pricing / properties
      Added value: +{
      +  "currency": {
      +    "type": "string"
      +  },
      +  "hotel_fees": {
      +    "type": "number"
      +  },
      +  "hotel_total": {
      +    "type": "number"
      +  },
      +  "room_total": {
      +    "type": "number"
      +  },
      +  "service_fee": {
      +    "type": "number"
      +  },
      +  "taxes": {
      +    "type": "number"
      +  }
      +}
    • addedOutput schema / properties / pricing / required
      Added value: +[
      +  "room_total",
      +  "taxes",
      +  "hotel_fees",
      +  "hotel_total",
      +  "currency"
      +]
    • addedOutput schema / properties / pricing / type
      Added value: +"object"
  2. Changed22 schema fields changed
    • changedInput schema / $schema
      Previous value: -"https://json-schema.org/draft/2020-12/schema"New value: +"http://json-schema.org/draft-07/schema#"
    • addedInput schema / additionalProperties
      Added value: +false
    • changedOutput schema / $schema
      Previous value: -"https://json-schema.org/draft/2020-12/schema"New value: +"http://json-schema.org/draft-07/schema#"
    • removedOutput schema / properties / cancellation / additionalProperties
      Removed value: -{}
    • addedOutput schema / properties / cancellation / anyOf
      Added value: +[
      +  {
      +    "$ref": "#/properties/guests/items"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / cancellation / propertyNames
      Removed value: -{
      -  "type": "string"
      -}
    • removedOutput schema / properties / cancellation / type
      Removed value: -"object"
    • removedOutput schema / properties / check_in / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / check_in / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / check_out / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / check_out / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / confirmation_number / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / confirmation_number / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / created_at / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / created_at / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / guests / items / propertyNames
      Removed value: -{
      -  "type": "string"
      -}
    • removedOutput schema / properties / nights / maximum
      Removed value: -9007199254740991
    • removedOutput schema / properties / nights / minimum
      Removed value: --9007199254740991
    • addedOutput schema / properties / pricing / $ref
      Added value: +"#/properties/guests/items"
    • removedOutput schema / properties / pricing / additionalProperties
      Removed value: -{}
    • removedOutput schema / properties / pricing / propertyNames
      Removed value: -{
      -  "type": "string"
      -}
    • removedOutput schema / properties / pricing / type
      Removed value: -"object"
  3. Changed22 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedOutput schema / properties / cancellation / additionalProperties
      Added value: +{}
    • removedOutput schema / properties / cancellation / anyOf
      Removed value: -[
      -  {
      -    "$ref": "#/properties/guests/items"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / cancellation / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / cancellation / type
      Added value: +"object"
    • addedOutput schema / properties / check_in / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / check_in / type
      Removed value: -[
      -  "string",
      -  "null"
      -]
    • addedOutput schema / properties / check_out / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / check_out / type
      Removed value: -[
      -  "string",
      -  "null"
      -]
    • addedOutput schema / properties / confirmation_number / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / confirmation_number / type
      Removed value: -[
      -  "string",
      -  "null"
      -]
    • addedOutput schema / properties / created_at / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / created_at / type
      Removed value: -[
      -  "string",
      -  "null"
      -]
    • addedOutput schema / properties / guests / items / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / nights / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / nights / minimum
      Added value: +-9007199254740991
    • removedOutput schema / properties / pricing / $ref
      Removed value: -"#/properties/guests/items"
    • addedOutput schema / properties / pricing / additionalProperties
      Added value: +{}
    • addedOutput schema / properties / pricing / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / pricing / type
      Added value: +"object"
  4. Changed2 schema fields changed
    • removedOutput schema / properties / cancellation / $ref
      Removed value: -"#/properties/guests/items"
    • addedOutput schema / properties / cancellation / anyOf
      Added value: +[
      +  {
      +    "$ref": "#/properties/guests/items"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  5. Changed3 schema fields changed
    • removedInput schema / properties / booking_id
      Removed value: -{
      -  "description": "Booking ID (e.g. stk_bk_xxxx) or confirmation number",
      -  "type": "string"
      -}
    • addedInput schema / properties / confirmation_number
      Added value: +{
      +  "description": "Hotel confirmation number shown in the guest's confirmation email",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "booking_id"
      -]New value: +[
      +  "confirmation_number"
      +]
  6. Changed2 schema fields changed
    • changedInput schema / properties / verification_token / description
      Previous value: -"Verification token returned by lookup_booking. Required for guest-facing (anonymous) lookups; obtain it by calling lookup_booking first. Not needed when authenticated with your own developer API key."New value: +"Booking-scoped verification token required for anonymous access. Developer API key-authenticated access does not require it."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "action_handoff": {
      +      "type": "string"
      +    },
      +    "available_actions": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "preview_cancellation": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "arguments": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "confirmation_number": {
      +                  "type": "string"
      +                },
      +                "first_name": {
      +                  "type": "string"
      +                },
      +                "last_name": {
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "confirmation_number"
      +              ],
      +              "type": "object"
      +            },
      +            "instruction": {
      +              "type": "string"
      +            },
      +            "tool": {
      +              "const": "cancel_booking",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "tool",
      +            "arguments",
      +            "instruction"
      +          ],
      +          "type": "object"
      +        },
      +        "resend_confirmation": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "arguments": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "confirmation_number": {
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "confirmation_number"
      +              ],
      +              "type": "object"
      +            },
      +            "instruction": {
      +              "type": "string"
      +            },
      +            "tool": {
      +              "const": "resend_confirmation",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "tool",
      +            "arguments",
      +            "instruction"
      +          ],
      +          "type": "object"
      +        }
      +      },
      +      "required": [
      +        "resend_confirmation",
      +        "preview_cancellation"
      +      ],
      +      "type": "object"
      +    },
      +    "booking_type": {
      +      "type": "string"
      +    },
      +    "cancellation": {
      +      "$ref": "#/properties/guests/items"
      +    },
      +    "check_in": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "check_out": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "confirmation_number": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "created_at": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "guests": {
      +      "items": {
      +        "additionalProperties": {},
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "hotel": {},
      +    "nights": {
      +      "type": "integer"
      +    },
      +    "pricing": {
      +      "$ref": "#/properties/guests/items"
      +    },
      +    "reward_points_eligible": {
      +      "type": "boolean"
      +    },
      +    "room": {},
      +    "status": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "reward_points_eligible",
      +    "booking_type",
      +    "action_handoff",
      +    "available_actions"
      +  ],
      +  "type": "object"
      +}
  7. Changed1 schema field changed
    • addedInput schema / properties / verification_token
      Added value: +{
      +  "description": "Verification token returned by lookup_booking. Required for guest-facing (anonymous) lookups; obtain it by calling lookup_booking first. Not needed when authenticated with your own developer API key.",
      +  "type": "string"
      +}
  8. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already mark this as read-only and non-destructive, and the description adds valuable behavioral nuance: internal IDs are never exposed, a missing/invalid token blocks data return, and developer access is scoped to their own bookings. This goes beyond the structured annotations.

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 tight sentences with no filler. The most important constraint (external confirmation number only) is front-loaded, and the auth behavior is stated succinctly afterward.

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?

For a two-parameter read-only tool with an output schema, the description covers everything needed to invoke it correctly: identifier format, auth requirements, return summary, and security scope. No important operational detail is missing.

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?

The schema already documents both parameters fully, so the baseline is 3. The description adds meaningful context by clarifying that confirmation_number must come from the guest's confirmation email, that internal IDs are never valid, and that verification_token must be issued by lookup_booking and is booking-scoped.

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 clearly identifies the action ('Look up a reservation') and the exact resource/key ('hotel confirmation number'). It also explicitly differentiates the tool from sibling get/lookup tools by stating that internal Stayker booking IDs are never accepted or disclosed.

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 precisely when the tool is usable: only with an external hotel confirmation number, not internal IDs. It also gives a concrete prerequisite for anonymous access, naming lookup_booking as the issuer of the required verification_token, and distinguishes developer API-key access.

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.