Skip to main content
Glama

Add flight to trip

flight_quickadd

Look up a real flight by number and date, then create it as a segment in the trip. Combines flight_quickadd_lookup + segment_create in one call. May take 2-5 seconds due to external flight data lookup. Segment dates must fall within the parent trip dates; use trip_update first to extend the trip. Flight data covers only upcoming flights and the past year: to log older past flights, call segment_create (type Flight) directly with the details the user gave.

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": {
      "trip_id": "<trip_id>",
      "flight_number": "<flight_number>",
      "departure_date": "<departure_date>"
    },
    "name": "flight_quickadd"
  }
}

Input Schema

NameRequiredDescriptionDefault
airlineNoFull airline name as fallback (e.g., 'American Airlines'). Used only if airline_code is not provided.
trip_idYesThe trip ID to add the flight to
airline_codeNoIATA or ICAO airline code (AA, UA, DL, AAL). Optional if embedded in flight_number.
flight_numberYesFlight number, e.g. 'AA3242', 'UA100', or just '3242' if airline_code is provided
departure_dateYesDeparture date in YYYY-MM-DD format

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover safety (readOnlyHint=false, destructiveHint=false, openWorldHint=true), and the description adds real value beyond them: expected latency of 2-5 seconds from an external lookup, and a coverage window restricted to upcoming flights plus the past year. The remaining gap is duplicate behavior — with idempotentHint=false, it does not say whether a repeat call creates a second segment or dedupes.

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?

Front-loads the what and the sibling combination, then the latency warning, then the constraints and the fallback path. Four sentences, each carrying distinct operational information with no redundancy.

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?

Covers the compound nature, timing, date constraints, and the out-of-window escape hatch, which is a lot for a five-parameter mutation tool with no output schema. It stops short of indicating what comes back (the created segment versus the resolved flight data), which an agent composing a follow-up step would want.

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 airline_code and airline fallback relationship and the date format are already documented. The description only reinforces the departure_date constraint against trip dates, adding little parameter meaning beyond the schema baseline.

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 compound action — look up a real flight by number and date, then create it as a trip segment — and explicitly states it combines flight_quickadd_lookup + segment_create. This lets an agent distinguish it from either sibling without opening a 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 routing rule for the edge case: for flights older than a year, call segment_create (type Flight) directly with user-supplied details instead. It also states the prerequisite that segment dates must fall inside the parent trip and that trip_update must run first to extend it.

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.

Resources