Skip to main content
Glama

Price and lock a room

secure_room

Price and lock an exact room for specific dates. Returns the live price, cancellation policy, and a secure booking link with the room preselected. Requires connecting your Roomza account.

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>"
    },
    "name": "secure_room"
  }
}

Input Schema

NameRequiredDescriptionDefault
guestsNoGuest count (default 2)
room_idYesRoom UUID (from show_rooms or get_hotel_rooms)
check_inYesCheck-in date, YYYY-MM-DD
check_outYesCheck-out date, YYYY-MM-DD

Output Schema

NameRequiredDescriptionDefault
okYesfalse = the request could not be quoted; see message
feesNo
guestsYes
nightsYes
roomIdYes
checkInYes
hotelIdYes
messageYesSet when ok is false
bookableYestrue when a live bookable rate was found
checkOutYes
checkoutNoWhere the booking link finishes: Roomza's checkout or the hotel's own website
currencyYesISO 4217 currency of every amount below
merchantNoWho charges the guest: the supplier, Roomza, or the hotel itself
rateNameYes
acpItemIdNoItem id for an Agentic Commerce Protocol checkout of this stay, when Roomza can take payment in the chat
hotelNameYes
bookingUrlYesSecure checkout link with the room preselected; payment happens only there
dueAtHotelYesAdditional amount due at the hotel, in currency units
publicRateYesHotel's public rate, in currency units, for comparison
roomNumberYes
totalTodayYesTotal price of the stay, in currency units; when it is charged is shown at checkout
trackRecordYesHotel's room-request honor track record
cancellationYes
paymentTimingNoWhen the card is charged
taxesIncludedNoTaxes and fees inside the total, in currency units
indicativeOnlyYestrue when the price is from public listings, not bookable
priceCheckedAtNoWhen this price was read; prices are live until booked, and checkout never charges more than the price shown
freeCancelUntilNoYYYY-MM-DD free-cancellation deadline, for refundable rates

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / acpItemId
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Item id for an Agentic Commerce Protocol checkout of this stay, when Roomza can take payment in the chat"
      +}
  2. Changed4 schema fields changed
    • addedOutput schema / properties / fees
      Added value: +{
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "amount": {
      +        "type": "number"
      +      },
      +      "description": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "included": {
      +        "description": "true: inside the total; false: due at the hotel",
      +        "type": "boolean"
      +      }
      +    },
      +    "required": [
      +      "description",
      +      "amount",
      +      "included"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / freeCancelUntil
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "YYYY-MM-DD free-cancellation deadline, for refundable rates"
      +}
    • addedOutput schema / properties / paymentTiming
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "When the card is charged"
      +}
    • addedOutput schema / properties / priceCheckedAt
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "When this price was read; prices are live until booked, and checkout never charges more than the price shown"
      +}
  3. Changed7 schema fields changed
    • addedOutput schema / properties / checkout
      Added value: +{
      +  "anyOf": [
      +    {
      +      "enum": [
      +        "roomza",
      +        "hotel_site"
      +      ],
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Where the booking link finishes: Roomza's checkout or the hotel's own website"
      +}
    • addedOutput schema / properties / currency / description
      Added value: +"ISO 4217 currency of every amount below"
    • changedOutput schema / properties / dueAtHotel / description
      Previous value: -"Additional amount due at the hotel, dollars"New value: +"Additional amount due at the hotel, in currency units"
    • addedOutput schema / properties / merchant
      Added value: +{
      +  "anyOf": [
      +    {
      +      "enum": [
      +        "NUITEE",
      +        "ROOMZA",
      +        "HOTEL"
      +      ],
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Who charges the guest: the supplier, Roomza, or the hotel itself"
      +}
    • changedOutput schema / properties / publicRate / description
      Previous value: -"Hotel's public rate in dollars, for comparison"New value: +"Hotel's public rate, in currency units, for comparison"
    • addedOutput schema / properties / taxesIncluded
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "number"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Taxes and fees inside the total, in currency units"
      +}
    • changedOutput schema / properties / totalToday / description
      Previous value: -"Total charged today in dollars"New value: +"Total price of the stay, in currency units; when it is charged is shown at checkout"
  4. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly=false, destructive=false, idempotent=false, so the description is not carrying the safety burden alone. It usefully adds the auth prerequisite ("Requires connecting your Roomza account") and states what comes back — live price, cancellation policy, and a preselected booking link. The notable gap is the semantics of "lock": it never says whether a hold expires, blocks inventory, or incurs any charge.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, front-loaded with the operation, followed by return values and then the prerequisite. No filler, no restatement of the title, and nothing that could be cut without losing information.

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?

An output schema exists, so return-value explanation is a bonus rather than a requirement, and the description still summarizes the key fields. Combined with the disclosed auth requirement, that covers most of what an agent needs, with the hold/expiry behavior of "lock" the main unresolved detail.

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 coverage is 100%, with each parameter documented including the room_id provenance and the guest-count default, so the schema does the heavy lifting. The description confirms the date scoping but adds no format, constraint, or edge-case meaning beyond the schema, which lands at the baseline 3.

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 uses a specific compound verb ("Price and lock") plus a precise resource ("an exact room for specific dates"), which separates it from browsing siblings like show_rooms or find_matching_rooms. The one-word title alone would be ambiguous, but the description resolves it to a concrete hold-plus-quote operation.

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 implied rather than stated: the agent can infer this is the step after finding a room, and the account-connection prerequisite is disclosed. However, no sibling alternatives are named (e.g. find_matching_rooms for flexible dates) and there is no explicit when-not guidance, such as what to do if the room is unavailable.

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