Skip to main content
Glama
afgoes
by afgoes

cheapest_dates_tool

Find the cheapest fare per departure date within a date range for any origin-destination route. Supports one-way and round-trip with price and airline details.

Instructions

Cheapest fare for each departure date between start and end (YYYY-MM-DD) on origin→destination.

trip_length: None for one-way, or N for a round trip returning N days after departure. Returns {cheapest, days:[{depart, ret, price, airlines}], backend, warnings}. The 'graph' backend reads Google Flights' own price calendar (fast, ~60 days per call); 'sweep' searches each date individually. 'auto' picks graph when a browser is available.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
endYes
seatNoeconomy
startYes
originYes
backendNoauto
nonstopNo
currencyNoUSD
destinationYes
trip_lengthNo
Behavior3/5

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

No annotations are provided, so the description carries the burden. It discloses the behavior of different backends (graph vs sweep vs auto) and mentions speed implications, which is useful. However, it does not disclose any data limitations, rate limits, or potential variability in results, which would be helpful for a tool using different search backends.

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 concise, front-loaded with the main purpose, and provides structured information about trip_length and backend behavior. It uses bullet-like structure within paragraphs effectively, with no wasted words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool has 9 parameters and no output schema, the description provides a solid overview but lacks detailed parameter explanations and behavioral notes. It covers the essential usage and return format but could be more complete by describing the meaning of the warning field, typical use cases, and edge cases like date boundaries.

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?

The input schema has 9 parameters but the description does not explicitly map each parameter beyond trip_length and backend. Schema description coverage is 0%, so the description must compensate, but it only explains a couple of parameters. The return structure is described, but parameter semantics for origin, destination, start, end, seat, nonstop, currency are left to the schema, which has no description.

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 finds the cheapest fare for each departure date over a date range for a given route, distinguishing it from typical one-off price lookup tools. It specifies input format and return structure, making the purpose unambiguous.

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 explains the trip_length parameter (one-way vs round trip) and backend options, but does not explicitly state when to prefer this tool over alternatives. Since no sibling tools are provided, we cannot evaluate differentiation, but the description does give context on how to use different backends.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/afgoes/cheapdates'

If you have feedback or need assistance with the MCP directory API, please join our Discord server