WSO2 · Capability

WSO2 API Manager - Governance — Policy Adherence

WSO2 API Manager - Governance — Policy Adherence. 3 operations. Lead operation: Retrieve adherence status for all policies. Self-contained Naftiko capability covering one Wso2 business surface.

Run with Naftiko Wso2Policy Adherence

What You Can Do

GET
Getpolicyadherenceforallpolicies — Retrieve adherence status for all policies
/v1/policy-adherence
GET
Getpolicyadherencesummary — Retrieves the summary of adherence for all policies
/v1/policy-adherence/summary
GET
Getpolicyadherencebypolicyid — Retrieve adherence details for a specific policy
/v1/policy-adherence/{policyid}

MCP Tools

retrieve-adherence-status-all-policies

Retrieve adherence status for all policies

read-only idempotent
retrieves-summary-adherence-all-policies

Retrieves the summary of adherence for all policies

read-only idempotent
retrieve-adherence-details-specific-policy

Retrieve adherence details for a specific policy

read-only idempotent

Capability Spec

governance-policy-adherence.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: WSO2 API Manager - Governance — Policy Adherence
  description: 'WSO2 API Manager - Governance — Policy Adherence. 3 operations. Lead operation: Retrieve adherence status
    for all policies. Self-contained Naftiko capability covering one Wso2 business surface.'
  tags:
  - Wso2
  - Policy Adherence
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    WSO2_API_KEY: WSO2_API_KEY
capability:
  consumes:
  - type: http
    namespace: governance-policy-adherence
    baseUri: https://apis.wso2.com/api/am/governance/v1
    description: WSO2 API Manager - Governance — Policy Adherence business capability. Self-contained, no shared references.
    resources:
    - name: policy-adherence
      path: /policy-adherence
      operations:
      - name: getpolicyadherenceforallpolicies
        method: GET
        description: Retrieve adherence status for all policies
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: policy-adherence-summary
      path: /policy-adherence/summary
      operations:
      - name: getpolicyadherencesummary
        method: GET
        description: Retrieves the summary of adherence for all policies
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: policy-adherence-policyId
      path: /policy-adherence/{policyId}
      operations:
      - name: getpolicyadherencebypolicyid
        method: GET
        description: Retrieve adherence details for a specific policy
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.WSO2_API_KEY}}'
  exposes:
  - type: rest
    namespace: governance-policy-adherence-rest
    port: 8080
    description: REST adapter for WSO2 API Manager - Governance — Policy Adherence. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/policy-adherence
      name: policy-adherence
      description: REST surface for policy-adherence.
      operations:
      - method: GET
        name: getpolicyadherenceforallpolicies
        description: Retrieve adherence status for all policies
        call: governance-policy-adherence.getpolicyadherenceforallpolicies
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/policy-adherence/summary
      name: policy-adherence-summary
      description: REST surface for policy-adherence-summary.
      operations:
      - method: GET
        name: getpolicyadherencesummary
        description: Retrieves the summary of adherence for all policies
        call: governance-policy-adherence.getpolicyadherencesummary
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/policy-adherence/{policyid}
      name: policy-adherence-policyid
      description: REST surface for policy-adherence-policyId.
      operations:
      - method: GET
        name: getpolicyadherencebypolicyid
        description: Retrieve adherence details for a specific policy
        call: governance-policy-adherence.getpolicyadherencebypolicyid
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: governance-policy-adherence-mcp
    port: 9090
    transport: http
    description: MCP adapter for WSO2 API Manager - Governance — Policy Adherence. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: retrieve-adherence-status-all-policies
      description: Retrieve adherence status for all policies
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: governance-policy-adherence.getpolicyadherenceforallpolicies
      outputParameters:
      - type: object
        mapping: $.
    - name: retrieves-summary-adherence-all-policies
      description: Retrieves the summary of adherence for all policies
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: governance-policy-adherence.getpolicyadherencesummary
      outputParameters:
      - type: object
        mapping: $.
    - name: retrieve-adherence-details-specific-policy
      description: Retrieve adherence details for a specific policy
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: governance-policy-adherence.getpolicyadherencebypolicyid
      outputParameters:
      - type: object
        mapping: $.