Skip to main content
Glama

Cheap Flights, Hotels & eSIMs

Flexible dates

flexible_dates
Read-onlyIdempotent

When a round trip on one route is cheapest: the cheapest dates, the cheapest fare of each month in the next year, the usual price, and what moving a planned date by up to 3 days saves. Use it for questions like 'when is it cheapest to fly' or 'can I save by moving my trip'.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "originIata": "<originIata>",
      "destination": "<destination>"
    },
    "name": "flexible_dates"
  }
}

Input Schema

NameRequiredDescriptionDefault
originIataYesDeparture airport or city IATA code, for example BUD.
destinationYesDestination city or IATA code, for example Lisbon or LIS.
departureDateNoOptional planned departure date (YYYY-MM-DD), to see what moving it by up to 3 days saves.

Output Schema

NameRequiredDescriptionDefault
noteYes
aroundYes
originYes
currencyYes
alertOfferYes
bookingUrlYes
usualPriceYes
destinationYes
cheapestDatesYes
cheapestByMonthYes
destinationCodeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered without the description. The description's added behavioral context is mostly about what results are produced (monthly cheapest fares, usual price, 3-day shift savings), which overlaps with the output schema; nothing is said about latency, pricing freshness, or currency handling. It adds some value but not deep behavior beyond the structured fields.

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?

Two sentences, no filler, and the output contents are enumerated up front. The colon-led fragment opening is slightly awkward and the enumeration is dense, but every phrase contributes information rather than padding.

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?

With an output schema present, full schema description coverage, and annotations covering the read-only/idempotent profile, the description needs only to frame the question it answers — which it does with two example queries. An agent has enough to decide to call it and to build the arguments from 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 description coverage is 100%, so the schema already documents all three parameters including the 3-day shift semantics of departureDate. The description's mention of "moving a planned date by up to 3 days" largely restates the schema's own wording, and it does not clarify what happens when departureDate is omitted beyond the schema's 'Optional' label. Baseline 3 applies when the schema carries the semantics.

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 spells out concretely what the tool returns — cheapest dates, the cheapest fare of each month over the next year, the usual price, and the savings from shifting a date by up to 3 days — which is a specific resource-level statement rather than a restatement of the name. It never names a sibling such as check_fare or cheapest_deals_from_airport, so differentiation is left to the reader, and the opening reads as a sentence fragment ("When a round trip on one route is cheapest:") rather than a verb.

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?

Two concrete example questions ("when is it cheapest to fly" and "can I save by moving my trip") make the intended use case clear and are more useful than a generic 'use for fares' line. There is no when-not guidance and no explicit pointer to alternatives like check_fare for a single-date lookup or compare_departure_airports for origin flexibility.

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.

Resources