Microsoft Purview · Capability

Microsoft Purview Metadata Policies API — Metadata Roles

Microsoft Purview Metadata Policies API — Metadata Roles. 1 operations. Lead operation: Microsoft Purview List metadata roles. Self-contained Naftiko capability covering one Microsoft Purview business surface.

Run with Naftiko Microsoft PurviewMetadata Roles

What You Can Do

GET
Listmetadataroles — Microsoft Purview List metadata roles
/v1/metadataroles

MCP Tools

microsoft-purview-list-metadata-roles

Microsoft Purview List metadata roles

read-only idempotent

Capability Spec

metadata-policies-metadata-roles.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Microsoft Purview Metadata Policies API — Metadata Roles
  description: 'Microsoft Purview Metadata Policies API — Metadata Roles. 1 operations. Lead operation: Microsoft Purview
    List metadata roles. Self-contained Naftiko capability covering one Microsoft Purview business surface.'
  tags:
  - Microsoft Purview
  - Metadata Roles
  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-roles
    baseUri: https://{accountName}.purview.azure.com/policystore
    description: Microsoft Purview Metadata Policies API — Metadata Roles business capability. Self-contained, no shared references.
    resources:
    - name: metadataRoles
      path: /metadataRoles
      operations:
      - name: listmetadataroles
        method: GET
        description: Microsoft Purview List metadata roles
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: api-version
          in: query
          type: string
          required: true
    authentication:
      type: bearer
      token: '{{env.MICROSOFT_PURVIEW_API_KEY}}'
  exposes:
  - type: rest
    namespace: metadata-policies-metadata-roles-rest
    port: 8080
    description: REST adapter for Microsoft Purview Metadata Policies API — Metadata Roles. One Spectral-compliant resource
      per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/metadataroles
      name: metadataroles
      description: REST surface for metadataRoles.
      operations:
      - method: GET
        name: listmetadataroles
        description: Microsoft Purview List metadata roles
        call: metadata-policies-metadata-roles.listmetadataroles
        with:
          api-version: rest.api-version
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: metadata-policies-metadata-roles-mcp
    port: 9090
    transport: http
    description: MCP adapter for Microsoft Purview Metadata Policies API — Metadata Roles. One tool per consumed operation,
      routed inline through this capability's consumes block.
    tools:
    - name: microsoft-purview-list-metadata-roles
      description: Microsoft Purview List metadata roles
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: metadata-policies-metadata-roles.listmetadataroles
      with:
        api-version: tools.api-version
      outputParameters:
      - type: object
        mapping: $.