Skip to main content
Glama

Get lowest hotel prices

post_hotels_min_rates
Read-only

Overview

Get the cheapest available rate for each hotel in your list. Perfect for displaying price comparisons without loading full rate details.

When to Use

  • Show price ranges on hotel listing pages

  • Quick price comparisons across multiple hotels

  • Optimize performance when you only need the lowest price, not all rate options

  • Build price filters or sorting by price

What You Get

  • Minimum rate per hotel - the cheapest available room option

  • Basic rate information - price, currency, and availability

  • Fast response - optimized for quick price lookups

Key Features

  • Lightweight - Returns only the minimum rate, not all options

  • Core search parameters shared with the main rates endpoint: hotel IDs, dates, occupancies, currency and guest nationality

  • Perfect for listings - Ideal when displaying multiple hotels where users just need to see starting prices

Quick Start

Provide a list of hotel IDs, dates, and guest occupancy. The endpoint returns the cheapest rate available for each hotel.

Consistency with /hotels/rates: this endpoint takes no sessionId, does not use room mapping and is not covered by price consistency. Its price can differ from /hotels/rates with roomMapping: true, and the offer may not appear in a later /hotels/rates response.

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": {
      "hotelIds": "<hotelIds>",
      "occupancies": "<occupancies>",
      "checkin": "<checkin>",
      "checkout": "<checkout>",
      "currency": "<currency>",
      "guestNationality": "<guestNationality>"
    },
    "name": "post_hotels_min_rates"
  }
}

Input Schema

NameRequiredDescriptionDefault
checkinYesCheck in date in YYYY-MM-DD (ISO 8601) format
timeoutNoRequest timeout in seconds
checkoutYesCheck out date in YYYY-MM-DD (ISO 8601) format
currencyYesBooking currency
hotelIdsYesList of hotel IDs
occupanciesYes
guestNationalityYesGuest nationality (ISO 2-code)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare readOnly, non-destructive, open-world behavior, but the description adds substantive context: no sessionId, no room mapping, excluded from price consistency, prices can diverge from /hotels/rates with roomMapping:true, and the offer may not reappear later. These are non-obvious behavioral traps an agent needs.

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?

Well-structured with front-loaded overview and markdown headers, but there is notable repetition — 'perfect for displaying price comparisons', 'perfect for listings', and 'ideal when displaying multiple hotels' restate the same idea across three sections, plus a redundant 'Quick Start' that repeats the overview.

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?

With 7 params, no output schema, and rich annotations, the description covers input expectations, return shape (minimum rate, price, currency, availability), and edge cases around consistency. Only a detailed response-structure note would be needed to reach full completeness given the absence of an output schema.

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 86%, so parameters are well documented in the schema. The description only restates the shared parameter groups (hotel IDs, dates, occupancies, currency, nationality) without adding format or constraint detail, so the baseline of 3 applies.

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 ('Get the cheapest available rate for each hotel in your list') and immediately contrasts with the full rates endpoint, so an agent can distinguish it from post_hotels_rates 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 'When to Use' bullets cover listing pages, price comparisons, performance optimization, and price sorting. The 'Consistency with /hotels/rates' note names the alternative endpoint and the condition (roomMapping, sessionId, price consistency) under which it differs, giving clear routing guidance.

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.