OWASP ZAP · Capability

ZAP API — alertFilter

ZAP API — alertFilter. 12 operations. Lead operation: alertFilter. Self-contained Naftiko capability covering one Owasp Zap business surface.

Run with Naftiko Owasp ZapalertFilter

What You Can Do

GET
Alertfilteractionaddalertfilter — Adds a new alert filter for the context with the given ID.
/v1/json/alertfilter/action/addalertfilter
GET
Alertfilteractionaddglobalalertfilter — Adds a new global alert filter.
/v1/json/alertfilter/action/addglobalalertfilter
GET
Alertfilteractionapplyall — Applies all currently enabled Global and Context alert filters.
/v1/json/alertfilter/action/applyall
GET
Alertfilteractionapplycontext — Applies all currently enabled Context alert filters.
/v1/json/alertfilter/action/applycontext
GET
Alertfilteractionapplyglobal — Applies all currently enabled Global alert filters.
/v1/json/alertfilter/action/applyglobal
GET
Alertfilteractionremovealertfilter — Removes an alert filter from the context with the given ID.
/v1/json/alertfilter/action/removealertfilter
GET
Alertfilteractionremoveglobalalertfilter — Removes a global alert filter.
/v1/json/alertfilter/action/removeglobalalertfilter
GET
Alertfilteractiontestall — Tests all currently enabled Global and Context alert filters.
/v1/json/alertfilter/action/testall
GET
Alertfilteractiontestcontext — Tests all currently enabled Context alert filters.
/v1/json/alertfilter/action/testcontext
GET
Alertfilteractiontestglobal — Tests all currently enabled Global alert filters.
/v1/json/alertfilter/action/testglobal
GET
Alertfilterviewalertfilterlist — Lists the alert filters of the context with the given ID.
/v1/json/alertfilter/view/alertfilterlist
GET
Alertfilterviewglobalalertfilterlist — Lists the global alert filters.
/v1/json/alertfilter/view/globalalertfilterlist

MCP Tools

adds-new-alert-filter-context

Adds a new alert filter for the context with the given ID.

read-only idempotent
adds-new-global-alert-filter

Adds a new global alert filter.

read-only idempotent
applies-all-currently-enabled-global

Applies all currently enabled Global and Context alert filters.

read-only idempotent
applies-all-currently-enabled-context

Applies all currently enabled Context alert filters.

read-only idempotent
applies-all-currently-enabled-global-2

Applies all currently enabled Global alert filters.

read-only idempotent
removes-alert-filter-context-given

Removes an alert filter from the context with the given ID.

read-only idempotent
removes-global-alert-filter

Removes a global alert filter.

read-only idempotent
tests-all-currently-enabled-global

Tests all currently enabled Global and Context alert filters.

read-only idempotent
tests-all-currently-enabled-context

Tests all currently enabled Context alert filters.

read-only idempotent
tests-all-currently-enabled-global-2

Tests all currently enabled Global alert filters.

read-only idempotent
lists-alert-filters-context-given

Lists the alert filters of the context with the given ID.

read-only idempotent
lists-global-alert-filters

Lists the global alert filters.

read-only idempotent

Capability Spec

owasp-zap-alertfilter.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: ZAP API — alertFilter
  description: 'ZAP API — alertFilter. 12 operations. Lead operation: alertFilter. Self-contained Naftiko capability covering
    one Owasp Zap business surface.'
  tags:
  - Owasp Zap
  - alertFilter
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    OWASP_ZAP_API_KEY: OWASP_ZAP_API_KEY
capability:
  consumes:
  - type: http
    namespace: owasp-zap-alertfilter
    baseUri: http://zap
    description: ZAP API — alertFilter business capability. Self-contained, no shared references.
    resources:
    - name: JSON-alertFilter-action-addAlertFilter
      path: /JSON/alertFilter/action/addAlertFilter/
      operations:
      - name: alertfilteractionaddalertfilter
        method: GET
        description: Adds a new alert filter for the context with the given ID.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: JSON-alertFilter-action-addGlobalAlertFilter
      path: /JSON/alertFilter/action/addGlobalAlertFilter/
      operations:
      - name: alertfilteractionaddglobalalertfilter
        method: GET
        description: Adds a new global alert filter.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: JSON-alertFilter-action-applyAll
      path: /JSON/alertFilter/action/applyAll/
      operations:
      - name: alertfilteractionapplyall
        method: GET
        description: Applies all currently enabled Global and Context alert filters.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: JSON-alertFilter-action-applyContext
      path: /JSON/alertFilter/action/applyContext/
      operations:
      - name: alertfilteractionapplycontext
        method: GET
        description: Applies all currently enabled Context alert filters.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: JSON-alertFilter-action-applyGlobal
      path: /JSON/alertFilter/action/applyGlobal/
      operations:
      - name: alertfilteractionapplyglobal
        method: GET
        description: Applies all currently enabled Global alert filters.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: JSON-alertFilter-action-removeAlertFilter
      path: /JSON/alertFilter/action/removeAlertFilter/
      operations:
      - name: alertfilteractionremovealertfilter
        method: GET
        description: Removes an alert filter from the context with the given ID.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: JSON-alertFilter-action-removeGlobalAlertFilter
      path: /JSON/alertFilter/action/removeGlobalAlertFilter/
      operations:
      - name: alertfilteractionremoveglobalalertfilter
        method: GET
        description: Removes a global alert filter.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: JSON-alertFilter-action-testAll
      path: /JSON/alertFilter/action/testAll/
      operations:
      - name: alertfilteractiontestall
        method: GET
        description: Tests all currently enabled Global and Context alert filters.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: JSON-alertFilter-action-testContext
      path: /JSON/alertFilter/action/testContext/
      operations:
      - name: alertfilteractiontestcontext
        method: GET
        description: Tests all currently enabled Context alert filters.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: JSON-alertFilter-action-testGlobal
      path: /JSON/alertFilter/action/testGlobal/
      operations:
      - name: alertfilteractiontestglobal
        method: GET
        description: Tests all currently enabled Global alert filters.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: JSON-alertFilter-view-alertFilterList
      path: /JSON/alertFilter/view/alertFilterList/
      operations:
      - name: alertfilterviewalertfilterlist
        method: GET
        description: Lists the alert filters of the context with the given ID.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: JSON-alertFilter-view-globalAlertFilterList
      path: /JSON/alertFilter/view/globalAlertFilterList/
      operations:
      - name: alertfilterviewglobalalertfilterlist
        method: GET
        description: Lists the global alert filters.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: apikey
      key: X-ZAP-API-Key
      value: '{{env.OWASP_ZAP_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: owasp-zap-alertfilter-rest
    port: 8080
    description: REST adapter for ZAP API — alertFilter. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/json/alertfilter/action/addalertfilter
      name: json-alertfilter-action-addalertfilter
      description: REST surface for JSON-alertFilter-action-addAlertFilter.
      operations:
      - method: GET
        name: alertfilteractionaddalertfilter
        description: Adds a new alert filter for the context with the given ID.
        call: owasp-zap-alertfilter.alertfilteractionaddalertfilter
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/json/alertfilter/action/addglobalalertfilter
      name: json-alertfilter-action-addglobalalertfilter
      description: REST surface for JSON-alertFilter-action-addGlobalAlertFilter.
      operations:
      - method: GET
        name: alertfilteractionaddglobalalertfilter
        description: Adds a new global alert filter.
        call: owasp-zap-alertfilter.alertfilteractionaddglobalalertfilter
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/json/alertfilter/action/applyall
      name: json-alertfilter-action-applyall
      description: REST surface for JSON-alertFilter-action-applyAll.
      operations:
      - method: GET
        name: alertfilteractionapplyall
        description: Applies all currently enabled Global and Context alert filters.
        call: owasp-zap-alertfilter.alertfilteractionapplyall
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/json/alertfilter/action/applycontext
      name: json-alertfilter-action-applycontext
      description: REST surface for JSON-alertFilter-action-applyContext.
      operations:
      - method: GET
        name: alertfilteractionapplycontext
        description: Applies all currently enabled Context alert filters.
        call: owasp-zap-alertfilter.alertfilteractionapplycontext
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/json/alertfilter/action/applyglobal
      name: json-alertfilter-action-applyglobal
      description: REST surface for JSON-alertFilter-action-applyGlobal.
      operations:
      - method: GET
        name: alertfilteractionapplyglobal
        description: Applies all currently enabled Global alert filters.
        call: owasp-zap-alertfilter.alertfilteractionapplyglobal
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/json/alertfilter/action/removealertfilter
      name: json-alertfilter-action-removealertfilter
      description: REST surface for JSON-alertFilter-action-removeAlertFilter.
      operations:
      - method: GET
        name: alertfilteractionremovealertfilter
        description: Removes an alert filter from the context with the given ID.
        call: owasp-zap-alertfilter.alertfilteractionremovealertfilter
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/json/alertfilter/action/removeglobalalertfilter
      name: json-alertfilter-action-removeglobalalertfilter
      description: REST surface for JSON-alertFilter-action-removeGlobalAlertFilter.
      operations:
      - method: GET
        name: alertfilteractionremoveglobalalertfilter
        description: Removes a global alert filter.
        call: owasp-zap-alertfilter.alertfilteractionremoveglobalalertfilter
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/json/alertfilter/action/testall
      name: json-alertfilter-action-testall
      description: REST surface for JSON-alertFilter-action-testAll.
      operations:
      - method: GET
        name: alertfilteractiontestall
        description: Tests all currently enabled Global and Context alert filters.
        call: owasp-zap-alertfilter.alertfilteractiontestall
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/json/alertfilter/action/testcontext
      name: json-alertfilter-action-testcontext
      description: REST surface for JSON-alertFilter-action-testContext.
      operations:
      - method: GET
        name: alertfilteractiontestcontext
        description: Tests all currently enabled Context alert filters.
        call: owasp-zap-alertfilter.alertfilteractiontestcontext
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/json/alertfilter/action/testglobal
      name: json-alertfilter-action-testglobal
      description: REST surface for JSON-alertFilter-action-testGlobal.
      operations:
      - method: GET
        name: alertfilteractiontestglobal
        description: Tests all currently enabled Global alert filters.
        call: owasp-zap-alertfilter.alertfilteractiontestglobal
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/json/alertfilter/view/alertfilterlist
      name: json-alertfilter-view-alertfilterlist
      description: REST surface for JSON-alertFilter-view-alertFilterList.
      operations:
      - method: GET
        name: alertfilterviewalertfilterlist
        description: Lists the alert filters of the context with the given ID.
        call: owasp-zap-alertfilter.alertfilterviewalertfilterlist
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/json/alertfilter/view/globalalertfilterlist
      name: json-alertfilter-view-globalalertfilterlist
      description: REST surface for JSON-alertFilter-view-globalAlertFilterList.
      operations:
      - method: GET
        name: alertfilterviewglobalalertfilterlist
        description: Lists the global alert filters.
        call: owasp-zap-alertfilter.alertfilterviewglobalalertfilterlist
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: owasp-zap-alertfilter-mcp
    port: 9090
    transport: http
    description: MCP adapter for ZAP API — alertFilter. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: adds-new-alert-filter-context
      description: Adds a new alert filter for the context with the given ID.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: owasp-zap-alertfilter.alertfilteractionaddalertfilter
      outputParameters:
      - type: object
        mapping: $.
    - name: adds-new-global-alert-filter
      description: Adds a new global alert filter.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: owasp-zap-alertfilter.alertfilteractionaddglobalalertfilter
      outputParameters:
      - type: object
        mapping: $.
    - name: applies-all-currently-enabled-global
      description: Applies all currently enabled Global and Context alert filters.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: owasp-zap-alertfilter.alertfilteractionapplyall
      outputParameters:
      - type: object
        mapping: $.
    - name: applies-all-currently-enabled-context
      description: Applies all currently enabled Context alert filters.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: owasp-zap-alertfilter.alertfilteractionapplycontext
      outputParameters:
      - type: object
        mapping: $.
    - name: applies-all-currently-enabled-global-2
      description: Applies all currently enabled Global alert filters.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: owasp-zap-alertfilter.alertfilteractionapplyglobal
      outputParameters:
      - type: object
        mapping: $.
    - name: removes-alert-filter-context-given
      description: Removes an alert filter from the context with the given ID.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: owasp-zap-alertfilter.alertfilteractionremovealertfilter
      outputParameters:
      - type: object
        mapping: $.
    - name: removes-global-alert-filter
      description: Removes a global alert filter.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: owasp-zap-alertfilter.alertfilteractionremoveglobalalertfilter
      outputParameters:
      - type: object
        mapping: $.
    - name: tests-all-currently-enabled-global
      description: Tests all currently enabled Global and Context alert filters.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: owasp-zap-alertfilter.alertfilteractiontestall
      outputParameters:
      - type: object
        mapping: $.
    - name: tests-all-currently-enabled-context
      description: Tests all currently enabled Context alert filters.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: owasp-zap-alertfilter.alertfilteractiontestcontext
      outputParameters:
      - type: object
        mapping: $.
    - name: tests-all-currently-enabled-global-2
      description: Tests all currently enabled Global alert filters.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: owasp-zap-alertfilter.alertfilteractiontestglobal
      outputParameters:
      - type: object
        mapping: $.
    - name: lists-alert-filters-context-given
      description: Lists the alert filters of the context with the given ID.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: owasp-zap-alertfilter.alertfilterviewalertfilterlist
      outputParameters:
      - type: object
        mapping: $.
    - name: lists-global-alert-filters
      description: Lists the global alert filters.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: owasp-zap-alertfilter.alertfilterviewglobalalertfilterlist
      outputParameters:
      - type: object
        mapping: $.