Skip to main content
Glama

Search lodging observations

search_lodging
Read-onlyIdempotent

Search stored lodging price observations for a city, either for exact dates or for a stay length. Returns comparable prices with their original amount and currency, tax status, per-source ratings, evidence-backed amenity signals, provenance, and coverage. These are historical snapshots, not live availability.

Input Schema

NameRequiredDescriptionDefault
cityYesCity ID, e.g. 'th-bangkok'.
limitNo
roomsNo
adultsNo
nightsNoTypical mode: stay length without exact dates.
checkinNoExact mode: use with checkout.
sourcesNo
checkoutNo
childrenNo
freshness_daysNoOnly use observations collected within this many days.
property_typesNo
max_nightly_usdNo
min_review_countNo
required_signalsNoEvidence-backed amenity signals that must qualify.
max_stay_total_usdNo
min_rating_fractionNoRating threshold as a 0-1 fraction of each source's own scale (0.8 = 8/10 or 4/5).

Output Schema

NameRequiredDescriptionDefault
gapsYes
metaYes
modeYes
queryYes
resultsYes
coverageYes
truncatedYes
suggestionsYes
total_matchesYes
no_data_reasonYes
tax_comparabilityYes

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 declare readOnlyHint, idempotentHint, and openWorldHint=false, so the low bar is met. The description adds meaningful context beyond that: 'historical snapshots, not live availability,' which is a genuine behavioral trait an agent must know (prices may be stale, not bookable). Return contents are also summarized.

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 tight sentences, front-loaded with the core action, then return shape, then the critical caveat. Every sentence earns its place with no redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists so return values need not be elaborated, but with 16 parameters and only 38% description coverage, the definition leaves a large filter surface under-explained. The mode guidance is present, but the many filter parameters lack any narrative meaning.

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?

At 38% schema description coverage the description should compensate, but it only addresses the date-vs-nights mode mapping. It says nothing about the 16 parameters' filters (sources, max_nightly_usd, required_signals, min_rating_fraction, freshness_days), leaving most of the surface documented only in the schema (or not at all).

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?

Specific verb (Search) plus resource (stored lodging price observations) and scope (a city). It clearly distinguishes a raw price-search from aggregation siblings implicitly via 'observations,' but never names compare_lodging_months or compare_city_costs, leaving the agent to infer which sibling handles comparison.

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?

It explains the two calling modes (exact dates via checkin/checkout vs stay length via nights), which is useful usage guidance. However, it gives no when-not-to-use or explicit routing to the many comparison siblings, so an agent still has to guess when search_lodging vs compare_lodging_months applies.

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