Skip to main content
Glama

Compare Hotels

compare_hotels
Read-onlyIdempotent

Side-by-side comparison of hotels in a covered city, either the properties you name (up to 10) or a shortlist from filters. For each: official classification, rooms, brand or independent, the building's date, architect, style and heritage status where recorded, recorded amenities, a working official website (we check it), neighbourhood, walkability (nearest station, sights within 1 km, restaurants within 500 m), who it suits and its drawbacks by stated rules, sources and last-verified dates. Names we can't find are listed under not_found, never guessed. Pricing and availability are not_available (no licensed rates source is connected). Costs 2 credits for up to 5 hotels, 3 for 6–10 (free on the paid plan).

Examples:

  • "Compare Memmo Alfama, Santiago de Alfama and Bairro Alto Hotel for a couple who want a quiet, historic, walkable base"

  • "Five independent boutique hotels in Le Marais near the metro"

  • "Upscale hotels in Porto's Ribeira with a working website"

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>"
    },
    "name": "compare_hotels"
  }
}

Input Schema

NameRequiredDescriptionDefault
budgetNoMaps to hotel star bands (budget ≤2★, moderate 3★, upscale 4★, luxury 5★). Stars are a classification, not a price.
criteriaNoOther comparison criteria in plain words.
end_dateNoCheck-out, YYYY-MM-DD.
amenitiesNoe.g. ['wheelchair access', 'wifi', 'parking', 'pool']. Reported as recorded yes/no or not recorded.
start_dateNoCheck-in, YYYY-MM-DD (used only if a rates provider is connected).
destinationYesCity, e.g. 'Lisbon'.
hotel_namesNoSpecific properties to compare, as the client or advisor names them.
max_resultsNoShortlist size when no names are given (default 5). 6 or more costs 3 credits.
preferencesNoe.g. ['boutique', 'historic building', 'quiet', 'walkable', 'near metro', 'independent'].
neighborhoodsNoLimit a shortlist to these neighbourhoods, e.g. ['Alfama', 'Chiado'].

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the read-only/idempotent annotations, the description discloses credit costs (2 for ≤5 hotels, 3 for 6–10, free on paid plan), the not_found fallback instead of guessing, that pricing/availability is not_available for lack of a licensed rates source, and that websites are verified and data carries sources and last-verified dates. That is substantial behavioral context the annotations cannot convey.

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?

Purpose and payload come first, constraints and cost follow, examples anchor it. The long enumeration sentence is dense but every clause (heritage status, walkability radii, drawbacks, verification dates) tells the agent what it will get, and nothing is filler.

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?

For a 10-parameter tool with no output schema, the description effectively serves as the return-value contract by enumerating the per-hotel fields, the not_found bucket, and the not_available pricing state. Combined with full schema coverage and explicit cost rules, an agent has what it needs to call and interpret this correctly.

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, but the description adds real meaning: it clarifies that hotel_names and the filter parameters are alternative paths, and that max_results of 6+ triggers the higher credit tier — an interaction the schema does not express.

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?

Opens with a specific verb and resource ('Side-by-side comparison of hotels') plus the scope constraint ('in a covered city') and the two operating modes (named properties up to 10, or a filtered shortlist). An agent can immediately distinguish this from research_destination or validate_itinerary.

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?

The two modes are stated explicitly and the three worked examples map realistic user requests onto the tool. The 'covered city' qualifier signals a precondition, but there is no explicit statement of when to prefer this over research_destination for hotel lookup.

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