Skip to main content
Glama

Search Route Prices

search_route_prices
Read-only

Data-only search for cached route prices from the monolith backend. Prices are not an offer and are based on data found by users during the last 48 hours. Always set locale to the language of the user's current request, independently of market and route. Provide at least origin or destination. Use YYYY-MM for a month, season, flexible dates, or when the user did not name an exact day; use YYYY-MM-DD only when the user explicitly named that date, and never invent or sample a day. For multiple periods, call this tool once per period with the same market and trip settings. After every relevant search is complete, call render_route_prices exactly once with the complete structured results you want displayed. Empty tickets means no matching cached prices were found, not that no flights operate. Use unique=true with only origin to find the cheapest destinations from a city. Use resolve_city_iata_code first when you know a city name but not its IATA code.

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": {
      "locale": "<locale>"
    },
    "name": "search_route_prices"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPagination page number.
limitNoNumber of tickets to return. Maximum 1000.
directNoWhether to return only direct flights. Defaults to false.
localeYesLanguage of the user's current request. Always set this explicitly from the current request; do not infer it from the market, route, or ChatGPT interface language.
marketNoSupported market used for both cached prices and the subsequent live search. Defaults to ru.ru
oneWayNoWhether to search one-way tickets. Defaults to true. Set false when the user asks for round-trip prices or returnAt is provided.
originNoOptional IATA city or airport code for the origin. If you know only a city name, call resolve_city_iata_code first. Required when destination is absent.
uniqueNoReturn unique destinations when origin is specified and destination is absent. Use this to find the cheapest destinations from a city.
sortingNoSort by price or by route popularity. Defaults to price.price
currencyNoSupported ISO 4217 currency code. Use one of the enum values.RUB
returnAtNoOptional return date or month in YYYY-MM or YYYY-MM-DD format. Use oneWay=false for round trips.
departureAtNoOptional departure date or month in YYYY-MM or YYYY-MM-DD format.
destinationNoOptional IATA city or airport code for the destination. If you know only a city name, call resolve_city_iata_code first. Required when origin is absent.

Output Schema

NameRequiredDescriptionDefault
queryYes
ticketsYes
originCodeYes
currencyCodeYes
destinationCodeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / page / maximum
      Added value: +9007199254740991
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedOutput schema / properties / query / properties / page / maximum
      Added value: +9007199254740991
    • changedOutput schema / properties / query / required
      Previous value: -[
      -  "oneWay",
      -  "direct",
      -  "market",
      -  "locale",
      -  "limit",
      -  "page",
      -  "sorting",
      -  "unique"
      -]New value: +[
      +  "departureAt",
      +  "returnAt",
      +  "oneWay",
      +  "direct",
      +  "market",
      +  "locale",
      +  "limit",
      +  "page",
      +  "sorting",
      +  "unique"
      +]
    • changedOutput schema / properties / tickets / items / required
      Previous value: -[
      -  "originCode",
      -  "destinationCode",
      -  "originAirport",
      -  "destinationAirport",
      -  "price",
      -  "airline",
      -  "airlineName",
      -  "flightNumber",
      -  "originCityName",
      -  "destinationCityName",
      -  "departureAt",
      -  "transfers",
      -  "durationMinutes"
      -]New value: +[
      +  "originCode",
      +  "destinationCode",
      +  "originAirport",
      +  "destinationAirport",
      +  "price",
      +  "airline",
      +  "airlineName",
      +  "flightNumber",
      +  "originCityName",
      +  "destinationCityName",
      +  "departureAt",
      +  "returnAt",
      +  "transfers",
      +  "returnTransfers",
      +  "durationMinutes",
      +  "returnDurationMinutes"
      +]
    • changedOutput schema / required
      Previous value: -[
      -  "currencyCode",
      -  "tickets",
      -  "query"
      -]New value: +[
      +  "currencyCode",
      +  "originCode",
      +  "destinationCode",
      +  "tickets",
      +  "query"
      +]
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly/openWorld/non-destructive), and the description adds context those annotations cannot convey: results come from a 48-hour cache, prices are not an offer, and empty tickets means no cached matches rather than no flights operating. That last point materially changes how an agent should interpret and communicate an empty result.

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?

It is front-loaded with the core purpose and then proceeds in imperative, information-dense sentences with no filler. Slight deduction because the locale sentence largely restates the locale schema description, and the description is long enough that key rules sit far from the top.

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?

For a 13-parameter, open-world read tool with an output schema, everything an agent needs is present: date format policy, origin/destination requirement, locale policy, multi-period calling pattern, deduplication via unique, and the mandatory follow-up render call. Return values are correctly left to the output schema.

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 real meaning beyond the schema: locale must track the user's current request language independently of market, date granularity rules for departureAt/returnAt, the origin-only case for unique, and the coupling of oneWay=false to returnAt. The only shortfall is that a few enum params (currency, market, sorting) get no mention because the schema already handles them.

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?

"Data-only search for cached route prices from the monolith backend" gives a specific verb plus resource, and the "data-only" qualifier separates it from the display-oriented sibling render_route_prices. An agent can place this tool correctly without opening any 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 routing rules are provided: YYYY-MM for month/season/flexible dates, YYYY-MM-DD only when a day is explicitly named and never invented; call once per period for multiple periods; use unique=true with origin only to find cheapest destinations; call resolve_city_iata_code first when only a city name is known; then call render_route_prices exactly once. When-to-use, when-not-to, and alternatives are all named.

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