fastly · Capability

Fastly Next-Gen WAF API — WAF Exclusions

Fastly Next-Gen WAF API — WAF Exclusions. 2 operations. Lead operation: List WAF exclusions. Self-contained Naftiko capability covering one Fastly business surface.

Run with Naftiko FastlyWAF Exclusions

What You Can Do

GET
Listwafexclusions — List WAF exclusions
/v1/waf/firewalls/{firewall-id}/versions/{firewall-version-number}/exclusions
POST
Createwafexclusion — Create a WAF exclusion
/v1/waf/firewalls/{firewall-id}/versions/{firewall-version-number}/exclusions

MCP Tools

list-waf-exclusions

List WAF exclusions

read-only idempotent
create-waf-exclusion

Create a WAF exclusion

Capability Spec

waf-waf-exclusions.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Fastly Next-Gen WAF API — WAF Exclusions
  description: 'Fastly Next-Gen WAF API — WAF Exclusions. 2 operations. Lead operation: List WAF exclusions. Self-contained
    Naftiko capability covering one Fastly business surface.'
  tags:
  - Fastly
  - WAF Exclusions
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    FASTLY_API_KEY: FASTLY_API_KEY
capability:
  consumes:
  - type: http
    namespace: waf-waf-exclusions
    baseUri: https://api.fastly.com
    description: Fastly Next-Gen WAF API — WAF Exclusions business capability. Self-contained, no shared references.
    resources:
    - name: waf-firewalls-firewall_id-versions-firewall_version_number-exclusions
      path: /waf/firewalls/{firewall_id}/versions/{firewall_version_number}/exclusions
      operations:
      - name: listwafexclusions
        method: GET
        description: List WAF exclusions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: page[number]
          in: query
          type: integer
          description: The page number to retrieve.
        - name: page[size]
          in: query
          type: integer
          description: The number of items per page.
      - name: createwafexclusion
        method: POST
        description: Create a WAF exclusion
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: apikey
      key: Fastly-Key
      value: '{{env.FASTLY_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: waf-waf-exclusions-rest
    port: 8080
    description: REST adapter for Fastly Next-Gen WAF API — WAF Exclusions. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/waf/firewalls/{firewall-id}/versions/{firewall-version-number}/exclusions
      name: waf-firewalls-firewall-id-versions-firewall-version-number-exclusions
      description: REST surface for waf-firewalls-firewall_id-versions-firewall_version_number-exclusions.
      operations:
      - method: GET
        name: listwafexclusions
        description: List WAF exclusions
        call: waf-waf-exclusions.listwafexclusions
        with:
          page[number]: rest.page[number]
          page[size]: rest.page[size]
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createwafexclusion
        description: Create a WAF exclusion
        call: waf-waf-exclusions.createwafexclusion
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: waf-waf-exclusions-mcp
    port: 9090
    transport: http
    description: MCP adapter for Fastly Next-Gen WAF API — WAF Exclusions. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: list-waf-exclusions
      description: List WAF exclusions
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: waf-waf-exclusions.listwafexclusions
      with:
        page[number]: tools.page[number]
        page[size]: tools.page[size]
      outputParameters:
      - type: object
        mapping: $.
    - name: create-waf-exclusion
      description: Create a WAF exclusion
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: waf-waf-exclusions.createwafexclusion
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.