Skip to main content
Glama

Search cheapest dates

search_cheapest_dates
Read-only

Compare the lowest one-way or round-trip fare for each departure date across up to 31 dates. Prices are not bookable; search the chosen date with search_flights.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
adultsNoNumber of adult passengers traveling.
marketNo2-letter market or country code affecting pricing and results.US
originYesOrigin airport or metro IATA code.
childrenNoNumber of child passengers traveling.
max_priceNoMaximum whole-trip price in the market currency.
max_stopsNoMaximum number of stops in each direction.
stay_daysNoOmit for one-way. For round trips, return this many days after each departure.
cabin_classNoPreferred cabin class: economy, premium_economy, business, or first.economy
destinationYesDestination airport or metro IATA code.
infants_on_lapNoNumber of infants traveling on an adult's lap.
infants_in_seatNoNumber of infants traveling with their own seat.
departure_date_endYesLast departure date to compare, in YYYY-MM-DD format; at most 30 days after the start.
departure_date_startYesFirst departure date to compare, in YYYY-MM-DD format.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
datesYesEvery requested departure date in ascending order.
originYesOrigin airport or metro IATA code.
destinationYesDestination airport or metro IATA code.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already establish readOnlyHint=true, destructiveHint=false, and openWorldHint=true, so the safety profile is covered. The description adds genuinely new behavioral context — results are indicative only and cannot be booked, and the comparison is bounded to 31 dates — which is the key trait an agent must know. It stops short of describing the response shape, but an output schema exists.

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 sentences, zero waste. The capability and its bound come first, then the non-bookability caveat and the correct follow-up tool — the most decision-relevant information is front-loaded.

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?

Given a fully covered 13-parameter schema, rich annotations, and an output schema that documents the return values, the description supplies everything else an agent needs: what is compared, the date bound, that results are not bookable, and which sibling to call next.

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 every parameter including the one-way vs round-trip semantics of stay_days is already documented in the schema. The description adds no syntax, format, or constraint detail beyond that baseline.

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?

States a specific verb and resource: 'Compare the lowest one-way or round-trip fare for each departure date across up to 31 dates.' The scope (per-date comparison, up to 31 dates, one-way or round-trip) makes it clearly distinguishable from the sibling search_flights.

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?

Explicitly routes the agent: 'Prices are not bookable; search the chosen date with search_flights.' It names the alternative tool and the condition under which it should be used, so the agent never mistakes this for a booking or single-date search.

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.