Microsoft Purview · Capability

Microsoft Purview Data Map API — Lineage

Microsoft Purview Data Map API — Lineage. 3 operations. Lead operation: Microsoft Purview Get lineage by unique attribute. Self-contained Naftiko capability covering one Microsoft Purview business surface.

Run with Naftiko Microsoft PurviewLineage

What You Can Do

GET
Lineagegetbyuniqueattribute — Microsoft Purview Get lineage by unique attribute
/v1/api/atlas/v2/lineage/uniqueattribute/type/{typename}
GET
Lineageget — Microsoft Purview Get lineage by GUID
/v1/api/atlas/v2/lineage/{guid}
GET
Lineagegetnextpage — Microsoft Purview Get next page of lineage
/v1/api/atlas/v2/lineage/{guid}/next

MCP Tools

microsoft-purview-get-lineage-unique

Microsoft Purview Get lineage by unique attribute

read-only idempotent
microsoft-purview-get-lineage-guid

Microsoft Purview Get lineage by GUID

read-only idempotent
microsoft-purview-get-next-page

Microsoft Purview Get next page of lineage

read-only idempotent

Capability Spec

data-map-lineage.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Microsoft Purview Data Map API — Lineage
  description: 'Microsoft Purview Data Map API — Lineage. 3 operations. Lead operation: Microsoft Purview Get lineage by unique
    attribute. Self-contained Naftiko capability covering one Microsoft Purview business surface.'
  tags:
  - Microsoft Purview
  - Lineage
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    MICROSOFT_PURVIEW_API_KEY: MICROSOFT_PURVIEW_API_KEY
capability:
  consumes:
  - type: http
    namespace: data-map-lineage
    baseUri: https://{accountName}.purview.azure.com/datamap
    description: Microsoft Purview Data Map API — Lineage business capability. Self-contained, no shared references.
    resources:
    - name: api-atlas-v2-lineage-uniqueAttribute-type-typeName
      path: /api/atlas/v2/lineage/uniqueAttribute/type/{typeName}
      operations:
      - name: lineagegetbyuniqueattribute
        method: GET
        description: Microsoft Purview Get lineage by unique attribute
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: typeName
          in: path
          type: string
          required: true
        - name: api-version
          in: query
          type: string
          required: true
        - name: direction
          in: query
          type: string
          required: true
        - name: depth
          in: query
          type: integer
    - name: api-atlas-v2-lineage-guid
      path: /api/atlas/v2/lineage/{guid}
      operations:
      - name: lineageget
        method: GET
        description: Microsoft Purview Get lineage by GUID
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: guid
          in: path
          type: string
          required: true
        - name: api-version
          in: query
          type: string
          required: true
        - name: direction
          in: query
          type: string
          required: true
        - name: depth
          in: query
          type: integer
    - name: api-atlas-v2-lineage-guid-next
      path: /api/atlas/v2/lineage/{guid}/next
      operations:
      - name: lineagegetnextpage
        method: GET
        description: Microsoft Purview Get next page of lineage
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: guid
          in: path
          type: string
          required: true
        - name: api-version
          in: query
          type: string
          required: true
        - name: direction
          in: query
          type: string
          required: true
        - name: offset
          in: query
          type: integer
        - name: limit
          in: query
          type: integer
    authentication:
      type: bearer
      token: '{{env.MICROSOFT_PURVIEW_API_KEY}}'
  exposes:
  - type: rest
    namespace: data-map-lineage-rest
    port: 8080
    description: REST adapter for Microsoft Purview Data Map API — Lineage. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/api/atlas/v2/lineage/uniqueattribute/type/{typename}
      name: api-atlas-v2-lineage-uniqueattribute-type-typename
      description: REST surface for api-atlas-v2-lineage-uniqueAttribute-type-typeName.
      operations:
      - method: GET
        name: lineagegetbyuniqueattribute
        description: Microsoft Purview Get lineage by unique attribute
        call: data-map-lineage.lineagegetbyuniqueattribute
        with:
          typeName: rest.typeName
          api-version: rest.api-version
          direction: rest.direction
          depth: rest.depth
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/atlas/v2/lineage/{guid}
      name: api-atlas-v2-lineage-guid
      description: REST surface for api-atlas-v2-lineage-guid.
      operations:
      - method: GET
        name: lineageget
        description: Microsoft Purview Get lineage by GUID
        call: data-map-lineage.lineageget
        with:
          guid: rest.guid
          api-version: rest.api-version
          direction: rest.direction
          depth: rest.depth
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/atlas/v2/lineage/{guid}/next
      name: api-atlas-v2-lineage-guid-next
      description: REST surface for api-atlas-v2-lineage-guid-next.
      operations:
      - method: GET
        name: lineagegetnextpage
        description: Microsoft Purview Get next page of lineage
        call: data-map-lineage.lineagegetnextpage
        with:
          guid: rest.guid
          api-version: rest.api-version
          direction: rest.direction
          offset: rest.offset
          limit: rest.limit
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: data-map-lineage-mcp
    port: 9090
    transport: http
    description: MCP adapter for Microsoft Purview Data Map API — Lineage. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: microsoft-purview-get-lineage-unique
      description: Microsoft Purview Get lineage by unique attribute
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: data-map-lineage.lineagegetbyuniqueattribute
      with:
        typeName: tools.typeName
        api-version: tools.api-version
        direction: tools.direction
        depth: tools.depth
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-purview-get-lineage-guid
      description: Microsoft Purview Get lineage by GUID
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: data-map-lineage.lineageget
      with:
        guid: tools.guid
        api-version: tools.api-version
        direction: tools.direction
        depth: tools.depth
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-purview-get-next-page
      description: Microsoft Purview Get next page of lineage
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: data-map-lineage.lineagegetnextpage
      with:
        guid: tools.guid
        api-version: tools.api-version
        direction: tools.direction
        offset: tools.offset
        limit: tools.limit
      outputParameters:
      - type: object
        mapping: $.