Skip to main content
Glama

Add or edit a flight

save_project_flight
Destructive

Record a flight leg on a project, or edit a recorded one. Without flight_id this records a new leg: every field is optional, but give at least the airline, flight number, airports and times you know, and pass event_id or event_ids with the gig so list_project_travel with that event_id lists it. With flight_id (from list_project_travel) it edits that leg: pass just the fields to change; null clears a field and event_ids replaces the covered gigs. Instants need an offset and each end gets its airport's IATA zone. Changing cost needs financial access. Add travellers with save_flight_passenger. This records a booking made elsewhere; it books nothing. Requires project-manager access. Runs on the first call; there is no confirmation step.

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

Input Schema

NameRequiredDescriptionDefault
costNoairfare for the leg; needs cost_currency and financial access (403 without it); null clears. No ledger line is created
notesNonotes for the team; null clears
airlineNoairline name, for example "United"; null clears
event_idNoone gig this booking covers; merged into event_ids when both are set
arrive_atNoarrival as an ISO-8601 instant with an offset; not before depart_at; null clears
depart_atNodeparture as an ISO-8601 instant with an offset, e.g. 2026-10-10T08:05:00-05:00; null clears
event_idsNogigs on this project the booking covers (list_projects gig ids or get_event); include the gig here so list_project_travel with event_id lists it for that gig; replaces the list; every id must be one of the project's own gigs
flight_idNoedit this flight (id from list_project_travel); omit to record a new leg
project_idYesproject id from list_projects, or a gig's project_id from get_event
cost_currencyNo3-letter ISO currency of cost, e.g. USD; null clears
flight_numberNoflight number, for example "UA 1234"; null clears
arrive_airportNoarrival airport IATA code, for example "AUS"; null clears
depart_airportNodeparture airport IATA code, for example "ORD"; null clears
arrive_timezoneNoIANA zone of the arrival airport; null clears
depart_timezoneNoIANA zone of the departure airport, e.g. America/Chicago; null clears
organization_idNoorganization to act in, an id from get_me; omit to use your active organization
booking_referenceNothe booking record locator for the whole leg; null clears

Output Schema

NameRequiredDescriptionDefault
okYestrue on success (including confirmation_required prompts)
dataNothe API response { status (HTTP status), data: { id, project_id, project_name, airline, flight_number, depart_airport, arrive_airport, depart_at, depart_timezone, arrive_at, arrive_timezone, booking_reference, cost, cost_currency, notes, sort_order, status, estimated_depart_at, and 8 more fields } }
errorNowhen ok is false

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Goes well past the annotations: it names the access requirement (project-manager), the financial-access gate that yields a 403 on cost changes, and the fact that the write happens on the first call with no confirmation step. It also discloses the destructive-edit mechanics (null clears a field, event_ids replaces the covered gigs) that the destructiveHint alone only gestures at.

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?

Front-loaded with the create/edit split, then access and side-effect caveats, with essentially no filler. It is dense and slightly run-on in the middle clause about minimum fields, but every sentence carries operational information.

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?

Output schema exists, so return values need not be described, and the definition covers access, idempotency implications, no-confirmation behavior and partial-update semantics for a 17-parameter mutation tool. The only gap is that it does not say whether a newly created leg's flight_id is returned for follow-up edits, though the output schema likely does.

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 coverage is 100%, so per-field meaning is already documented and the baseline is 3. The description does add one genuinely cross-field rule the schema cannot express — instants require an offset and each end needs its airport's IATA zone — and the event_id/event_ids merge behavior, which nudges it just above 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?

Opens with a specific verb and resource ("Record a flight leg on a project, or edit a recorded one") and immediately splits the two modes on the presence of flight_id, so an agent can tell create from edit without opening the 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?

Explicitly states the when-branches (no flight_id = new leg, flight_id from list_project_travel = edit), names the sibling used to obtain the id, and routes traveller additions to save_flight_passenger. It also excludes a wrong assumption in one line: "This records a booking made elsewhere; it books nothing."

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.