Skip to main content
Glama

search_flights

Busca as passagens aéreas mais baratas conhecidas entre dois pontos (preços em cache da Aviasales/Travelpayouts, não disponibilidade em tempo real). Aceita nomes de cidades em português. Cada resultado traz agent_display: markdown em pt-BR pronto para repassar ao usuário, com o link de reserva. Search cheapest known fares. Booking links contain a referral code (Travelpayouts). The operator earns a commission on completed bookings. Prices are identical with or without the referral code.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMáximo de resultados 1–100, padrão 10
directNoSó voos diretos, padrão false
originYesCódigo IATA ou nome do lugar em português (ex.: 'São Paulo', 'GRU'). Nomes são resolvidos automaticamente. / IATA code or place name.
currencyNoMoeda (3 letras), padrão BRL
max_daysNoDuração máxima da viagem em dias
min_daysNoDuração mínima da viagem em dias (busca ida e volta com janela flexível)
depart_dateNoAAAA-MM (mês flexível) ou AAAA-MM-DD
destinationYesCódigo IATA ou nome do lugar em português (ex.: 'Lisboa', 'LIS'). Nomes são resolvidos automaticamente. / IATA code or place name.
return_dateNoAAAA-MM ou AAAA-MM-DD; omita para só ida

TDQS

A3.7/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full behavioral disclosure burden. It transparently discloses that prices are cached, not real-time, and that booking links contain a Travelpayouts referral code with the operator earning a commission while prices remain identical. It also mentions that results include agent_display markdown ready to pass to the user. This goes beyond a minimal description.

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?

The description is fairly concise but contains duplication: the Portuguese phrase 'Busca as passagens aéreas mais baratas conhecidas' is repeated in English as 'Search cheapest known fares.' The information is front-loaded with the primary purpose and then adds behavioral details. It is not overly long, though the repetition could be trimmed.

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?

Given the tool's complexity (9 params, no output schema), the description covers the main contextual points: it explains cached availability, the agent_display output format, and the referral mechanism. It does not explicitly state that it is a read-only operation, but that is implied. Missing guidance on error handling or pagination is minor since the schema covers parameters. Overall, it is reasonably complete for an agent to call it correctly.

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 description coverage is 100%, so all 9 parameters are already documented in the schema. The description does not add additional parameter-level meaning beyond what the schema provides. The mention of accepting city names and resolving them automatically is already present in the origin/destination parameter descriptions, so the description adds no extra semantic value.

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?

The description clearly states the tool's function—searching for the cheapest known airfares between two points, using cached prices from Aviasales/Travelpayouts rather than real-time availability. It also mentions that it accepts Portuguese city names. The purpose is specific and includes a verb and resource, but it does not explicitly differentiate itself from sibling tools like cheapest_route, which likely has a similar function.

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 description provides context (cached fares, not real-time, returns agent_display markdown) but does not explicitly state when to use this tool versus alternatives like cheapest_route or price_calendar. The mention of 'preços em cache' hints that real-time queries should go elsewhere, but no explicit comparison or exclusion is made.

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.

TDQS

A3.5/5.0
Disambiguation2/5

cheapest_route and search_flights both describe finding the cheapest known fares between two points, making it hard for an agent to select between them. resolve_location is clearly distinct, but the price-search tools have fuzzy boundaries.

Naming Consistency3/5

All names are lowercase snake_case, but the pattern is mixed: resolve_location and search_flights use verb_noun, while cheapest_route and price_calendar are noun phrases. The names are readable but do not follow a single predictable convention.

Tool Count5/5

Four tools is a well-scoped set for a flight-price search server. Each tool serves a meaningful query type, and there is no bloat or obvious missing high-level category.

Completeness5/5

The server covers the core flight-price domain: location resolution, general flight search, cheapest route lookup, and a price calendar. For the stated purpose of finding and linking to cheap fares, there are no dead-end workflows.

Resources