list_flights
List Flights the caller can see: Users can see Flights they have created. Admins can see Flights they own as well as any Flight in the organization. Each Flight in the response includes its UUID, name, schedule, status, current version, and owner. Optionally filter by keywords matching the Flight name.
Description
The list_flights tool returns Flight summary metadata, not version-specific content. Use get_flight with the returned flight_id to fetch source code, requirements, and config.
The corresponding SQL function is MD_LIST_FLIGHTS.
Input parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
keywords | string | No | Keywords to filter Flights by name (case-insensitive, all words must match). |
owner_only | boolean | No | Restrict the listing to Flights you own. Meaningful for Admins, who see the whole organization's Flights by default; ignored for other users. |
limit | integer | No | Max results to return (default: 50, max: 50). |
offset | integer | No | Number of Flights to skip, for paging through results. |
Output schema
{
"success": boolean,
"flights": [
{
"flight_id": string, // Flight UUID
"flight_name": string,
"created_at": string, // ISO 8601
"updated_at": string, // ISO 8601
"schedule_cron": string|null, // Cron expression or null for on-demand
"status": string, // Flight status, for example ACTIVE
"schedule_status": string|null, // Schedule status, for example ACTIVE
"current_version": number,
"owner_name": string|null // The user who owns the Flight
}
],
"count": number,
"totalCount": number,
"truncated": boolean, // Present when results were capped
"message": string, // Present when results were capped
"error": string // On failure
}
Example usage
What Flights do I have?
The assistant calls the tool with no arguments. To filter:
{ "keywords": "metrics" }
An Admin sees the whole organization's Flights by default, with owner_name identifying whose each one is. To view your own Flights, use the following to filter results:
{ "owner_only": true }
Related
get_flight— Fetch a single Flight's content.MD_LIST_FLIGHTS— SQL equivalent.