fastly · Capability

Fastly VCL Services API — Cache Settings

Fastly VCL Services API — Cache Settings. 2 operations. Lead operation: List cache settings. Self-contained Naftiko capability covering one Fastly business surface.

Run with Naftiko FastlyCache Settings

What You Can Do

GET
Listcachesettings — List cache settings
/v1/service/{service-id}/version/{version-id}/cache-settings
POST
Createcachesettings — Create cache settings
/v1/service/{service-id}/version/{version-id}/cache-settings

MCP Tools

list-cache-settings

List cache settings

read-only idempotent
create-cache-settings

Create cache settings

Capability Spec

vcl-services-cache-settings.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Fastly VCL Services API — Cache Settings
  description: 'Fastly VCL Services API — Cache Settings. 2 operations. Lead operation: List cache settings. Self-contained
    Naftiko capability covering one Fastly business surface.'
  tags:
  - Fastly
  - Cache Settings
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    FASTLY_API_KEY: FASTLY_API_KEY
capability:
  consumes:
  - type: http
    namespace: vcl-services-cache-settings
    baseUri: https://api.fastly.com
    description: Fastly VCL Services API — Cache Settings business capability. Self-contained, no shared references.
    resources:
    - name: service-service_id-version-version_id-cache_settings
      path: /service/{service_id}/version/{version_id}/cache_settings
      operations:
      - name: listcachesettings
        method: GET
        description: List cache settings
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createcachesettings
        method: POST
        description: Create cache settings
        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: vcl-services-cache-settings-rest
    port: 8080
    description: REST adapter for Fastly VCL Services API — Cache Settings. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/service/{service-id}/version/{version-id}/cache-settings
      name: service-service-id-version-version-id-cache-settings
      description: REST surface for service-service_id-version-version_id-cache_settings.
      operations:
      - method: GET
        name: listcachesettings
        description: List cache settings
        call: vcl-services-cache-settings.listcachesettings
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createcachesettings
        description: Create cache settings
        call: vcl-services-cache-settings.createcachesettings
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: vcl-services-cache-settings-mcp
    port: 9090
    transport: http
    description: MCP adapter for Fastly VCL Services API — Cache Settings. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: list-cache-settings
      description: List cache settings
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: vcl-services-cache-settings.listcachesettings
      outputParameters:
      - type: object
        mapping: $.
    - name: create-cache-settings
      description: Create cache settings
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: vcl-services-cache-settings.createcachesettings
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.