Skip to main content
Glama
travelpayouts-mcp

travelpayouts-mcp

search_cheapest_tickets

Find low-cost Aviasales tickets for a route or dates from the last 48 hours and return prices, airline, transfers and search URLs for partner-link creation.

Instructions

Cheapest Aviasales tickets found during the last 48 hours for a route or dates (Travelpayouts Data API, cached up to 7 days). Returns prices, airline, transfers and plain search URLs. Use create_partner_links to turn a URL into a tracked affiliate link.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_cheapest_tickets"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNo
limitNo
directNoDirect flights only.
marketNoData market, e.g. ru, us.
originNoIATA code of departure city/airport, e.g. MOW.
uniqueNoReturn unique destinations when only origin is given.
one_wayNoOne-way (default true).
sortingNoSort by price or route popularity.
currencyNoCurrency code: rub, usd, eur (default from env TRAVELPAYOUTS_CURRENCY).
return_atNoReturn date/month (YYYY-MM-DD or YYYY-MM); omit for one-way.
destinationNoIATA code of destination city/airport, e.g. IST.
departure_atNoDeparture date or month: YYYY-MM-DD or YYYY-MM.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden, and it delivers the most important behavioral fact for a fares tool: data is a 48-hour snapshot cached up to 7 days, so the agent knows results may be stale. It also discloses the return shape (price, airline, transfers, plain search URLs), which is the key non-obvious trait. It omits permission/auth expectations and pagination behavior, keeping it below a 5.

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?

Two tight sentences: purpose first, freshness and return contents second, follow-up tool last. The parenthetical about Travelpayouts and cache duration is the only aside and it carries real information, so nothing needs trimming.

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?

For a 12-parameter, zero-required, no-output-schema tool, the description does the heavy lifting on output contents and data freshness, which is exactly what the missing output schema would otherwise provide. The gap is combinatorial parameter behavior (unique requiring origin only, return_at implying round-trip), which is left entirely to the schema.

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 83%, so the schema itself documents nearly every field including market, currency, sorting enum, and date formats. The description only gestures at "a route or dates" and adds no detail on how origin/destination, unique, or the one_way/return_at pairing interact. Baseline 3 is appropriate when the schema does the explanatory work.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: it retrieves the cheapest Aviasales tickets found in the last 48 hours for a route or dates, and enumerates what comes back (prices, airline, transfers, URLs). The scope is concrete, but it does not distinguish itself from lookalike siblings such as get_latest_prices or get_popular_directions, so the agent must infer the boundary.

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

Usage Guidelines3/5

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

The only routing guidance is a downstream step: "Use create_partner_links to turn a URL into a tracked affiliate link." That is useful workflow context, but there is no statement of when to prefer this tool over get_latest_prices or get_price_calendar, and no exclusions (e.g. no historical or future-fare coverage). Usage is implied rather than specified.

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