Skip to main content
Glama

Add Tracked Flight Route

create_route

Create and save a new tracked flight route for the authenticated user in one of three modes: (1) Exact Dates using origin, destination, depart_date, and optional return_date; (2) Flexible Date Range using origin, destination, depart_date, depart_date_end, and optional trip_days; or (3) Multi-City / Open-Jaw using legs[]. Prices are fetched automatically on the twice-daily schedule (9 AM / 9 PM EST). Returns { route } with the newly assigned UUID. Failure modes: returns an error if required fields for the chosen mode are missing, if dates/codes are invalid, or if the user has reached their plan route quota (3 routes on Free, 20 on Pro — check list_routes first or delete an old route).

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": {
      "name": "<name>"
    },
    "name": "create_route"
  }
}

Input Schema

NameRequiredDescriptionDefault
legsNoOrdered flight legs for multi-city/open-jaw mode (each leg requires origin, destination, depart_date)
nameYesShort human-readable trip label, e.g. 'Toronto to Tokyo'
originNoOrigin 3-letter IATA airport code(s), comma-separated (required for exact/flexible modes), e.g. 'YYZ'
max_stopsNoOptional max stops filter: 0 = Nonstop only, 1 = Max 1 stop, 2 = Max 2 stops (omit for any)
trip_daysNoRound-trip duration in days for flexible date range search; omit for one-way
extra_legsNoOptional train, bus, ferry, or regional flight legs (e.g. VIA Rail or Calm Air) added to total trip cost
depart_dateNoExact departure date or start of flexible window in YYYY-MM-DD format (required for exact/flexible modes)
destinationNoDestination 3-letter IATA airport code(s), comma-separated (required for exact/flexible modes), e.g. 'HND,NRT'
return_dateNoExact return date in YYYY-MM-DD format; omit for one-way or flexible range
checked_bagsNoDefault checked bags for both directions if outbound/return are not specified separately (0-2)
carry_on_bagsNoCarry-on bags included in Google Flights search (0 = personal item only, 1 = 1 carry-on, 2 = 2 carry-ons)
depart_date_endNoEnd of flexible departure window in YYYY-MM-DD format (enables flexible calendar search)
fallback_target_priceNoOptional manual max price alert threshold in the user's currency; omit to use automatic targets

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.5/5.0
Behavior4/5

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

Goes well past the annotations: it discloses the auto-refresh schedule (9 AM / 9 PM EST), the response shape ({ route } with UUID), and concrete failure modes including plan quotas (3 Free / 20 Pro). It does not warn that, given idempotentHint=false, repeated calls will create duplicate routes that consume quota — the one behavioral risk an agent is most likely to hit.

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?

The long opening sentence is structured as a numbered mode list rather than prose, so each clause is scannable and earns its place. Return value and failure modes follow in priority order, with no filler.

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?

For a 13-parameter mutation tool with no output schema, it covers creation semantics, mode selection, return shape, scheduling, and failure recovery — everything needed to call it correctly. Remaining per-parameter detail (bags, max_stops, extra_legs) is fully documented in the schema, so omission there is not a gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3, but the description adds real meaning the schema cannot express: the conditional required-field groupings per mode. That is essential because the schema marks only "name" as required, so without the description an agent would not know exact-date mode needs depart_date and flexible mode needs depart_date_end.

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?

Names a specific verb+resource ("Create and save a new tracked flight route") and immediately distinguishes itself from siblings by enumerating the three booking modes it supports. An agent can tell this apart from list_routes/update_route/delete_route 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly maps each of the three modes to the field set that selects it, and adds a practical precondition for the quota failure case ("check list_routes first or delete an old route"). It never states the inverse — when to use update_route instead of creating a new route, or that creating a near-duplicate is a mistake — so the routing guidance is strong but one-sided.

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.