Skip to main content
Glama

search_hotels

Read-onlyIdempotent

Searches hotels and other places to stay by city or country and check-in/check-out dates, with optional filters for brand, room type, maximum nightly rate, star rating and amenities. Results come from our hotel partners and hotels contracted directly with Autonomad, and include room options, the cancellation policy, a photo and whether each result can be booked. Prices: quote all_in_usd (all_in_per_night_usd per night), the full price of the stay, and say how it is paid: paid_at_booking_usd on autonomad.ai at booking, plus due_at_hotel_usd collected by the hotel at check-in (resort or property fees, named in due_at_hotel_fees). A hotel with hotel_fees_unknown has no all-in price: say its hotel fees could not be confirmed, never that nothing is due at the hotel. max_rate_usd and cheapest-first use the all-in nightly price. brand keeps only hotels of that brand (e.g. "Kimpton"). Every star level is included, ranked best first (guest score or star rating, then price); a hotel whose star rating is unknown has stars null. If the person wants only higher-rated hotels, pass min_star_rating (hotels with an unknown rating are then left out and counted in meta.unrated_excluded); if they want the cheapest first, pass flexible: true. Searching does not reserve anything or charge anyone. If the traveler gave no length, assume about 7 nights abroad (6 for Mexico, 4 for Canada from the US), 3 at home, and tell them it's an assumption. After showing hotels, offer the person a booking link for the one they like; when they pick one or ask how to book, call create_booking_intent with that hotel from these results (searching again is not needed to book).

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": {
      "check_in": "<check_in>",
      "check_out": "<check_out>"
    },
    "name": "search_hotels"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityNoCity name (e.g., 'New York', 'Tokyo')
brandNoHotel brand to keep (matched on the brand or the hotel name, any case, e.g. "Kimpton")
placeNoThe exact place of this trip stop: the `place` an earlier search for the trip returned, or the candidate the person picked when a search asked which place they meant. Searches given the same place cover the same place.
regionNoState / region of the city (e.g. 'NV', 'Nevada', 'Maine'), when known.
countryNoISO 3166-1 alpha-2 country code (e.g., 'US', 'JP')
check_inYesCheck-in date (YYYY-MM-DD)
flexibleNotrue: order results cheapest first (by the all-in nightly price) instead of best first.
latitudeNoLatitude of the destination, when known.
amenitiesNoRequired amenities (wifi, gym, pool, spa, restaurant, etc.)
check_outYesCheck-out date (YYYY-MM-DD)
longitudeNoLongitude of the destination, when known.
room_typeNo
max_rate_usdNoMaximum ALL-IN nightly rate in USD (including fees collected by the hotel)
min_star_ratingNoMinimum star rating (1-5). Hotels whose rating is unknown are left out and counted in meta.unrated_excluded.
destination_iataNoIATA code of the airport the traveler flies into (e.g. 'LAS'). Pass it whenever a flight is known: it decides which same-named city is meant (Las Vegas NV vs NM).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / brand / description
      Previous value: -"Hotel brand name to filter by"New value: +"Hotel brand to keep (matched on the brand or the hotel name, any case, e.g. \"Kimpton\")"
    • changedInput schema / properties / flexible / description
      Previous value: -"true: order results cheapest first instead of best first."New value: +"true: order results cheapest first (by the all-in nightly price) instead of best first."
    • changedInput schema / properties / max_rate_usd / description
      Previous value: -"Maximum nightly rate in USD"New value: +"Maximum ALL-IN nightly rate in USD (including fees collected by the hotel)"
  2. Changed1 schema field changed
    • changedInput schema / properties / destination_iata / description
      Previous value: -"IATA code of the airport the traveller flies into (e.g. 'LAS'). Pass it whenever a flight is known: it decides which same-named city is meant (Las Vegas NV vs NM)."New value: +"IATA code of the airport the traveler flies into (e.g. 'LAS'). Pass it whenever a flight is known: it decides which same-named city is meant (Las Vegas NV vs NM)."
  3. Changed5 schema fields changed
    • addedInput schema / properties / place / properties / arrival_airports
      Added value: +{
      +  "description": "The airports to fly this place by, best first, as a search returned them. Pass them back unchanged.",
      +  "items": {
      +    "properties": {
      +      "iata": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "iata"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / place / properties / extent_km
      Added value: +{
      +  "description": "The size of a region or island, as a search returned it.",
      +  "type": "number"
      +}
    • addedInput schema / properties / place / properties / gateway_airport
      Added value: +{
      +  "description": "The one airport a wide search flies this place by, as a search returned it.",
      +  "type": "string"
      +}
    • addedInput schema / properties / place / properties / kind
      Added value: +{
      +  "description": "What the place is, as a search returned it. Pass it back unchanged: a town, region or island has its hotels searched around it.",
      +  "enum": [
      +    "city",
      +    "town",
      +    "region",
      +    "island"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / place / properties / radius_km
      Added value: +{
      +  "description": "The hotel search radius for this place, as a search returned it.",
      +  "type": "number"
      +}
  4. Changed1 schema field changed
    • addedInput schema / properties / place
      Added value: +{
      +  "description": "The exact place of this trip stop: the `place` an earlier search for the trip returned, or the candidate the person picked when a search asked which place they meant. Searches given the same place cover the same place.",
      +  "properties": {
      +    "airports": {
      +      "description": "IATA codes of the airports serving the place.",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "city": {
      +      "type": "string"
      +    },
      +    "country": {
      +      "description": "ISO 3166-1 alpha-2 code (territories use their own, e.g. PR).",
      +      "type": "string"
      +    },
      +    "label": {
      +      "description": "How to name the place to the person, e.g. 'Birmingham, GB'.",
      +      "type": "string"
      +    },
      +    "latitude": {
      +      "type": "number"
      +    },
      +    "longitude": {
      +      "type": "number"
      +    },
      +    "region": {
      +      "description": "State or region, or empty.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "country",
      +    "latitude",
      +    "longitude"
      +  ],
      +  "type": "object"
      +}
  5. Changed2 schema fields changed
    • addedInput schema / properties / flexible
      Added value: +{
      +  "description": "true: order results cheapest first instead of best first.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / min_star_rating / description
      Previous value: -"Minimum star rating (1-5)"New value: +"Minimum star rating (1-5). Hotels whose rating is unknown are left out and counted in meta.unrated_excluded."
  6. Changed4 schema fields changed
    • addedInput schema / properties / destination_iata
      Added value: +{
      +  "description": "IATA code of the airport the traveller flies into (e.g. 'LAS'). Pass it whenever a flight is known: it decides which same-named city is meant (Las Vegas NV vs NM).",
      +  "type": "string"
      +}
    • addedInput schema / properties / latitude
      Added value: +{
      +  "description": "Latitude of the destination, when known.",
      +  "type": "number"
      +}
    • addedInput schema / properties / longitude
      Added value: +{
      +  "description": "Longitude of the destination, when known.",
      +  "type": "number"
      +}
    • addedInput schema / properties / region
      Added value: +{
      +  "description": "State / region of the city (e.g. 'NV', 'Nevada', 'Maine'), when known.",
      +  "type": "string"
      +}
  7. First observed

TDQS

A4.3/5.0
Behavior3/5

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

Goes well beyond the annotations (readOnlyHint/idempotent/openWorld) by explaining the pricing model: all_in_usd, paid_at_booking_usd, due_at_hotel_usd, and the hotel_fees_unknown edge case where the agent must never say nothing is due. It also discloses that searching neither reserves nor charges, which corroborates rather than contradicts the read-only annotation. Docked slightly because result-set behavior (paging, result counts, other meta fields beyond meta.unrated_excluded) is never described.

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?

Front-loaded with purpose and filters, then pricing, then ranking, then booking handoff — a sensible progression with no filler sentences. It is dense and long for a 15-parameter tool, and the pricing-instruction sentences read as agent scripts rather than tool behavior, which costs a point.

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?

Given 15 parameters, a nested place object, and no output schema, the description does the heavy lifting on what results contain (room options, cancellation policy, photo, bookable flag) and how prices are composed. Remaining gaps are minor: pagination or result limits and the full set of meta fields are not covered.

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 coverage is already 93%, so the baseline is 3; the description earns an extra point by adding semantics the schema lacks, notably that max_rate_usd and cheapest-first both key off the all-in nightly price including hotel-collected fees, and the ranking rule (best first by guest score or star rating, then price). It does not add much on the nested place object, whose behavior is left to the schema.

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?

States a specific verb and resource ("Searches hotels and other places to stay") plus the primary scoping dimensions (city/country, check-in/check-out) and the optional filters. It is clearly distinguishable from search_flights, search_dining, and search_activities without opening their schemas.

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?

Gives explicit when-to-use branches: min_star_rating when the traveler wants only higher-rated hotels, flexible: true for cheapest-first, brand for brand filtering, and an assumed length of stay when none was given. It also names the handoff path explicitly — when the traveler picks a hotel or asks how to book, call create_booking_intent with a hotel from these results rather than searching again.

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