Skip to main content
Glama

Hotel deals

eg_deals
Read-onlyIdempotent

Find bookable hotels in a city with high discounts for selected dates and stay length, showing each site discount percentage.

Instructions

List a city's bookable hotels with the biggest discounts for the dates.

Discount is the site's percent off list price. Follow up with eg_rooms.

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": "eg_deals"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityYesSame as eg_search.
kindNohotel
limitNo
nightsNoNumber of nights, 1-30.
check_inNoYYYY-MM-DD, Gregorian or Jalali (1405-08-19). Default tomorrow.
min_starsNo
min_discountNoPercent.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.2.0
    • changedInput schema / properties / check_in / description
      Previous value: -"Check-in date, YYYY-MM-DD (Gregorian, or Jalali such as 1405-08-19). Default: tomorrow."New value: +"YYYY-MM-DD, Gregorian or Jalali (1405-08-19). Default tomorrow."
    • changedInput schema / properties / city / description
      Previous value: -"City slug from eg_cities or its Persian name."New value: +"Same as eg_search."
    • changedInput schema / properties / min_discount / description
      Previous value: -"Smallest discount percent to list."New value: +"Percent."
  2. First observedv0.1.1

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds the useful semantic that discount is the site's own percent off list price, but says nothing about ordering of results (are they ranked by discount?), whether hotels with no qualifying discount are dropped, or how results chain into eg_rooms keys.

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?

Two short sentences, front-loaded with the core purpose, and the discount definition sits immediately before the follow-up pointer. 'For the dates' is slightly loose phrasing given that check_in and nights are separate parameters, but nothing is wasted.

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?

For a seven-parameter read-only discovery tool with no output schema, the description covers purpose, the key derived metric, and the handoff to the next tool in the flow. What remains thin is the semantics of the filter parameters and result ordering, but the essential call-and-continue contract is present.

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 57%, so several parameters (kind, limit, min_stars) carry no documentation in either place. The description's definition of 'discount' does give real meaning to the min_discount filter, but the hotel vs stay distinction and the limit/ranking behavior are left entirely unexplained.

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?

States a specific verb and resource ('List a city's bookable hotels with the biggest discounts') plus the scoping filters implied by 'for the dates', which is clearly distinct from eg_hotel (single hotel) and eg_rooms (room-level). It does not explicitly contrast itself with eg_search, which the city param references, so the differentiation is inferred rather than stated.

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?

Gives a concrete follow-up path ('Follow up with eg_rooms'), which is real routing guidance for a multi-step booking flow. However, it never says when to choose this over eg_search or eg_hotel, so the agent must infer that this is the discount-focused discovery tool rather than the general search tool.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.