Skip to main content
Glama

Deals and discounts

ot_deals
Read-onlyIdempotent

Find current last-minute deals and rooms sorted by discount percentage, filtered by city, dates, and guests, to compare discounted stay options.

Instructions

Current discounts: the home page's last-second deals and the most discounted stays (biggest percent first).

last_second (site-wide, undated prices, shown 14:00-23:50 Iran time) is left out when city is given. most_discounted lists rooms of the discounted collection (in city if given). Next: ot_price_quote.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "ot_deals"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityNoCity slug (default: whole site).
limitNoRooms per list.
guestsNoGuests; smaller rooms are left out.
check_inNoArrival day YYYY-MM-DD (not past).
check_outNoDeparture day YYYY-MM-DD (max 20 nights).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed17 schema fields changedv0.4.0
    • removedInput schema / properties / check_in / anyOf
      Removed value: -[
      -  {
      -    "format": "date",
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / check_in / description
      Previous value: -"Arrival day YYYY-MM-DD, e.g. '2026-10-20' (not past, in the open calendar)."New value: +"Arrival day YYYY-MM-DD (not past)."
    • addedInput schema / properties / check_in / format
      Added value: +"date"
    • addedInput schema / properties / check_in / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / properties / check_out / anyOf
      Removed value: -[
      -  {
      -    "format": "date",
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / check_out / description
      Previous value: -"Departure day YYYY-MM-DD, e.g. '2026-10-23' (max 20 nights)."New value: +"Departure day YYYY-MM-DD (max 20 nights)."
    • addedInput schema / properties / check_out / format
      Added value: +"date"
    • addedInput schema / properties / check_out / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / properties / city / anyOf
      Removed value: -[
      -  {
      -    "pattern": "^[A-Za-z][A-Za-z0-9-]{1,60}$",
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / city / description
      Previous value: -"City slug, e.g. 'ramsar'. Default: whole site."New value: +"City slug (default: whole site)."
    • addedInput schema / properties / city / pattern
      Added value: +"^[A-Za-z][A-Za-z0-9-]{1,60}$"
    • addedInput schema / properties / city / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / properties / guests / anyOf
      Removed value: -[
      -  {
      -    "maximum": 50,
      -    "minimum": 1,
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / guests / description
      Previous value: -"Guests, e.g. 4; smaller rooms are left out."New value: +"Guests; smaller rooms are left out."
    • addedInput schema / properties / guests / maximum
      Added value: +50
    • addedInput schema / properties / guests / minimum
      Added value: +1
    • addedInput schema / properties / guests / type
      Added value: +[
      +  "integer",
      +  "null"
      +]
  2. Changed13 schema fields changedv0.2.0
    • changedInput schema / properties / check_in / description
      Previous value: -"Arrival day, Gregorian YYYY-MM-DD, e.g. '2026-10-20'. Not in the past; calendars open only to the end of next Jalali month."New value: +"Arrival day YYYY-MM-DD, e.g. '2026-10-20' (not past, in the open calendar)."
    • removedInput schema / properties / check_in / title
      Removed value: -"Check In"
    • changedInput schema / properties / check_out / description
      Previous value: -"Departure day, Gregorian YYYY-MM-DD, e.g. '2026-10-23' (3 nights). At most 20 nights after check_in."New value: +"Departure day YYYY-MM-DD, e.g. '2026-10-23' (max 20 nights)."
    • removedInput schema / properties / check_out / title
      Removed value: -"Check Out"
    • changedInput schema / properties / city / anyOf
      Previous value: -[
      -  {
      -    "description": "Slug (letters, digits, -).",
      -    "pattern": "^[A-Za-z][A-Za-z0-9-]{1,60}$",
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "pattern": "^[A-Za-z][A-Za-z0-9-]{1,60}$",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / city / description
      Previous value: -"City slug to find its most discounted stays, e.g. 'ramsar'. Default: the whole site."New value: +"City slug, e.g. 'ramsar'. Default: whole site."
    • removedInput schema / properties / city / title
      Removed value: -"City"
    • changedInput schema / properties / guests / description
      Previous value: -"Number of guests, e.g. 4. Rooms that cannot take that many are left out."New value: +"Guests, e.g. 4; smaller rooms are left out."
    • removedInput schema / properties / guests / title
      Removed value: -"Guests"
    • changedInput schema / properties / limit / default
      Previous value: -10New value: +8
    • removedInput schema / properties / limit / title
      Removed value: -"Limit"
    • removedInput schema / title
      Removed value: -"ot_dealsArguments"
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "title": "ot_dealsDictOutput",
      -  "type": "object"
      -}New value: +null
  3. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover the read-only, idempotent, non-destructive, open-world profile, so the description's job is to add behavior — and it does: the last_second list uses undated site-wide prices only shown 14:00-23:50 Iran time, and it is dropped entirely when `city` is set. That conditional suppression of a result list is exactly the kind of non-obvious behavior an agent needs and cannot get from annotations or schema.

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 definition is short and front-loads the resource and ordering, with the conditional city rule immediately after. The telegraphic fragments ('Next: ot_price_quote.') are terse to the point of slight ambiguity, but nothing is wasted.

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?

With zero required parameters, no output schema, and annotations carrying the safety profile, the remaining burden is explaining what comes back and how filters change it — which the description does for both lists, the ordering, the time window, and the city suppression.

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 goes beyond the schema by explaining the interaction between `city` and the two result sets and clarifying that `limit` is rooms per list. It does not discuss how guests or the stay dates shape the deals, but the schema descriptions already cover those constraints.

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 resource (current discounts) and enumerates the two lists returned: the home page's last-second deals and the most-discounted stays ordered by biggest percent first. That is concrete enough for an agent to distinguish it from ot_search_rooms or ot_destinations, though it never explicitly names those siblings as alternatives.

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 provides a conditional rule (last_second is omitted when `city` is supplied) and a workflow pointer ('Next: ot_price_quote'), which implies this is a discovery step preceding pricing. However, there is no statement of when to choose this tool over the search-oriented siblings, so the guidance remains 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.