Skip to main content
Glama
travelpayouts-mcp

travelpayouts-mcp

get_latest_prices

Retrieve recently found flight prices for dates or routes, grouped by dates or directions and sorted by price to compare travel options.

Instructions

Recently found prices for a period (v3/get_latest_prices): dates or directions, sorted by price.

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": "get_latest_prices"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNo
limitNo
originNoIATA code of departure city/airport, e.g. MOW.
one_wayNo
sortingNo
currencyNoCurrency code: rub, usd, eur (default from env TRAVELPAYOUTS_CURRENCY).
group_byNo
destinationNoIATA code of destination city/airport, e.g. IST.
period_typeNo
beginning_of_periodNoYYYY, YYYY-MM-DD.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.4/5.0
Behavior2/5

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

No annotations exist, so the description carries the full burden and largely drops it. It hints that results are "recently found" (cached/observed data rather than live search), which is useful, but says nothing about pagination despite page/limit params, required auth or partner token, rate limits, or what an empty result means.

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?

A single short sentence with no padding, but its brevity is under-specification rather than economy; the endpoint path in parentheses consumes space without helping the agent decide or call correctly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 10-parameter, zero-required, no-annotation, no-output-schema tool, this description is far too thin. It leaves freshness semantics, default behavior with no origin/destination, and pagination entirely to inference.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 10 parameters and only 40% schema description coverage, the description should compensate but mostly does not. It gestures at period, group_by ("dates or directions"), and sorting, but "sorted by price" is misleading given the sorting enum also allows route and distance_unit_price, and origin, destination, currency, one_way, page, and limit get no explanation at all.

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

Purpose3/5

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

"Recently found prices for a period" names the resource (prices) and a scope (recent, per period), and the parenthetical endpoint helps orient. But it is phrased without a clear verb and never distinguishes itself from siblings such as get_price_calendar, get_month_matrix, or search_cheapest_tickets, so an agent cannot confidently pick it on purpose alone.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no prerequisites, and no named alternative. The only hint is the implied "recent" freshness, which is not framed as a selection condition against the other price tools.

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