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.

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": {
      "city": "<city>"
    },
    "name": "search_lodging"
  }
}

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. Changed2 schema fields changed
    • addedOutput schema / properties / results / items / properties / travel_window
      Added value: +{
      +  "description": "'departed' when the sampled travel date is before today (UTC): the price is a historical observation and cannot be booked. 'upcoming' otherwise — still a stored snapshot, never live availability.",
      +  "enum": [
      +    "upcoming",
      +    "departed"
      +  ],
      +  "type": "string"
      +}
    • changedOutput schema / properties / results / items / required
      Previous value: -[
      -  "place_id",
      -  "name",
      -  "subcategory",
      -  "address",
      -  "source",
      -  "source_url",
      -  "observed_at",
      -  "checkin",
      -  "checkout",
      -  "nights",
      -  "room_name",
      -  "nightly_usd",
      -  "stay_total_usd",
      -  "original_amount",
      -  "original_currency",
      -  "price_basis",
      -  "fx_rate",
      -  "fx_rate_date",
      -  "tax_status",
      -  "cancellation",
      -  "availability_status",
      -  "ratings",
      -  "amenity_signals"
      -]New value: +[
      +  "place_id",
      +  "name",
      +  "subcategory",
      +  "address",
      +  "source",
      +  "source_url",
      +  "observed_at",
      +  "checkin",
      +  "travel_window",
      +  "checkout",
      +  "nights",
      +  "room_name",
      +  "nightly_usd",
      +  "stay_total_usd",
      +  "original_amount",
      +  "original_currency",
      +  "price_basis",
      +  "fx_rate",
      +  "fx_rate_date",
      +  "tax_status",
      +  "cancellation",
      +  "availability_status",
      +  "ratings",
      +  "amenity_signals"
      +]
  2. 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 safety profile is covered. The description adds meaningful context beyond that: the results are historical snapshots rather than live availability, and each result carries original amount/currency, tax status, per-source ratings, amenity signals, provenance, and coverage — useful for interpreting output before calling.

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 with no filler: purpose and modes first, then what comes back, then the historical-snapshot caveat front-loaded as the key limitation. Every clause carries information an agent would otherwise have to infer.

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?

With 16 parameters, low schema coverage, and no output-schema burden on the description, the definition covers the headline shape but leaves important operational questions open — notably whether checkin/checkout and nights are mutually exclusive, what happens on a partial date pair, and how limit/pagination behaves. Adequate to call correctly in the common case, incomplete for an agent probing edge cases.

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 coverage is only 38% across 16 parameters, so the description must compensate. It does explain the two-mode logic (exact dates vs stay length), per-source rating scales indirectly via the results, amenity signals, and currency/tax fields, but it says nothing about limit, rooms, adults, children, sources, freshness_days, or the three USD/rating threshold filters.

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 gives a specific verb and resource — 'search stored lodging price observations for a city' — and adds the scope qualifier that it works either by exact dates or by stay length. It is clearly distinct from a generic search, but it never names or distinguishes itself from siblings like compare_lodging_months, which is the nearest confusion risk.

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 signals two usage modes ('exact mode' vs 'typical mode' hinted in the schema) and provides one genuine exclusion: 'These are historical snapshots, not live availability,' which tells the agent not to use it for current prices. However, it offers no routing to alternatives (compare_lodging_months, compare_city_costs) when those would be the better tool, so guidance is implied rather than explicit.

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