fastly · Capability

Fastly TLS API — TLS Certificates

Fastly TLS API — TLS Certificates. 5 operations. Lead operation: List TLS certificates. Self-contained Naftiko capability covering one Fastly business surface.

Run with Naftiko FastlyTLS Certificates

What You Can Do

GET
Listtlscertificates — List TLS certificates
/v1/tls/certificates
POST
Createtlscertificate — Create a TLS certificate
/v1/tls/certificates
GET
Gettlscertificate — Get a TLS certificate
/v1/tls/certificates/{tls-certificate-id}
PATCH
Updatetlscertificate — Update a TLS certificate
/v1/tls/certificates/{tls-certificate-id}
DELETE
Deletetlscertificate — Delete a TLS certificate
/v1/tls/certificates/{tls-certificate-id}

MCP Tools

list-tls-certificates

List TLS certificates

read-only idempotent
create-tls-certificate

Create a TLS certificate

get-tls-certificate

Get a TLS certificate

read-only idempotent
update-tls-certificate

Update a TLS certificate

idempotent
delete-tls-certificate

Delete a TLS certificate

idempotent

Capability Spec

tls-tls-certificates.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Fastly TLS API — TLS Certificates
  description: 'Fastly TLS API — TLS Certificates. 5 operations. Lead operation: List TLS certificates. Self-contained Naftiko
    capability covering one Fastly business surface.'
  tags:
  - Fastly
  - TLS Certificates
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    FASTLY_API_KEY: FASTLY_API_KEY
capability:
  consumes:
  - type: http
    namespace: tls-tls-certificates
    baseUri: https://api.fastly.com
    description: Fastly TLS API — TLS Certificates business capability. Self-contained, no shared references.
    resources:
    - name: tls-certificates
      path: /tls/certificates
      operations:
      - name: listtlscertificates
        method: GET
        description: List TLS certificates
        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: filter[tls_domains.id]
          in: query
          type: string
          description: Filter certificates by TLS domain ID.
        - name: sort
          in: query
          type: string
          description: The field to sort results by.
      - name: createtlscertificate
        method: POST
        description: Create a TLS certificate
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: tls-certificates-tls_certificate_id
      path: /tls/certificates/{tls_certificate_id}
      operations:
      - name: gettlscertificate
        method: GET
        description: Get a TLS certificate
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: tls_certificate_id
          in: path
          type: string
          description: The alphanumeric string identifying the TLS certificate.
          required: true
      - name: updatetlscertificate
        method: PATCH
        description: Update a TLS certificate
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: tls_certificate_id
          in: path
          type: string
          description: The alphanumeric string identifying the TLS certificate.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deletetlscertificate
        method: DELETE
        description: Delete a TLS certificate
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: tls_certificate_id
          in: path
          type: string
          description: The alphanumeric string identifying the TLS certificate.
          required: true
    authentication:
      type: apikey
      key: Fastly-Key
      value: '{{env.FASTLY_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: tls-tls-certificates-rest
    port: 8080
    description: REST adapter for Fastly TLS API — TLS Certificates. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/tls/certificates
      name: tls-certificates
      description: REST surface for tls-certificates.
      operations:
      - method: GET
        name: listtlscertificates
        description: List TLS certificates
        call: tls-tls-certificates.listtlscertificates
        with:
          page[number]: rest.page[number]
          page[size]: rest.page[size]
          filter[tls_domains.id]: rest.filter[tls_domains.id]
          sort: rest.sort
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createtlscertificate
        description: Create a TLS certificate
        call: tls-tls-certificates.createtlscertificate
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/tls/certificates/{tls-certificate-id}
      name: tls-certificates-tls-certificate-id
      description: REST surface for tls-certificates-tls_certificate_id.
      operations:
      - method: GET
        name: gettlscertificate
        description: Get a TLS certificate
        call: tls-tls-certificates.gettlscertificate
        with:
          tls_certificate_id: rest.tls_certificate_id
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updatetlscertificate
        description: Update a TLS certificate
        call: tls-tls-certificates.updatetlscertificate
        with:
          tls_certificate_id: rest.tls_certificate_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletetlscertificate
        description: Delete a TLS certificate
        call: tls-tls-certificates.deletetlscertificate
        with:
          tls_certificate_id: rest.tls_certificate_id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: tls-tls-certificates-mcp
    port: 9090
    transport: http
    description: MCP adapter for Fastly TLS API — TLS Certificates. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: list-tls-certificates
      description: List TLS certificates
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: tls-tls-certificates.listtlscertificates
      with:
        page[number]: tools.page[number]
        page[size]: tools.page[size]
        filter[tls_domains.id]: tools.filter[tls_domains.id]
        sort: tools.sort
      outputParameters:
      - type: object
        mapping: $.
    - name: create-tls-certificate
      description: Create a TLS certificate
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: tls-tls-certificates.createtlscertificate
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-tls-certificate
      description: Get a TLS certificate
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: tls-tls-certificates.gettlscertificate
      with:
        tls_certificate_id: tools.tls_certificate_id
      outputParameters:
      - type: object
        mapping: $.
    - name: update-tls-certificate
      description: Update a TLS certificate
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: tls-tls-certificates.updatetlscertificate
      with:
        tls_certificate_id: tools.tls_certificate_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-tls-certificate
      description: Delete a TLS certificate
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: tls-tls-certificates.deletetlscertificate
      with:
        tls_certificate_id: tools.tls_certificate_id
      outputParameters:
      - type: object
        mapping: $.