Skip to main content
Glama

Hotel details

get_hotel
Read-onlyIdempotent

One hotel's catalogue facts: names, address, location, time zone, check-in and check-out times, the full description, every policy and the amenities, and its rooms with include: "rooms". "Not listed" is not "no". No prices or availability: get_hotel_offers has those.

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": {
      "hotelId": "<hotelId>"
    },
    "name": "get_hotel"
  }
}

Input Schema

NameRequiredDescriptionDefault
localeNoLanguage for names and text in the response: en or zh.
hotelIdYeshotelId from a search response.
includeNo`rooms` adds the room list.

Output Schema

NameRequiredDescriptionDefault
nameYes
namesYes
roomsNo
starsYes
photosYesUp to 8 hotel photos, the cover first; null when the catalogue lists none.
addressYes
contactYes
depositYes
hotelIdYes
bookableYes
locationYes
policiesYes
timeZoneYes
amenitiesYes
descriptionYes
checkInTimesYes
checkOutTimesYes
breakfastServedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / photos / description
      Added value: +"Up to 8 hotel photos, the cover first; null when the catalogue lists none."
  2. Changed1 schema field changed
    • changedOutput schema / required
      Previous value: -[
      -  "hotelId",
      -  "name",
      -  "names",
      -  "bookable",
      -  "stars",
      -  "address",
      -  "location",
      -  "timeZone",
      -  "description",
      -  "checkInTimes",
      -  "checkOutTimes",
      -  "policies",
      -  "amenities",
      -  "breakfastServed",
      -  "deposit",
      -  "contact"
      -]New value: +[
      +  "hotelId",
      +  "name",
      +  "names",
      +  "bookable",
      +  "stars",
      +  "address",
      +  "location",
      +  "timeZone",
      +  "description",
      +  "photos",
      +  "checkInTimes",
      +  "checkOutTimes",
      +  "policies",
      +  "amenities",
      +  "breakfastServed",
      +  "deposit",
      +  "contact"
      +]
  3. Changed10 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • changedInput schema / properties / hotelId / description
      Previous value: -"hotelId from search_hotels"New value: +"hotelId from a search response."
    • removedInput schema / properties / hotelId / exclusiveMinimum
      Removed value: -0
    • removedInput schema / properties / hotelId / maximum
      Removed value: -2147483647
    • addedInput schema / properties / hotelId / pattern
      Added value: +"^htl_[0-9A-Za-z]{20}$"
    • changedInput schema / properties / hotelId / type
      Previous value: -"integer"New value: +"string"
    • addedInput schema / properties / include
      Added value: +{
      +  "description": "`rooms` adds the room list.",
      +  "enum": [
      +    "rooms"
      +  ],
      +  "type": "string"
      +}
    • removedInput schema / properties / includeRooms
      Removed value: -{
      -  "description": "Also return the catalogue room list (adds a few KB)",
      -  "type": "boolean"
      -}
    • addedInput schema / properties / locale
      Added value: +{
      +  "description": "Language for names and text in the response: en or zh.",
      +  "enum": [
      +    "en",
      +    "zh"
      +  ],
      +  "type": "string"
      +}
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "additionalProperties": {},
      +  "properties": {
      +    "address": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "countryCode": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "line": {
      +          "anyOf": [
      +            {
      +              "additionalProperties": {},
      +              "properties": {
      +                "locale": {
      +                  "anyOf": [
      +                    {
      +                      "enum": [
      +                        "en",
      +                        "zh"
      +                      ],
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "string"
      +                    }
      +                  ]
      +                },
      +                "text": {
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "text",
      +                "locale"
      +              ],
      +              "type": "object"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "region": {
      +          "anyOf": [
      +            {
      +              "additionalProperties": {},
      +              "properties": {
      +                "name": {
      +                  "type": "string"
      +                },
      +                "names": {
      +                  "additionalProperties": {},
      +                  "properties": {
      +                    "en": {
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    },
      +                    "zh": {
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    }
      +                  },
      +                  "required": [
      +                    "en",
      +                    "zh"
      +                  ],
      +                  "type": "object"
      +                },
      +                "placeId": {
      +                  "pattern": "^plc_\\d{1,12}$",
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "placeId",
      +                "name",
      +                "names"
      +              ],
      +              "type": "object"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        }
      +      },
      +      "required": [
      +        "line",
      +        "countryCode",
      +        "region"
      +      ],
      +      "type": "object"
      +    },
      +    "amenities": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "items": {
      +          "items": {
      +            "additionalProperties": {},
      +            "properties": {
      +              "code": {
      +                "anyOf": [
      +                  {
      +                    "enum": [
      +                      "parking",
      +                      "wifi",
      +                      "laundry",
      +                      "restaurant",
      +                      "room_service",
      +                      "bar",
      +                      "non_smoking",
      +                      "business_center",
      +                      "pool",
      +                      "airport_shuttle",
      +                      "spa",
      +                      "gym",
      +                      "accessible",
      +                      "ev_charging",
      +                      "air_conditioning",
      +                      "pets_allowed",
      +                      "kitchen",
      +                      "other"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  {
      +                    "type": "string"
      +                  }
      +                ]
      +              },
      +              "name": {
      +                "additionalProperties": {},
      +                "properties": {
      +                  "locale": {
      +                    "anyOf": [
      +                      {
      +                        "enum": [
      +                          "en",
      +                          "zh"
      +                        ],
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "string"
      +                      }
      +                    ]
      +                  },
      +                  "text": {
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "text",
      +                  "locale"
      +                ],
      +                "type": "object"
      +              }
      +            },
      +            "required": [
      +              "code",
      +              "name"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "listed": {
      +          "type": "boolean"
      +        }
      +      },
      +      "required": [
      +        "listed",
      +        "items"
      +      ],
      +      "type": "object"
      +    },
      +    "bookable": {
      +      "type": "boolean"
      +    },
      +    "breakfastServed": {
      +      "type": [
      +        "boolean",
      +        "null"
      +      ]
      +    },
      +    "checkInTimes": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "from": {
      +          "anyOf": [
      +            {
      +              "pattern": "^(?:[01]\\d|2[0-3]):[0-5]\\d$",
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "until": {
      +          "anyOf": [
      +            {
      +              "pattern": "^(?:[01]\\d|2[0-3]):[0-5]\\d$",
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        }
      +      },
      +      "required": [
      +        "from",
      +        "until"
      +      ],
      +      "type": "object"
      +    },
      +    "checkOutTimes": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "from": {
      +          "anyOf": [
      +            {
      +              "pattern": "^(?:[01]\\d|2[0-3]):[0-5]\\d$",
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "until": {
      +          "anyOf": [
      +            {
      +              "pattern": "^(?:[01]\\d|2[0-3]):[0-5]\\d$",
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        }
      +      },
      +      "required": [
      +        "from",
      +        "until"
      +      ],
      +      "type": "object"
      +    },
      +    "contact": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "phone": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "website": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        }
      +      },
      +      "required": [
      +        "phone",
      +        "website"
      +      ],
      +      "type": "object"
      +    },
      +    "deposit": {
      +      "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"
      +            }
      +          ]
      +        },
      +        "required": {
      +          "type": [
      +            "boolean",
      +            "null"
      +          ]
      +        }
      +      },
      +      "required": [
      +        "required",
      +        "amount"
      +      ],
      +      "type": "object"
      +    },
      +    "description": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": {},
      +          "properties": {
      +            "locale": {
      +              "anyOf": [
      +                {
      +                  "enum": [
      +                    "en",
      +                    "zh"
      +                  ],
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "string"
      +                }
      +              ]
      +            },
      +            "text": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "text",
      +            "locale"
      +          ],
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "hotelId": {
      +      "pattern": "^htl_[0-9A-Za-z]{20}$",
      +      "type": "string"
      +    },
      +    "location": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": {},
      +          "properties": {
      +            "lat": {
      +              "type": "number"
      +            },
      +            "lng": {
      +              "type": "number"
      +            }
      +          },
      +          "required": [
      +            "lat",
      +            "lng"
      +          ],
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "name": {
      +      "type": "string"
      +    },
      +    "names": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "en": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "zh": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        }
      +      },
      +      "required": [
      +        "en",
      +        "zh"
      +      ],
      +      "type": "object"
      +    },
      +    "photos": {
      +      "anyOf": [
      +        {
      +          "items": {
      +            "additionalProperties": {},
      +            "properties": {
      +              "caption": {
      +                "anyOf": [
      +                  {
      +                    "additionalProperties": {},
      +                    "properties": {
      +                      "locale": {
      +                        "anyOf": [
      +                          {
      +                            "enum": [
      +                              "en",
      +                              "zh"
      +                            ],
      +                            "type": "string"
      +                          },
      +                          {
      +                            "type": "string"
      +                          }
      +                        ]
      +                      },
      +                      "text": {
      +                        "type": "string"
      +                      }
      +                    },
      +                    "required": [
      +                      "text",
      +                      "locale"
      +                    ],
      +                    "type": "object"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "url": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "url",
      +              "caption"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "policies": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "items": {
      +          "items": {
      +            "additionalProperties": {},
      +            "properties": {
      +              "locale": {
      +                "anyOf": [
      +                  {
      +                    "anyOf": [
      +                      {
      +                        "enum": [
      +                          "en",
      +                          "zh"
      +                        ],
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "string"
      +                      }
      +                    ]
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "text": {
      +                "type": "string"
      +              },
      +              "topic": {
      +                "anyOf": [
      +                  {
      +                    "enum": [
      +                      "check_in",
      +                      "important_notices",
      +                      "booking",
      +                      "booking_tips",
      +                      "check_in_out",
      +                      "check_in_tips",
      +                      "reception",
      +                      "deposit",
      +                      "meal",
      +                      "extra_bed",
      +                      "pets",
      +                      "surroundings",
      +                      "meetings",
      +                      "non_smoking",
      +                      "other"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  {
      +                    "type": "string"
      +                  }
      +                ]
      +              }
      +            },
      +            "required": [
      +              "topic",
      +              "text",
      +              "locale"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "listed": {
      +          "type": "boolean"
      +        }
      +      },
      +      "required": [
      +        "listed",
      +        "items"
      +      ],
      +      "type": "object"
      +    },
      +    "rooms": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "items": {
      +          "items": {
      +            "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": {
      +                "additionalProperties": {},
      +                "properties": {
      +                  "locale": {
      +                    "anyOf": [
      +                      {
      +                        "anyOf": [
      +                          {
      +                            "enum": [
      +                              "en",
      +                              "zh"
      +                            ],
      +                            "type": "string"
      +                          },
      +                          {
      +                            "type": "string"
      +                          }
      +                        ]
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  },
      +                  "text": {
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "text",
      +                  "locale"
      +                ],
      +                "type": "object"
      +              },
      +              "window": {
      +                "anyOf": [
      +                  {
      +                    "anyOf": [
      +                      {
      +                        "enum": [
      +                          "yes",
      +                          "no",
      +                          "partial"
      +                        ],
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "string"
      +                      }
      +                    ]
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              }
      +            },
      +            "required": [
      +              "name",
      +              "beds",
      +              "areaSqm",
      +              "maxOccupancy",
      +              "window"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "listed": {
      +          "type": "boolean"
      +        }
      +      },
      +      "required": [
      +        "listed",
      +        "items"
      +      ],
      +      "type": "object"
      +    },
      +    "stars": {
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "timeZone": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    }
      +  },
      +  "required": [
      +    "hotelId",
      +    "name",
      +    "names",
      +    "bookable",
      +    "stars",
      +    "address",
      +    "location",
      +    "timeZone",
      +    "description",
      +    "checkInTimes",
      +    "checkOutTimes",
      +    "policies",
      +    "amenities",
      +    "breakfastServed",
      +    "deposit",
      +    "contact"
      +  ],
      +  "type": "object"
      +}
  4. Changed1 schema field changed
    • changedInput schema / properties / hotelId / maximum
      Previous value: -9007199254740991New value: +2147483647
  5. Changed1 schema field changed
    • changedInput schema / properties / hotelId / description
      Previous value: -"Huizhi hotelId"New value: +"hotelId from search_hotels"
  6. 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 readOnly, idempotent, non-destructive, openWorld, so the safety profile is covered. The description adds a genuinely useful semantic caveat beyond that: '"Not listed" is not "no"', telling the agent that absent facts in the response should not be read as negative assertions. It stops short of describing the response shape or how partial data is represented, which is acceptable given an output schema exists.

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

Conciseness4/5

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

Two dense sentences, front-loaded with scope and ending with the routing constraint, with zero filler. The phrasing 'its rooms with include: "rooms"' is slightly telegraphic and reads awkwardly, which is the only thing keeping it from a 5.

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 read-only lookup with an output schema already defining return values, the description supplies everything else an agent needs: scope of returned facts, the opt-in room expansion, the sibling that owns pricing, and how to interpret missing fields. No material gap remains.

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?

With 100% schema description coverage, the schema already documents locale, hotelId, and include (including its single enum value). The description's 'its rooms with include: "rooms"' largely restates the schema's '`rooms` adds the room list' rather than adding format or cost semantics, so the baseline of 3 is appropriate.

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 names a specific verb-resource ('One hotel's catalogue facts') and then enumerates the exact contents: names, address, location, time zone, check-in/check-out, description, policies, amenities, and rooms. It also draws a hard boundary against the sibling that returns pricing, so an agent can separate it from get_hotel_offers without opening either schema.

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?

Explicit routing is present: 'No prices or availability: get_hotel_offers has those' names the alternative and the condition that selects it. The schema also anchors hotelId to 'hotelId from a search response', implying the search_hotels → get_hotel flow, and the 'include: rooms' note signals when to opt into the heavier payload.

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