Skip to main content
Glama

HotelRefund Price Tracker

Start tracking a hotel price

track_hotel_price
Idempotent

Today is 2026-11-24 (UTC) — never infer the date from the conversation or from training data. Stay dates are calendar days in the hotel's local time zone, which in Asia is already ahead of UTC, so check_in must be 2026-11-23 or later; an earlier check_in is rejected, not silently accepted. Start tracking one hotel (agoda_hotel_id from search_hotels) for one stay (check_in to check_out, YYYY-MM-DD). This is the tool that creates lasting state: from now on the Agoda price is checked automatically several times a day and every observed price is recorded, so the same tracking_id can be asked about days or weeks later with get_price_history. Free, anonymous and public; no account. If the same hotel and dates are already tracked, the existing tracking is returned instead of a duplicate, so it is safe to call again. The response includes tracking_id, booking_url (the Agoda page for this hotel via a HotelRefund redirect) and track_page_url (the booking-decision page: price chart, timing read and a book button; in the language given by language, with track_page_urls for all four). Used both before booking (to catch a drop) and after booking a refundable rate (to see when rebooking would pay off).

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": {
      "agoda_hotel_id": "<agoda_hotel_id>",
      "check_in": "<check_in>",
      "check_out": "<check_out>"
    },
    "name": "track_hotel_price"
  }
}

Input Schema

NameRequiredDescriptionDefault
check_inYesCheck-in date, YYYY-MM-DD (today up to 540 days ahead).
currencyNoOptional ISO currency for recorded prices: KRW, JPY, USD, EUR, TWD, HKD, CNY, SGD, THB, GBP, AUD or VND. Defaults by language.
languageNoOptional locale for the tracked rate: ko-kr, ja-jp, en-us, zh-cn, zh-tw or zh-hk (default en-us).
check_outYesCheck-out date, YYYY-MM-DD (after check_in, stay of 60 nights or less).
agoda_hotel_idYesHotel id from search_hotels.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, openWorldHint=true, destructiveHint=false, but the description adds real substance beyond them: it creates durable state, prices are polled several times a day, every observation is recorded, and the call is free/anonymous with no account. The dedup behavior is described concretely (existing tracking returned) rather than restating the idempotency hint, and the return contents are enumerated.

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?

The critical constraint — the current date and the check_in floor — is front-loaded, which is the right call for a tool that rejects invalid dates. It is a single dense paragraph, though, and the time-zone preamble is wordier than needed for an agent that already has a date-validation rule in the schema.

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?

There is no output schema, so the description carries the return-value burden and does: tracking_id, booking_url, track_page_url plus per-language track_page_urls. For a state-creating, open-world tool with five parameters, all the facts an agent needs to call it correctly and interpret the result are present.

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, and the description genuinely adds meaning: the hotel-local-time-zone rule explains why check_in may be a day earlier than UTC today, and language is tied to the language variant of track_page_url. It does not extend currency or stay-length constraints beyond what the schema already says, so it stops just short of full compensation.

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?

"Start tracking one hotel (agoda_hotel_id from search_hotels) for one stay (check_in to check_out)" is a precise verb + resource + scope statement. It also names what the tool produces (tracking_id, booking_url, track_page_url) and points at the sibling that reads the accumulated data, so an agent can separate it from get_price_history, get_current_price, and search_hotels 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 Guidelines5/5

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

It explicitly covers both usage windows: "Used both before booking (to catch a drop) and after booking a refundable rate (to see when rebooking would pay off)." It names the prerequisite source for agoda_hotel_id (search_hotels) and the follow-up tool (get_price_history), and it says repeats are safe because the existing tracking is returned rather than duplicated.

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