Skip to main content
Glama

HotelPricesAPI — Global Hotel Rates & OTA Price Comparison MCP

Search Live Global Hotel Prices, Availability & Nightly Rate Breakdown

search_hotel_prices
Read-onlyIdempotent

Search real-time hotel availability and nightly room rates for any global city or location_id across exact check-in/check-out dates, guest counts, and currency. Returns hotel_id, name, star rating, guest review_score, review_count, price_total, price_per_night, taxes_and_fees, coordinates, photos, and check-in windows. Cost: 2 Credits / hotel returned (0 Credits if empty).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_hotel_prices"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityNoGlobal city name (e.g. "Paris", "Tokyo", "New York", "London", "Dubai").
limitNoMax hotels to return (1–20).
roomsNoNumber of hotel rooms requested (1–8).
adultsNoNumber of adult guests (1–12).
checkinNoCheck-in date in YYYY-MM-DD format (defaults to +14 days).
checkoutNoCheck-out date in YYYY-MM-DD format (defaults to +16 days).
currencyNo3-letter ISO-4217 currency code (USD, EUR, GBP, JPY, etc.).USD
location_idNoOptional canonical location_id from search_hotel_destinations.

Output Schema

NameRequiredDescriptionDefault
codeYes0 on success, non-zero on error.
dataYesNormalized city hotel availability and nightly pricing payload.
statusYesResponse status indicator ("ok" or "error").
providerNoCanonical API provider origin URL.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, open-world, non-destructive behavior, so the description's real contribution is the pricing model: '2 Credits / hotel returned (0 Credits if empty)' and the real-time nature of the data. That is genuinely actionable context an agent cannot get from the annotations, though rate limits or pagination beyond the limit cap are not addressed.

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 with the core capability front-loaded and the cost note last, which is the right priority order. The enumerated return-field list is slightly long and partly redundant given an output schema exists, but it is still scannable and earns most of its space.

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 an 8-parameter, all-optional search tool with an output schema and full annotation coverage, the definition covers what it searches, what it returns, and what it costs. The only real gap is the absence of guidance on choosing this tool over compare_city_nightly_rates or following up with get_hotel_rooms_and_detail.

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 description coverage is 100%, including formats, defaults, and ranges, so the schema carries parameter meaning. The description restates the key dimensions (dates, guest counts, currency) and reinforces location_id as a canonical value from search_hotel_destinations, but adds no new semantics such as date validation rules or currency conversion behavior.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb ('Search') with a well-scoped resource ('real-time hotel availability and nightly room rates') and states the geographic scope ('any global city or location_id'). It is clearly distinct from get_hotel_guest_reviews and get_hotel_rooms_and_detail, but it overlaps conceptually with compare_city_nightly_rates without drawing the line between them.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: the mention of 'location_id from search_hotel_destinations' hints at a resolve-then-search workflow, and the credit cost helps an agent decide whether to call. There is no explicit when-to-use/when-not guidance and no routing to compare_city_nightly_rates or get_hotel_rooms_and_detail for follow-up detail.

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