Skip to main content
Glama

Delete a flight

delete_project_flight
DestructiveIdempotent

Permanently delete a recorded flight leg and its passenger rows. It cancels nothing with the airline. Confirmation-gated. Requires project-manager access.

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>",
      "flight_id": "<flight_id>"
    },
    "name": "delete_project_flight"
  }
}

Input Schema

NameRequiredDescriptionDefault
flight_idYesflight id from list_project_travel
project_idYesproject id from list_projects, or a gig's project_id from get_event
organization_idNoorganization to act in, an id from get_me; omit to use your active organization
confirmation_tokenNoleave empty on the first call; the server returns confirmation_required + a token, then resend the SAME args with that token to proceed

Output Schema

NameRequiredDescriptionDefault
okYestrue on success (including confirmation_required prompts)
dataNowhen the tool asks first: { status: "confirmation_required", confirmation_token, summary, expires_in_seconds, instructions } and nothing is changed; once confirmed, the API response { status (HTTP status), data: absent (the API answers 204 with no body) }
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?

The description adds substantial behavior beyond the annotations: it specifies that the deletion is permanent, includes passenger rows, does not affect the airline booking, is confirmation-gated, and requires project-manager access. These details are highly relevant for a destructive mutation tool and go beyond the generic destructiveHint annotation.

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 description is short, front-loaded, and each sentence carries useful information. There is no redundant restatement of the title or annotations.

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 destructive delete tool, the description covers permanence, affected child rows, confirmation flow, permission requirements, and the key non-effect on airline bookings. Since an output schema exists, it does not need to explain return values.

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 input schema already documents all four parameters in detail. The description does not add parameter-specific format or selection guidance beyond the schema, so the baseline score of 3 is appropriate.

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?

The description states a specific verb and resource: permanently delete a recorded flight leg and its passenger rows. It also clarifies the important boundary that this does not cancel anything with the airline, which helps distinguish it from an airline cancellation operation.

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?

It gives clear usage context by saying the operation is confirmation-gated and requires project-manager access. It also includes an explicit exclusion, that it cancels nothing with the airline, though it does not name sibling alternatives such as remove_flight_passenger or save_project_flight.

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.