Skip to main content
Glama
felipebasurto

viajante

search_flex

Find the cheapest flight by flexing travel dates around a chosen day, then retrieve options for that optimal date.

Instructions

Flex window (±N), then one shopping search on the cheapest day.

Use search_dates for a cheapest-week calendar. Do not brute-force a date matrix. Currency is currency or inferred from a named origin's owned country. If unknown, ask. Viajante does not convert. The calling agent may convert for the user. Unnamed baggage_buffer is 0.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
topNo
viaNo
bagsNo
flexYes
sortNoranked
tripNoone-way
cabinNoeconomy
proxyNo
routeYes
adultsNo
aroundYes
nearbyNo
nightsNo
countryNo
airlinesNo
allianceNo
carry_onNo
childrenNo
currencyNo
max_stopsNo
price_capNo
exclude_viaNo
max_layoverNo
min_layoverNo
depart_afterNo
max_durationNo
no_overnightNo
arrive_beforeNo
depart_windowNo
baggage_bufferNo
infants_on_lapNo
infants_in_seatNo
exclude_airlinesNo
exclude_airportsNo
exclude_allianceNo
include_airportsNo
require_overnightNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the burden. It reveals key behaviors: currency can be inferred from origin, if unknown ask the user, the tool does not convert currency, and unnamed baggage_buffer defaults to 0. It does not disclose the output format or any side effects (though a search is likely read-only by nature). The provided details add value but are not comprehensive.

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 succinct and front-loaded with the central concept. It uses four short sections that each address a distinct point (flex window, sibling usage, currency, baggage default). No filler or redundancy. It is appropriately sized given the tool's complexity.

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 tool with 37 parameters, no available annotations, and no output schema, the description is incomplete. It does not describe the return format, pagination, or many parameter constraints. The agent is left without crucial context for correct invocation, especially regarding interplay of required parameters like route and around. The few hints provided are insufficient.

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?

Schema coverage is 0%, and the description does not explain the vast majority of the 37 parameters. It mentions only a few: flex (via '±N'), currency (inference and no conversion), and baggage_buffer (default). The required parameters around and route are not explained. With such high parameter count and zero schema descriptions, the description fails to compensate adequately.

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?

The description clearly states the tool's function: a shopping search with a flexible date window, picking the cheapest day. It distinguishes itself from sibling search_dates by explicitly naming it and contrasting with a calendar view. This is specific and unambiguous.

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

Usage Guidelines4/5

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

Provides explicit directive: 'Use search_dates for a cheapest-week calendar' and warns 'Do not brute-force a date matrix.' This tells the agent when NOT to use this tool and when to prefer a sibling. However, it doesn't cover all alternative scenarios or edge cases, but the guidance is clear and actionable.

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