Skip to main content
Glama

get_flexible_date_prices

Read-onlyIdempotent

Compare flight prices for days surrounding your departure and return to see if shifting dates saves money. Use when you have specific dates and want cheaper alternatives nearby.

Instructions

Compare prices for the days around a departure and an optional return.

Use when the user already has dates and asks whether shifting a day either way would be cheaper. For one exact date use search_flights; for the cheapest day across a whole month use get_prices_calendar. This covers roughly a week around both the outbound and the return.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
adultsNoNumber of adult passengers, 1-9 (default 1).
marketNo2-letter market whose price cache to read. Defaults to the server's configured market.
originYesOrigin IATA code.
infantsNoNumber of infants under 2, 0-8 (default 0).
childrenNoNumber of children 2-11 years, 0-8 (default 0).
currencyNoPrice currency (3 letters). Defaults to the server's currency.
trip_classNo"economy", "comfort", "business" or "first" (default "economy").economy
depart_dateYesIntended departure date (YYYY-MM-DD). Required.
destinationYesDestination IATA code.
return_dateNoIntended return date (YYYY-MM-DD). Omit for one-way.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.3

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, openWorld), so the bar is lower. The description adds genuinely useful scope context — roughly a week of dates around both outbound and return — which the annotations do not convey. It stops short of describing caching behavior or result volume, keeping it at a 4.

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?

Three tight sentences, front-loaded with the action, then the usage trigger, then the alternatives. Every sentence earns its place with no redundancy.

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?

An output schema exists, so return values need not be explained, and the annotations carry the safety profile. For a read-only, fully-documented 10-parameter query tool, the description covers what an agent needs to select and 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 the schema already documents all ten parameters including the adult/child/infant breakdown and date formats. The description only implicitly touches depart_date/return_date via 'days around', adding little beyond the schema. Baseline 3 applies.

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 prices for the days around a departure and an optional return') and immediately contrasts itself with two named siblings. An agent can distinguish it from search_flights and get_prices_calendar without opening any schema.

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?

Gives an explicit trigger ('user already has dates and asks whether shifting a day either way would be cheaper') and routes the two adjacent cases to the correct alternatives with their selecting conditions. Nothing is left to inference.

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