Skip to main content
Glama

Exact stay price

ot_price_quote
Read-onlyIdempotent

Calculates the total Toman amount to pay for a room, dates, and guests, including extra-guest and late-checkout charges, and checks availability, free nights, stay length, and capacity.

Instructions

Get the amount to pay (Toman) for a room, dates and guests: nights_total (the room page's payable amount for the base guests), the extra-guest charge, optional late checkout, and the total. nightly is the calendar breakdown (rounded per night, so it can add up to a little more than nights_total).

Also checks free nights, stay length and capacity (available=false with a reason otherwise).

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": {
      "room_id": "<room_id>",
      "check_in": "<check_in>",
      "check_out": "<check_out>",
      "guests": "<guests>"
    },
    "name": "ot_price_quote"
  }
}

Input Schema

NameRequiredDescriptionDefault
guestsYesGuests.
room_idYesRoom id (code).
check_inYesArrival day YYYY-MM-DD.
check_outYesDeparture day YYYY-MM-DD (max 20 nights).
late_checkout_hoursNoLate checkout hours to add (offered rooms), e.g. 4.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv0.4.0
    • changedInput schema / properties / check_in / description
      Previous value: -"Arrival day YYYY-MM-DD, e.g. '2026-10-20'."New value: +"Arrival day YYYY-MM-DD."
    • changedInput schema / properties / check_out / description
      Previous value: -"Departure day, e.g. '2026-10-23' (max 20 nights)."New value: +"Departure day YYYY-MM-DD (max 20 nights)."
    • changedInput schema / properties / guests / description
      Previous value: -"Guests, e.g. 4."New value: +"Guests."
    • removedInput schema / properties / late_checkout_hours / anyOf
      Removed value: -[
      -  {
      -    "maximum": 10,
      -    "minimum": 1,
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / late_checkout_hours / maximum
      Added value: +10
    • addedInput schema / properties / late_checkout_hours / minimum
      Added value: +1
    • addedInput schema / properties / late_checkout_hours / type
      Added value: +[
      +  "integer",
      +  "null"
      +]
    • changedInput schema / properties / room_id / description
      Previous value: -"Room id (code), e.g. 2512254."New value: +"Room id (code)."
  2. Changed11 schema fields changedv0.2.0
    • changedInput schema / properties / check_in / description
      Previous value: -"Arrival day, Gregorian YYYY-MM-DD, e.g. '2026-10-20'."New value: +"Arrival day YYYY-MM-DD, e.g. '2026-10-20'."
    • removedInput schema / properties / check_in / title
      Removed value: -"Check In"
    • changedInput schema / properties / check_out / description
      Previous value: -"Departure day, e.g. '2026-10-23'. At most 20 nights."New value: +"Departure day, e.g. '2026-10-23' (max 20 nights)."
    • removedInput schema / properties / check_out / title
      Removed value: -"Check Out"
    • changedInput schema / properties / guests / description
      Previous value: -"Number of guests, e.g. 4."New value: +"Guests, e.g. 4."
    • removedInput schema / properties / guests / title
      Removed value: -"Guests"
    • changedInput schema / properties / late_checkout_hours / description
      Previous value: -"Late checkout hours to add (offered rooms only, usually 4), e.g. 4."New value: +"Late checkout hours to add (offered rooms), e.g. 4."
    • removedInput schema / properties / late_checkout_hours / title
      Removed value: -"Late Checkout Hours"
    • removedInput schema / properties / room_id / title
      Removed value: -"Room Id"
    • removedInput schema / title
      Removed value: -"ot_price_quoteArguments"
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "title": "ot_price_quoteDictOutput",
      -  "type": "object"
      -}New value: +null
  3. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare this a safe, idempotent read, so the description's job is to add operational context — and it does: it discloses that the call performs availability validation and can return available=false with a reason, that free nights/stay length/capacity are checked, and that nightly is rounded per night and may exceed nights_total. It does not say what the failure 'reason' looks like or whether taxes/fees are folded into the total.

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 result in the first clause, then supporting detail in parentheses and a short second sentence about validation. Every sentence carries information, though 'the room page's payable amount for the base guests' leans on external UI context and the second sentence is a fragment that starts with 'Also checks'.

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 must carry the return contract, and it does enumerate every field it returns plus the available=false path. Completeness is slightly short of 5 because it does not state what the reason values are, whether the total is tax-inclusive, or what happens on out-of-range inputs (e.g. stay over 20 nights).

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 adds real meaning: currency is Toman, guests refers to base guests whose payable amount is nights_total (with extra guests charged separately), and late_checkout_hours is an optional add-on offered only for certain rooms. That clarifies the two parameters whose schema text is thinnest ('Guests.', 'Late checkout hours to add').

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 — computes the exact payable amount in Toman for a given room, date range and guest count — and enumerates the components returned (nights_total, extra-guest charge, late checkout, total, nightly breakdown). It is clearly a pricing tool rather than a search/discovery tool, but it never names or contrasts with the adjacent siblings (ot_room, ot_room_calendar, ot_late_checkout) that an agent might also reach for.

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?

Usage is only implied: the mention of 'the room page's payable amount' and the max-your-stay/capacity checks suggest calling it after selecting a room. There is no explicit when-to-use statement, no prerequisite (e.g. call ot_search_rooms or ot_room first to obtain room_id), and no guidance on when to prefer ot_room_calendar or ot_late_checkout instead.

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