Skip to main content
Glama

Поиск авиабилетов

flight_search
Read-onlyIdempotent

Search for airfares by IATA origin and destination codes and travel date. Returns only flights bookable inside the bank or all partner offers.

Instructions

Поиск авиабилетов. from_code/to_code — коды IATA (MOW, LED, SVO), date — YYYY-MM-DD.

Резолвера «название города → код» у банка нет. Коды вместе с названиями отдаёт flight_history() — оттуда их и бери, а не угадывай.

only_bookable=True (по умолчанию) — только те предложения, что бронируются внутри банка; их отдаёт первый же батч, поэтому поиск быстрый. False дочитывает весь поток: это десятки секунд и тысячи предложений, почти все — от партнёров, которые уводят на свой сайт.

Оформление и оплата — flight_book(offer_id, fare, passengers): один шаг, он же бронь, он же оплата. ⚠️ Этот путь экспериментальный и ни разу не выполнялся — запрос уходит без подписи, которую шлёт приложение, и шлюз может его отвергнуть («ИСХОД НЕИЗВЕСТЕН»). Поиск, тарифы и места (этот тул, flight_offer, flight_seats) — полноценные; для надёжной покупки — приложение.

Технический нюанс: заголовок X-Travel-Context='mb', который делает этот эндпоинт доступным по мобильной сессии, не встречался в пассивном перехвате трафика — он был подобран пробой вживую. Если банк когда-нибудь изменит поведение этого хоста, это первое место, куда стоит посмотреть.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateYes
limitNo
adultsNo
infantsNo
to_codeYes
childrenNo
from_codeYes
max_batchesNo
only_bookableNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

Beyond the readOnly/idempotent annotations, the description discloses authentic operational details: fast first-batch behavior on the default path, a slow stream of thousands of partner offers when only_bookable=False, an experimental payment path that may fail, and an odd X-Travel-Context header not observed in normal traffic. This is unusually candid and behaviorally useful.

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 core purpose is front-loaded in the first sentence, and the rest is parsed into compact sections: code resolution, offer policy, booking/payment recommendation, and endpoint caveat. Every paragraph carries decision-relevant info; there is no filler.

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 search workflow is well covered: how to obtain codes, how to interpret only_bookable, and how the tool fits with flight_test, flight_offer, flight_seats, and flight_book. The return value is presumably covered by the output schema. The remaining gap is max_batches/limit not being connected to the described batch/stream behavior, which could confuse an agent when it wants to limit the result flow.

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?

The description adds meaning beyond the schema for from_code, to_code, date, and only_bookable, which are the most critical fields. However, the schema has 0% description coverage and 5 of 9 parameters (limit, adults, children, infants, max_batches) are left undocumented in both schema and description, forcing the agent to infer from titles and defaults.

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+resource pair (Поиск авиабилетов) and defines the core inputs: IATA codes and date format. It also distinguishes the flight workflow roles by naming flight_offer, flight_seats, and flight_book as sibling steps, so an agent can tell which tool does what.

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?

It explicitly tells the agent not to guess city-derived IATA codes and to take them from flight_history() instead. It also explains when only_bookable=True vs False should be used, and it clarifies that booking/payment belongs to flight_book and that reliable purchase goes through 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