Skip to main content
Glama

Оформление и оплата авиабилета

flight_book
Destructive

Buy airline tickets using an offer ID, with final fare, baggage, and rules displayed for approval. One click on the payment button completes the purchase and debits your account.

Instructions

КУПИТЬ авиабилет. РЕАЛЬНЫЕ ДЕНЬГИ. Это ОДИН шаг: у авиа нет отдельной брони, вызов сразу оформляет и списывает. Подтверждение — кнопка: тул сам покажет «Оплатить/Отмена» с итоговой суммой. НЕ спрашивай «да/нет» текстом — покажи тариф, багаж и правила из flight_offer(), согласие даёт кнопка. Клиент без элиситации получает отказ, деньги при этом не двигаются.

⚠️ ПОДПИСЬ ВОСПРОИЗВЕДЕНА, НО ЖИВОЙ ПЛАТЁЖ НИ РАЗУ НЕ ВЫПОЛНЯЛСЯ. Схема x-api-signature восстановлена из JS travel-вебвью и совпадает с захватом байт-в-байт (HmacSHA256, ключ — travel-сессия; см. client.travel_api_signature), вместе с X-Detach-Key/X-Detach-Timeout — тул шлёт их все. Чего НЕ хватает: ключ подписи — это ОТДЕЛЬНАЯ web-сессия travel, которую даёт SSO-мост session/link (travel_link_session), а он вживую не подключён. Поэтому сейчас тул честно откажет «ОПЛАТА НЕ ОТПРАВЛЕНА» (деньги не двигаются), пока travel- сессия недоступна. Живьём платёж не гонялся — надёжный путь остаётся приложение.

offer_id — из flight_search(), fare — номер тарифа из flight_offer(). passengers="me" — владелец счёта (паспорт и латиница из данных банка); для нескольких — JSON-список, как у train_book(). Детская бронь (младше 18) не поддержана — тул откажет, детский билет оформляется в приложении. seats — необязательно, «13A,13B» по одному на пассажира в том же порядке; без них место выдадут при регистрации.

Сумму тул считает сам (тариф + места) и кладёт на кнопку свою цифру, а не ту, что назвал агент: цена тарифа могла измениться с момента поиска.

Возврата авиабилета через MCP нет — в API банка такой операции не нашлось.

force=True — повторить покупку, чей исход не подтверждён, и только после проверки в trips() и приложении, что билет не выписан.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fareNo
forceNo
seatsNo
offer_idYes
account_idNo
passengersNome

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

Annotations already mark the tool as destructive and non-idempotent, but the description adds much more: real money is spent in one step, a payment confirmation button appears, the client is refused without explicit elicitation, and the payment may be declined due to the unavailable travel session. The caveat that the signature was reconstructed but live payment was never executed is unusually explicit.

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

Conciseness3/5

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

The description is front-loaded with the most important safety facts and is structured in useful blocks. It is still long and contains engineering detail not needed for selecting or invoking the tool, such as key reconstruction details, HmacSHA256, and X-Detach-Key/Timeout headers, with repeated warnings that money will not move.

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?

The description covers the full flow of a high-stakes booking: confirmation, refusal, child exclusion, no refund, force retry, and fallback to the app. An output schema exists, so return values do not need to be described, but account_id semantics are missing and the description does not point agent to flight_seats() as the source for seat selection.

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?

With 0% schema description coverage, the description compensates well: offer_id, fare, passengers, seats, and force are all explained with run behavior. However, account_id is never explained, leaving one of six parameters semantically unclear.

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 'КУПИТЬ авиабилет' and immediately states that the call is a single step that both books and debits money. It is clearly scoped to flight purchase, explains the distinction from separate booking/refund flows, and references flight_search() and flight_offer() as input sources.

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?

The description gives explicit usage context: use the tool after offer_id and fare are known, show the final price and rules to the client, and let confirmation happen via the button. It explicitly excludes child bookings, refunds via MCP, and defines when force=True may be used after checking trips() and the app.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/icyberdeveloper/tbank-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server