WSO2 · Capability

WSO2 API Manager - Admin — Custom Rules (Collection)

WSO2 API Manager - Admin — Custom Rules (Collection). 2 operations. Lead operation: Get all Custom Rules. Self-contained Naftiko capability covering one Wso2 business surface.

Run with Naftiko Wso2Custom Rules (Collection)

What You Can Do

GET
Get — Get all Custom Rules
/v1/throttling/policies/custom
POST
Post — Add a Custom Rule
/v1/throttling/policies/custom

MCP Tools

get-all-custom-rules

Get all Custom Rules

read-only idempotent
add-custom-rule

Add a Custom Rule

Capability Spec

admin-custom-rules-collection.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: WSO2 API Manager - Admin — Custom Rules (Collection)
  description: 'WSO2 API Manager - Admin — Custom Rules (Collection). 2 operations. Lead operation: Get all Custom Rules.
    Self-contained Naftiko capability covering one Wso2 business surface.'
  tags:
  - Wso2
  - Custom Rules (Collection)
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    WSO2_API_KEY: WSO2_API_KEY
capability:
  consumes:
  - type: http
    namespace: admin-custom-rules-collection
    baseUri: https://apis.wso2.com/api/am/admin/v4
    description: WSO2 API Manager - Admin — Custom Rules (Collection) business capability. Self-contained, no shared references.
    resources:
    - name: throttling-policies-custom
      path: /throttling/policies/custom
      operations:
      - name: get
        method: GET
        description: Get all Custom Rules
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: post
        method: POST
        description: Add a Custom Rule
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.WSO2_API_KEY}}'
  exposes:
  - type: rest
    namespace: admin-custom-rules-collection-rest
    port: 8080
    description: REST adapter for WSO2 API Manager - Admin — Custom Rules (Collection). One Spectral-compliant resource per
      consumed operation, prefixed with /v1.
    resources:
    - path: /v1/throttling/policies/custom
      name: throttling-policies-custom
      description: REST surface for throttling-policies-custom.
      operations:
      - method: GET
        name: get
        description: Get all Custom Rules
        call: admin-custom-rules-collection.get
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: post
        description: Add a Custom Rule
        call: admin-custom-rules-collection.post
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: admin-custom-rules-collection-mcp
    port: 9090
    transport: http
    description: MCP adapter for WSO2 API Manager - Admin — Custom Rules (Collection). One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: get-all-custom-rules
      description: Get all Custom Rules
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: admin-custom-rules-collection.get
      outputParameters:
      - type: object
        mapping: $.
    - name: add-custom-rule
      description: Add a Custom Rule
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: admin-custom-rules-collection.post
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.