Skip to main content
Glama

create_route

Create or edit a tracked flight route by setting travel dates, IATA origins and destinations, stops, duration, cabin, and passengers to monitor price changes.

Instructions

Create (or, with overwrite=True, edit) a route to track.

name: e.g. december_FCO_MUC (letters, digits, _ and -). dates: departure dates YYYY-MM-DD; every combination dates x origins x destinations is searched. origins / destinations: IATA codes, e.g. ["FCO"], ["MUC", "FRA"]. max_stops: NON_STOP, ONE_STOP_OR_FEWER, TWO_OR_FEWER_STOPS or ANY. max_duration: e.g. "5h" or "2h 30m"; null for no limit. cabin: ECONOMY, PREMIUM_ECONOMY, BUSINESS or FIRST. Editing a route keeps its price history.

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>",
      "dates": "<dates>",
      "origins": "<origins>",
      "destinations": "<destinations>"
    },
    "name": "create_route"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
cabinNoECONOMY
datesYes
adultsNo
originsYes
max_stopsNoNON_STOP
overwriteNo
destinationsYes
max_durationNo5h

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose two genuinely non-obvious behaviors: every combination of dates x origins x destinations is searched, and editing preserves price history. It does not say what a call returns, whether the search is triggered immediately, or what happens on name collision when overwrite is false — significant gaps for an unannotated write tool with no output schema.

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?

Purpose is front-loaded in the first sentence, followed by a compact parameter glossary where each line carries a format rule or example. No filler sentences, though the terse list style and the bare name example ("december_FCO_MUC") are slightly clipped rather than fully self-explanatory.

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

Completeness4/5

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

For a 9-parameter creation tool with no annotations and no output schema, the description covers nearly all parameters with formats and allowed values plus the two most consequential behaviors (combinatorial search cost, price-history retention). It falls short only on return values and failure modes, which an agent would still need to discover empirically.

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 description coverage is 0% and the schema declares no enums, so the description does the heavy lifting: it supplies the IATA-code format, the date format, the four allowed max_stops values, the four cabin values, and max_duration examples like "5h" or "2h 30m" plus the null case. Only 'adults' and the default values for overwrite/max_duration go unexplained, so coverage is strong but not complete.

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 first line states a specific verb and resource ("Create ... a route to track") and immediately qualifies it with the overwrite-based edit behavior, so the agent knows this tool both creates and mutates. It does not name any sibling (e.g. list_routes or search_flights) as the alternative, so differentiation is left to the agent's inference from names.

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 parenthetical "(or, with overwrite=True, edit)" gives a usable rule for when the tool overwrites rather than creates, and "Editing a route keeps its price history" implies editing is safe. However, there is no guidance on when not to call it, no prerequisites, and no pointer to which sibling to use for exploring flights versus persisting a tracked route.

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