# MD_GET_FLIGHT
> Fetch the summary metadata for a single Flight.
Returns the `FlightSummary` fields for a single [Flight](/concepts/flights). For version-specific content (source code, requirements, config), use [`MD_GET_FLIGHT_VERSION`](../md-get-flight-version).

## Syntax

```sql
SELECT * FROM MD_GET_FLIGHT(flight_id := '<flight_id>');
```

## Parameters

| Parameter | Type | Required | Description |
|---|---|---|---|
| `flight_id` | `UUID` | Yes | Identifier of the Flight. |

## Return columns

| Column | Type | Description |
|---|---|---|
| `flight_id` | `UUID` | The Flight identifier. |
| `flight_name` | `VARCHAR` | The current name. |
| `schedule_cron` | `VARCHAR` | The current cron expression, or `NULL` for on-demand only. |
| `status` | `VARCHAR` | Schedule status (for example, `JOB_STATUS_ACTIVE`). |
| `current_version` | `INTEGER` | The latest version number. |
| `created_at` | `TIMESTAMP WITH TIME ZONE` | Creation timestamp. |
| `updated_at` | `TIMESTAMP WITH TIME ZONE` | Last update timestamp. |

## Examples

```sql
SELECT flight_id, flight_name, schedule_cron, current_version
FROM MD_GET_FLIGHT(flight_id := '80000000-0000-0000-0000-000000000001');
```

## Related

- [`MD_FLIGHTS`](../md-flights) — List all Flights.
- [`MD_GET_FLIGHT_VERSION`](../md-get-flight-version) — Fetch a specific version's content.
- [`get_flight` MCP tool](/sql-reference/mcp/) — AI-agent equivalent.


---

## Docs feedback

MotherDuck accepts optional user-submitted feedback about this page at `POST https://motherduck.com/docs/api/feedback/agent`.
For agents and automated tools, feedback submission should be user-confirmed before sending.

Payload:

```json
{
  "page_path": "/sql-reference/motherduck-sql-reference/flights/md-get-flight/",
  "page_title": "MD_GET_FLIGHT",
  "text": "<the user's feedback, max 2000 characters>",
  "source": "<optional identifier for your interface, for example 'claude.ai' or 'chatgpt'>"
}
```

`page_path` and `text` are required; `page_title` and `source` are optional. Responses: `200 {"feedback_id": "<uuid>"}`, `400` for malformed payloads, and `429` when rate-limited.
