Skip to main content
Glama
google-flights-mcp

google-flights-mcp

by YahavBar3

get_google_flights_url

Read-onlyIdempotent

Generate a prefilled Google Flights search URL from origin, destination, dates, and filters without fetching results. Use it to share or open a flight search with specified criteria.

Instructions

Build a Google Flights search link without fetching results.

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": {
      "origin": "<origin>",
      "destination": "<destination>",
      "departure_date": "<departure_date>"
    },
    "name": "get_google_flights_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
cabinNoCabin class.economy
adultsNoAdults (12+).
originYes3-letter IATA airport or city code, e.g. 'JFK', 'LON'.
childrenNoChildren (2-11).
currencyNoISO 4217 currency code, e.g. 'USD', 'EUR', 'ILS'.USD
max_stopsNo0 = nonstop only, 1 = up to one stop, etc.
destinationYes3-letter IATA airport or city code, e.g. 'JFK', 'LON'.
return_dateNoYYYY-MM-DD for a round trip.
departure_dateYesDate as YYYY-MM-DD.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint=false, so the safety profile is covered. The description adds the useful fact that no results are fetched, but says nothing about whether the generated link is shareable, whether it is a static deep link, or how currency/dates affect the URL. Modest value beyond annotations.

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?

A single fifteen-word sentence with the key qualifier front-loaded and no filler. Nothing could be removed without losing meaning.

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?

With 9 parameters, full schema coverage, annotations and an output schema, most of the burden is already carried elsewhere, so the terse description is workable. Still, it omits what the link contains or guarantees (round-trip vs one-way behavior, whether the link is reusable), leaving the agent to infer the output's nature.

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%, with every one of the nine parameters documented including examples for IATA codes and date format, so the schema carries the load. The description contributes no additional parameter meaning, making the baseline 3 appropriate.

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?

Specific verb plus resource: "Build a Google Flights search link" tells the agent exactly what artifact is produced, and "without fetching results" separates it from a results-returning sibling like search_flights. It does not name the sibling explicitly, so it stops short of a 5.

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 phrase "without fetching results" implies the usage condition (want a link, not live data), but it never states when to prefer this over search_flights or find_cheapest_dates, nor any exclusions. Guidance is inferable rather than stated.

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