Microsoft Purview · Capability

Microsoft Purview Metadata Policies API — Metadata Policy

Microsoft Purview Metadata Policies API — Metadata Policy. 3 operations. Lead operation: Microsoft Purview List all metadata policies. Self-contained Naftiko capability covering one Microsoft Purview business surface.

Run with Naftiko Microsoft PurviewMetadata Policy

What You Can Do

GET
Listallmetadatapolicies — Microsoft Purview List all metadata policies
/v1/metadatapolicies
GET
Getmetadatapolicy — Microsoft Purview Get a metadata policy
/v1/metadatapolicies/{policyid}
PUT
Updatemetadatapolicy — Microsoft Purview Update a metadata policy
/v1/metadatapolicies/{policyid}

MCP Tools

microsoft-purview-list-all-metadata

Microsoft Purview List all metadata policies

read-only idempotent
microsoft-purview-get-metadata-policy

Microsoft Purview Get a metadata policy

read-only idempotent
microsoft-purview-update-metadata-policy

Microsoft Purview Update a metadata policy

idempotent

Capability Spec

metadata-policies-metadata-policy.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Microsoft Purview Metadata Policies API — Metadata Policy
  description: 'Microsoft Purview Metadata Policies API — Metadata Policy. 3 operations. Lead operation: Microsoft Purview
    List all metadata policies. Self-contained Naftiko capability covering one Microsoft Purview business surface.'
  tags:
  - Microsoft Purview
  - Metadata Policy
  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: metadata-policies-metadata-policy
    baseUri: https://{accountName}.purview.azure.com/policystore
    description: Microsoft Purview Metadata Policies API — Metadata Policy business capability. Self-contained, no shared
      references.
    resources:
    - name: metadataPolicies
      path: /metadataPolicies
      operations:
      - name: listallmetadatapolicies
        method: GET
        description: Microsoft Purview List all metadata policies
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: api-version
          in: query
          type: string
          required: true
        - name: collectionName
          in: query
          type: string
          description: Filter by collection name
    - name: metadataPolicies-policyId
      path: /metadataPolicies/{policyId}
      operations:
      - name: getmetadatapolicy
        method: GET
        description: Microsoft Purview Get a metadata policy
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: policyId
          in: path
          type: string
          description: The unique identifier of the metadata policy
          required: true
        - name: api-version
          in: query
          type: string
          required: true
      - name: updatemetadatapolicy
        method: PUT
        description: Microsoft Purview Update a metadata policy
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: policyId
          in: path
          type: string
          description: The unique identifier of the metadata policy
          required: true
        - name: api-version
          in: query
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.MICROSOFT_PURVIEW_API_KEY}}'
  exposes:
  - type: rest
    namespace: metadata-policies-metadata-policy-rest
    port: 8080
    description: REST adapter for Microsoft Purview Metadata Policies API — Metadata Policy. One Spectral-compliant resource
      per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/metadatapolicies
      name: metadatapolicies
      description: REST surface for metadataPolicies.
      operations:
      - method: GET
        name: listallmetadatapolicies
        description: Microsoft Purview List all metadata policies
        call: metadata-policies-metadata-policy.listallmetadatapolicies
        with:
          api-version: rest.api-version
          collectionName: rest.collectionName
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/metadatapolicies/{policyid}
      name: metadatapolicies-policyid
      description: REST surface for metadataPolicies-policyId.
      operations:
      - method: GET
        name: getmetadatapolicy
        description: Microsoft Purview Get a metadata policy
        call: metadata-policies-metadata-policy.getmetadatapolicy
        with:
          policyId: rest.policyId
          api-version: rest.api-version
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatemetadatapolicy
        description: Microsoft Purview Update a metadata policy
        call: metadata-policies-metadata-policy.updatemetadatapolicy
        with:
          policyId: rest.policyId
          api-version: rest.api-version
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: metadata-policies-metadata-policy-mcp
    port: 9090
    transport: http
    description: MCP adapter for Microsoft Purview Metadata Policies API — Metadata Policy. One tool per consumed operation,
      routed inline through this capability's consumes block.
    tools:
    - name: microsoft-purview-list-all-metadata
      description: Microsoft Purview List all metadata policies
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: metadata-policies-metadata-policy.listallmetadatapolicies
      with:
        api-version: tools.api-version
        collectionName: tools.collectionName
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-purview-get-metadata-policy
      description: Microsoft Purview Get a metadata policy
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: metadata-policies-metadata-policy.getmetadatapolicy
      with:
        policyId: tools.policyId
        api-version: tools.api-version
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-purview-update-metadata-policy
      description: Microsoft Purview Update a metadata policy
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: metadata-policies-metadata-policy.updatemetadatapolicy
      with:
        policyId: tools.policyId
        api-version: tools.api-version
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.