Apache Airflow · Capability

Airflow API — DagStats

Airflow API — DagStats. 1 operations. Lead operation: Airflow Get Dag Stats. Self-contained Naftiko capability covering one Airflow business surface.

Run with Naftiko AirflowDagStats

What You Can Do

GET
Getdagstats — Airflow Get Dag Stats
/v1/api/v2/dagstats

MCP Tools

airflow-get-dag-stats

Airflow Get Dag Stats

read-only idempotent

Capability Spec

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