Skip to main content
Glama

Compare a Hotel from Its Link

compare_hotel_link

Compares prices for the one hotel behind a link from Booking.com, Agoda, Traveloka, Trip.com, Hotels.com or Airbnb: finds the same hotel on the other sites and lists each site's price for the whole stay, cheapest first, with a link to each. The dates and guests in the link are used when it has them, otherwise checkIn, checkOut and adults. Share links and links inside pasted text work too. Takes about 10-30 seconds.

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": {
      "url": "<url>",
      "checkIn": "<checkIn>",
      "checkOut": "<checkOut>"
    },
    "name": "compare_hotel_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesThe hotel link as the user pasted it, e.g. 'https://www.agoda.com/radisson-hotel-danang/hotel/da-nang-vn.html'.
adultsNoNumber of adults, used when the link does not say (default 2).
checkInYesCheck-in date YYYY-MM-DD, used when the link has no dates.
checkOutYesCheck-out date YYYY-MM-DD, used when the link has no dates.
languageNoOptional UI language hint. Only used when queryText gives no signal.
childAgesNoAge of each child for supported family quotes.
queryTextNoShort excerpt (one sentence at most) of the guest's latest message in their own words, used only to detect the reply language; it is not stored or forwarded. It carries no names, contact details or other parts of the conversation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / childAges
      Added value: +{
      +  "description": "Age of each child for supported family quotes.",
      +  "items": {
      +    "maximum": 17,
      +    "minimum": 0,
      +    "type": "integer"
      +  },
      +  "maxItems": 20,
      +  "type": "array"
      +}
  2. Added

TDQS

A4.1/5.0
Behavior4/5

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

Adds real context beyond the annotations: expected latency (10-30 seconds), output ordering (cheapest first, whole-stay prices, one link per site), and the precedence rule for dates and guests. The annotations already cover safety (destructiveHint=false, openWorldHint=true), so the remaining gap is what happens when the hotel cannot be matched or a site fails, which is not addressed.

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?

Front-loaded with the core action and resource, then progressively narrows to input precedence and timing. Dense and mostly waste-free, though the share-link sentence and the latency sentence could be tightened.

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 correctly explains the return shape (per-site prices for the whole stay, cheapest first, with links) and the latency an agent should expect. It does not cover partial-failure or no-match behavior, which matters for an openWorld multi-site lookup.

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%, so the baseline is 3. The description reinforces the fallback logic for url vs checkIn/checkOut/adults and notes share-link tolerance, but adds nothing about language, queryText, or childAges beyond what the schema already documents.

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 (compares prices), a specific resource (the one hotel behind a link), names the six source sites, and makes clear it returns cross-site prices for the whole stay. It is plainly distinguishable from siblings like get_hotel_detail or get_ota_hotel_detail, which fetch one site's data.

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?

Gives clear context: use it when the guest supplies a hotel link, and explains that dates/guests embedded in the link win over checkIn/checkOut/adults, plus that share links and links pasted inside text work. It never explicitly says when to prefer get_hotel_detail or search_hotels_live instead, so no exclusions are stated.

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