Skip to main content
Glama

Search hotels near a place

search_hotels
Read-onlyIdempotent

Find hotels in India by coordinates, railway station, airport, or place name for your dates. Get live prices, ratings, and drive-time filters to compare and plan stays.

Instructions

Finds hotels around a place in India for given dates, with live prices from several meta-search sources merged per hotel. The place is one of: lat+lng, an Indian Railways station code, an airport IATA code, or a place name. Returns each hotel's id, coordinates, straight-line distance, stars, guest rating and cheapest current price in INR (with original currency, seller and source). With max_drive_minutes, keeps only hotels within that drive time (OpenStreetMap routing with a traffic allowance) and adds drive_minutes. Results are paginated. Per-seller prices are in get_hotel_rates; times to other places are in compare_hotels. Does not book.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
latNoLatitude (India). Use with lng.
lngNoLongitude (India). Use with lat.
iataNoIndian airport IATA code, e.g. DEL.
sortNoSort order; drive_time needs max_drive_minutes.distance
limitNoHotels per page.
placeNoPlace name, e.g. 'Taj Mahal' or 'Paharganj, Delhi'; resolved to its best match.
adultsNoGuests in the room; searches are for one room.
offsetNoNumber of hotels to skip, for paging.
check_inYesCheck-in date, YYYY-MM-DD (IST).
check_outYesCheck-out date, YYYY-MM-DD, after check_in.
min_starsNoMinimum star rating.
radius_kmNoSearch radius in km.
station_codeNoIndian Railways station code, e.g. NDLS.
max_price_inrNoOnly hotels with a known nightly price at or below this, in INR.
include_unpricedNoAlso list hotels with no live price (OpenStreetMap listings), for places with thin price coverage.
max_drive_minutesNoOnly hotels within this many minutes' drive of the place (traffic-adjusted).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
notesYes
queryYes
totalYes
anchorYes
hotelsYes
showingYes
sources_okYes
sources_failedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly/openWorld/idempotent/non-destructive, so the safety profile is covered. The description adds real behavioral context beyond them: prices are live and merged across meta-search sources, max_drive_minutes applies OSM routing with a traffic allowance and injects drive_minutes, results are paginated, and 'Does not book.'

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?

Dense but front-loaded: purpose first, then accepted inputs, then result shape, then the two sibling pointers. The sentence enumerating returned fields largely restates the output schema, which is mild redundancy, but nothing else is wasted.

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?

With an output schema present the description needn't explain returns, and it still covers input forms, pagination, drive-time filtering semantics and the booking boundary. Nothing an agent needs to call this correctly is missing.

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 100%, so the baseline is 3; the description goes further by explaining that the place argument accepts lat+lng, station code, IATA code or a name, and by describing what max_drive_minutes actually does (routing plus traffic allowance, adds drive_minutes). It doesn't clarify include_unpriced or the price-cap interaction beyond 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 ('Finds hotels around a place in India') plus the scope (dates, live merged prices) and explicitly contrasts itself with get_hotel_rates and compare_hotels. An agent can distinguish it from every sibling without opening a schema.

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

Usage Guidelines4/5

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

Explicitly routes the agent: per-seller prices belong to get_hotel_rates and times to other places to compare_hotels, and it enumerates the four accepted place-input forms. It stops short of stating when-not to use it (e.g. once a hotel id is known), so it is clear context without full exclusions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.