Skip to main content
Glama

quote_stay

Hotels only. ПРЕДВАРИТЕЛЬНАЯ цена проживания на конкретные даты (не бронь и не резерв). roomTypeId — из get_hotel_availability, если гость выбрал тип номера; тип не назван — НЕ спрашивай его, а вызывай без roomTypeId: посчитается каждый тип (roomTypes[] — у каждого quote или reason отказа). Называй гостю ровно total и currency из ответа вместе с датами; окончательная цена — в форме бронирования. ok:false — цены нет, не угадывай; detail — причина (min-stay — минимальный срок проживания и т.п.), её и назови. Цена относится к тарифу ratePlan из ответа: называй его по ratePlan.name (на языке гостя) и с его условиями отмены, а не тарифом, о котором спросил гость. Тариф не назван — подбирается самый дешёвый продаваемый; notOffered — тарифы, которые на эти даты не продаются, и причина (min-stay и т.п.). Без party цена — за номер (priceBasis room); гость назвал компанию — передай party, цена будет на неё (priceBasis party): так и скажи гостю. detail child-ages-required — цена зависит от возраста детей: спроси возраст каждого ребёнка и посчитай снова. ok:false с reason bad_request — ошибка в датах вызова, а не «данных нет»: dates-required — спроси у гостя даты заезда и выезда; checkin-in-the-past, checkout-not-after-checkin, checkin-too-far-ahead — уточни даты.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
partyNoКто едет: взрослые (≥1), дети и возраст каждого ребёнка (childAges). Передавай, только если гость назвал; не назвал — не передавай и НЕ спрашивай ради цены или наличия: посчитается цена номера (priceBasis room). Названная компания меняет цену так же, как в форме бронирования (доплата за дополнительного взрослого и за детей по возрасту).
domainYesHotel location code (uppercase, from the site URL or QR).
checkInYesЗаезд. Дата YYYY-MM-DD по календарю отеля.
checkOutYesВыезд (позже заезда). Дата YYYY-MM-DD по календарю отеля.
ratePlanIdNoid тарифа (ratePlan.ratePlanId или id из notOffered прежнего ответа), если гость выбрал конкретный тариф; иначе не передавай. Тариф с ограничением на эти даты вернёт ok:false с причиной.
roomTypeIdNoroomTypeId из ответа get_hotel_availability; гость тип не назвал — не передавай (посчитаются все типы).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / party / description
      Previous value: -"Сколько гостей: взрослые (≥1) и дети. Передавай, только если гость назвал; не назвал — не передавай (посчитается 1 взрослый) и НЕ спрашивай ради цены или наличия: цена от числа гостей не зависит."New value: +"Кто едет: взрослые (≥1), дети и возраст каждого ребёнка (childAges). Передавай, только если гость назвал; не назвал — не передавай и НЕ спрашивай ради цены или наличия: посчитается цена номера (priceBasis room). Названная компания меняет цену так же, как в форме бронирования (доплата за дополнительного взрослого и за детей по возрасту)."
    • addedInput schema / properties / party / properties / childAges
      Added value: +{
      +  "description": "Возраст каждого ребёнка, если гость назвал.",
      +  "items": {
      +    "maximum": 17,
      +    "minimum": 0,
      +    "type": "integer"
      +  },
      +  "type": "array"
      +}
  2. Changed2 schema fields changed
    • changedInput schema / properties / roomTypeId / description
      Previous value: -"roomTypeId из ответа get_hotel_availability."New value: +"roomTypeId из ответа get_hotel_availability; гость тип не назвал — не передавай (посчитаются все типы)."
    • changedInput schema / required
      Previous value: -[
      -  "domain",
      -  "roomTypeId",
      -  "checkIn",
      -  "checkOut"
      -]New value: +[
      +  "domain",
      +  "checkIn",
      +  "checkOut"
      +]
  3. Changed1 schema field changed
    • changedInput schema / properties / party / description
      Previous value: -"Сколько гостей: взрослые (≥1) и дети. Не знаешь — спроси; по умолчанию 1 взрослый."New value: +"Сколько гостей: взрослые (≥1) и дети. Передавай, только если гость назвал; не назвал — не передавай (посчитается 1 взрослый) и НЕ спрашивай ради цены или наличия: цена от числа гостей не зависит."
  4. Changed1 schema field changed
    • changedInput schema / properties / ratePlanId / description
      Previous value: -"Тариф, если гость выбрал конкретный; иначе не передавай."New value: +"id тарифа (ratePlan.ratePlanId или id из notOffered прежнего ответа), если гость выбрал конкретный тариф; иначе не передавай. Тариф с ограничением на эти даты вернёт ok:false с причиной."
  5. Added

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations, the description carries the full behavioral burden and does so: it discloses that ok:false means no price (do not guess), that detail carries the reason (min-stay, child-ages-required, dates-required, checkin-in-the-past), that total/currency must be quoted verbatim, and that the final price lives in the booking form. It also explains priceBasis room vs party and notOffered semantics.

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?

Purpose and scope are front-loaded, and nearly every clause is actionable response/error handling rather than filler. It is, however, a dense single block mixing handling of ok:false cases, ratePlan semantics and error reasons, which makes it harder to scan than a chunked layout would be.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, so the description must explain return values and it does: total/currency, per-roomType quote or reason, ratePlan.name and its cancellation terms, and notOffered reasons. Nothing needed to call the tool correctly and relay results is missing.

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% and the parameter descriptions already document party/childAges, roomTypeId, ratePlanId and their defaults, so the baseline is 3. The description largely restates those same constraints rather than adding syntax or format meaning 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?

States a specific verb and resource: preliminary price of stay for given dates, explicitly 'не бронь и не резерв'. It also scopes to 'Hotels only', which cleanly separates it from create_reservation and get_hotel_availability without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit when-to-use and when-not rules: pass roomTypeId only if the guest named a type, otherwise call without it; pass party only if the guest named a party; never ask for these just to get a price. It names the sibling source of roomTypeId (get_hotel_availability), giving the agent an unambiguous routing rule.

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