Skip to main content
Glama

Lock stay terms before checkout

prebook_stay

Verify and lock the quoted rate with the supplier before payment. Returns prebook_id (required for start_booking), current total, cancellation, taxes, and terms_digest. If status is PRICE_CHANGED, show the guest the new terms and call again with accepted_terms_digest set to terms_digest. If the quoted total exceeds a budget the user stated, do NOT call this yet: tell them the price, say it exceeds their budget, and get explicit confirmation first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rate_idYesExact visible rate id returned by get_quote.
quote_idYesQuote ID from get_quote (format: quote_xxx)
residencyYesExact two-letter residency echoed by get_quote.
journey_idNoContinuity handle returned as journey_id in previous Tell & Go tool results. Always pass the most recent journey_id you have received in this conversation.
option_tokenYesExact opaque option token returned by get_quote.
accepted_terms_digestNoRequired when repricing after PRICE_CHANGED — must match the latest terms_digest from prebook_stay.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

The annotations already signal this is a non-read-only, non-idempotent mutation, and the description adds important behavioral context: the PRICE_CHANGED status flow, the accepted_terms_digest retry pattern, and the returned fields. It could disclose lock duration or side effects of repeated calls, but what is included goes beyond the annotations usefully.

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?

The description is three sentences with no filler. It front-loads the core action, then lists the important return values, then covers the two critical conditional flows (PRICE_CHANGED retry and budget-overrun guard). Every sentence earns its place.

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 compensates by listing key return fields (prebook_id, total, cancellation, taxes, terms_digest) and the status value that drives retry behavior. It is reasonably complete for an agent to invoke and interpret the common paths, though it does not cover lock expiry or failure modes.

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 meaningful parameter semantics by explaining that accepted_terms_digest must be set to the latest terms_digest when retrying after PRICE_CHANGED, and by linking prebook_id to start_booking. This is genuine extra guidance beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource: "Verify and lock the quoted rate with the supplier before payment." It clearly distinguishes itself from siblings by positioning it as the pre-payment, pre-start_booking locking step and by noting it returns prebook_id required for start_booking.

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?

It provides clear sequencing context by stating prebook_id is required for start_booking, and it explicitly gives a when-not-to-call rule for budget overages with required user confirmation. It does not explicitly name all alternatives, but the budget guard and downstream dependency are strong practical guidance.

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.