Skip to main content
Glama

Estimate a stay price

price_hyatus_stay
Read-only

Price a selected stay for exact dates and guest count using backend fees, payment schedule, and estimate and confirmation flags. May return checkoutUrl and continue_url for the existing checkout; these can be null and do not authenticate, reserve or pay. Checkout still requires sign-in and current validation. Reprice after changing dates, guests or rate code.

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": {
      "slug": "<slug>",
      "checkIn": "<checkIn>",
      "checkOut": "<checkOut>",
      "guests": "<guests>"
    },
    "name": "price_hyatus_stay"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYesPublic listing slug from a Hyatus search result or listing URL, not an internal ID or full URL.
guestsYesNumber of guests to price, from 1 to 100. Search and comparison declare guests as a string; either form is accepted by every tool. Listing capacity is checked by checkout.
checkInYesLocal arrival date in YYYY-MM-DD format, with no time or UTC conversion. Supply checkOut too.
checkOutYesLocal departure date in YYYY-MM-DD format, after checkIn and at most 366 nights later. Checkout day is not an occupied night. Supply checkIn too.
stayLengthNoStay length in nights as a whole-number string from '1' to '366'. Retained as stay context; explicit checkIn/checkOut determine the priced dates.
discountCodeNoPreferred-rate code supplied by the guest. Pricing trims and uppercases it, then checks eligibility; search only retains it as context.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / guests / description
      Previous value: -"Number of guests to price, from 1 to 100. This is an integer, not the string used by search and comparison filters; listing capacity is checked by checkout."New value: +"Number of guests to price, from 1 to 100. Search and comparison declare guests as a string; either form is accepted by every tool. Listing capacity is checked by checkout."
  2. Changed6 schema fields changed
    • addedInput schema / properties / checkIn / description
      Added value: +"Local arrival date in YYYY-MM-DD format, with no time or UTC conversion. Supply checkOut too."
    • addedInput schema / properties / checkOut / description
      Added value: +"Local departure date in YYYY-MM-DD format, after checkIn and at most 366 nights later. Checkout day is not an occupied night. Supply checkIn too."
    • addedInput schema / properties / discountCode / description
      Added value: +"Preferred-rate code supplied by the guest. Pricing trims and uppercases it, then checks eligibility; search only retains it as context."
    • addedInput schema / properties / guests / description
      Added value: +"Number of guests to price, from 1 to 100. This is an integer, not the string used by search and comparison filters; listing capacity is checked by checkout."
    • addedInput schema / properties / slug / description
      Added value: +"Public listing slug from a Hyatus search result or listing URL, not an internal ID or full URL."
    • addedInput schema / properties / stayLength / description
      Added value: +"Stay length in nights as a whole-number string from '1' to '366'. Retained as stay context; explicit checkIn/checkOut determine the priced dates."
  3. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the readOnlyHint/destructiveHint=false annotations, the description discloses that checkoutUrl and continue_url may be returned, may be null, and do not authenticate, reserve or pay. It further states that checkout requires sign-in and current validation, which is exactly the kind of side-effect boundary an agent cannot get from annotations.

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?

Three sentences, front-loaded with the core purpose and followed by the checkout caveat and the reprice rule; nothing is redundant. The first sentence is dense with clause-chained detail, but each item carries meaning.

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 definition covers the one genuinely risky return value (checkout links) and the auth prerequisite, which is the most important gap to close for a pricing tool. It stops short of describing the price/fee breakdown returned, which an agent may still need to interpret results.

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 all six parameters already carry constraints and formats. The description reinforces that dates, guest count and rate code feed the price and that a reprice is needed after changes, but it adds no format or resolution detail beyond the schema.

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 definition uses a specific verb and resource, 'Price a selected stay', and enumerates the inputs that drive the computation (exact dates, guest count, backend fees, payment schedule, estimate/confirmation flags). This distinguishes it functionally from availability lookup or comparison, but it never names a sibling tool, so the agent must infer the boundary.

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?

'Reprice after changing dates, guests or rate code' gives a clear triggering condition for a repeat call, and the checkout caveat sets scope limits on what this tool accomplishes. There is no explicit statement of when a different tool (e.g. compare or availability) should be chosen instead.

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.