Skip to main content
Glama

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

flight_search
Read-onlyIdempotent

Search and compare flight offers bookable inside the bank by IATA origin/destination codes and travel date. Use results to evaluate options; ticket purchase stays in the app.

Instructions

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

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

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

Купить билет через MCP нельзя: подтверждённого шага бронирования и оплаты нет. Это поиск и сравнение, покупка — в приложении.

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

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": {
      "from_code": "<from_code>",
      "to_code": "<to_code>",
      "date": "<date>"
    },
    "name": "flight_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateYes
limitNo
adultsNo
infantsNo
to_codeYes
childrenNo
from_codeYes
max_batchesNo
only_bookableNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so safety is covered. The description still adds real value beyond them: latency and result-volume characteristics of the only_bookable flag, the absence of any booking/payment step, and the fragile X-Travel-Context='mb' header dependency as a first place to look if the host changes behavior.

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?

Front-loaded with what the tool does, then code syntax, then the resolver, then the flag tradeoff, then the no-purchase caveat. Only the X-Travel-Context header paragraph sits closest to implementation trivia, though it earns mild keep as a diagnostic hint. Structure is clean and each block is short.

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?

An output schema exists, so return values need not be described. For a 9-parameter, open-world search tool the description covers purpose, input encoding, cost/volume tradeoffs, sibling dependency, and the hard limit that no purchase is possible — enough for correct invocation.

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 0% across 9 parameters, so the description must carry the load. It does well for the three required parameters (IATA codes with MOW/LED/SVO examples, date as YYYY-MM-DD) and for only_bookable, but limit, adults, children, infants and max_batches get no explanation at all, leaving five of nine parameters to inference from names 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?

Names a specific action and resource ('Поиск авиабилетов') and immediately delimits scope: it is search and comparison only, not booking or payment. It also separates itself from the sibling that supplies airport codes, so an agent can distinguish the two 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?

Gives explicit routing: resolve city names via flight_history() rather than guessing codes. It states the tradeoff between only_bookable=True (first batch, fast) and False (whole stream, tens of seconds, partner offers that leave the app), and explicitly says purchase cannot be done here. That is when-to-use, when-not, and an alternative, all present.

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