Apache Airflow · Capability

Airflow API — Task

Airflow API — Task. 2 operations. Lead operation: Airflow Get Tasks. Self-contained Naftiko capability covering one Airflow business surface.

Run with Naftiko AirflowTask

What You Can Do

GET
Gettasks — Airflow Get Tasks
/v1/api/v2/dags/{dag-id}/tasks
GET
Gettask — Airflow Get Task
/v1/api/v2/dags/{dag-id}/tasks/{task-id}

MCP Tools

airflow-get-tasks

Airflow Get Tasks

read-only idempotent
airflow-get-task

Airflow Get Task

read-only idempotent

Capability Spec

airflow-task.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Airflow API — Task
  description: 'Airflow API — Task. 2 operations. Lead operation: Airflow Get Tasks. Self-contained Naftiko capability covering
    one Airflow business surface.'
  tags:
  - Airflow
  - Task
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    AIRFLOW_API_KEY: AIRFLOW_API_KEY
capability:
  consumes:
  - type: http
    namespace: airflow-task
    baseUri: ''
    description: Airflow API — Task business capability. Self-contained, no shared references.
    resources:
    - name: api-v2-dags-dag_id-tasks
      path: /api/v2/dags/{dag_id}/tasks
      operations:
      - name: gettasks
        method: GET
        description: Airflow Get Tasks
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: dag_id
          in: path
          type: string
          required: true
        - name: order_by
          in: query
          type: string
    - name: api-v2-dags-dag_id-tasks-task_id
      path: /api/v2/dags/{dag_id}/tasks/{task_id}
      operations:
      - name: gettask
        method: GET
        description: Airflow Get Task
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: dag_id
          in: path
          type: string
          required: true
        - name: task_id
          in: path
          type: string
          required: true
    authentication:
      type: bearer
      token: '{{env.AIRFLOW_API_KEY}}'
  exposes:
  - type: rest
    namespace: airflow-task-rest
    port: 8080
    description: REST adapter for Airflow API — Task. One Spectral-compliant resource per consumed operation, prefixed with
      /v1.
    resources:
    - path: /v1/api/v2/dags/{dag-id}/tasks
      name: api-v2-dags-dag-id-tasks
      description: REST surface for api-v2-dags-dag_id-tasks.
      operations:
      - method: GET
        name: gettasks
        description: Airflow Get Tasks
        call: airflow-task.gettasks
        with:
          dag_id: rest.dag_id
          order_by: rest.order_by
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v2/dags/{dag-id}/tasks/{task-id}
      name: api-v2-dags-dag-id-tasks-task-id
      description: REST surface for api-v2-dags-dag_id-tasks-task_id.
      operations:
      - method: GET
        name: gettask
        description: Airflow Get Task
        call: airflow-task.gettask
        with:
          dag_id: rest.dag_id
          task_id: rest.task_id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: airflow-task-mcp
    port: 9090
    transport: http
    description: MCP adapter for Airflow API — Task. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: airflow-get-tasks
      description: Airflow Get Tasks
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: airflow-task.gettasks
      with:
        dag_id: tools.dag_id
        order_by: tools.order_by
      outputParameters:
      - type: object
        mapping: $.
    - name: airflow-get-task
      description: Airflow Get Task
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: airflow-task.gettask
      with:
        dag_id: tools.dag_id
        task_id: tools.task_id
      outputParameters:
      - type: object
        mapping: $.