Skip to main content
Glama

Search hotels

search_hotels
Read-onlyIdempotent

Search hotels across multiple sources (booking.com + kiwi.com) and return the cheapest. Returns name, price, stars, rating, reviews, source, booking links. ~2s.

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": {
      "destination": "<destination>",
      "checkin": "<checkin>",
      "checkout": "<checkout>"
    },
    "name": "search_hotels"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNoSort by pricecheapest
limitNoMax results (default: 10)
adultsNoAdult guests (default: 2)
checkinYesCheck-in date YYYY-MM-DD
checkoutYesCheck-out date YYYY-MM-DD
max_priceNoMaximum price per night filter
destinationYesCity or destination (e.g. 'Rome', 'Tokyo')

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / adults / type
      Previous value: -"number"New value: +"integer"
    • changedInput schema / properties / limit / type
      Previous value: -"number"New value: +"integer"
  2. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds real context beyond that: which upstream sources are queried, an expected latency (~2s), and the fields returned. The phrase 'return the cheapest' is slightly ambiguous about whether a single result or a ranked list comes back, which is the main behavioral gap.

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 short sentences, front-loaded with the action and scope, then the return shape, then a one-token latency note. Nothing is repeated and nothing could be cut without losing signal.

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 no output schema, the description compensates by enumerating returned fields (name, price, stars, rating, reviews, source, booking links) and giving a latency expectation. For a seven-parameter, open-world search tool this is nearly complete; the missing pieces are currency of prices and how results behave when only one source responds.

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% and all seven parameters including the sort enum carry their own descriptions, so the schema does the heavy lifting. The description adds no parameter-level meaning such as currency for max_price or how limit interacts with multi-source results. Baseline 3 is appropriate.

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?

States a specific verb and resource ('Search hotels') plus a distinctive trait: federated search over booking.com and kiwi.com returning the cheapest option. That clearly separates it from siblings like search_attractions, search_flights and local_search. It stops short of naming any sibling as an alternative, which keeps it at 4 rather than 5.

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 by the aggregation-and-cheapest framing: an agent can infer this is the tool for comparing hotel prices across sources. There is no explicit when-to-use or when-not statement, and no pointer to a sibling for adjacent needs such as flights or attractions. Adequate but leaves routing entirely to inference from the tool name.

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