Hetzner · Capability

Hetzner Cloud API — Zone Actions

Hetzner Cloud API — Zone Actions. 8 operations. Lead operation: List Actions. Self-contained Naftiko capability covering one Hetzner business surface.

Run with Naftiko HetznerZone Actions

What You Can Do

GET
Listzonesactions — List Actions
/v1/zones/actions
GET
Getzonesaction — Get an Action
/v1/zones/actions/{id}
GET
Listzoneactions — List Actions for a Zone
/v1/zones/{id-or-name}/actions
POST
Changezoneprimarynameservers — Change a Zone's Primary Nameservers
/v1/zones/{id-or-name}/actions/change-primary-nameservers
POST
Changezoneprotection — Change a Zone's Protection
/v1/zones/{id-or-name}/actions/change-protection
POST
Changezonettl — Change a Zone's Default TTL
/v1/zones/{id-or-name}/actions/change-ttl
POST
Importzonezonefile — Import a Zone file
/v1/zones/{id-or-name}/actions/import-zonefile
GET
Getzoneaction — Get an Action for a Zone
/v1/zones/{id-or-name}/actions/{action-id}

MCP Tools

list-actions

List Actions

read-only idempotent
get-action

Get an Action

read-only idempotent
list-actions-zone

List Actions for a Zone

read-only idempotent
change-zone-s-primary-nameservers

Change a Zone's Primary Nameservers

change-zone-s-protection

Change a Zone's Protection

change-zone-s-default-ttl

Change a Zone's Default TTL

import-zone-file

Import a Zone file

get-action-zone

Get an Action for a Zone

read-only idempotent

Capability Spec

hetzner-zone-actions.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Hetzner Cloud API — Zone Actions
  description: 'Hetzner Cloud API — Zone Actions. 8 operations. Lead operation: List Actions. Self-contained Naftiko capability
    covering one Hetzner business surface.'
  tags:
  - Hetzner
  - Zone Actions
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    HETZNER_API_KEY: HETZNER_API_KEY
capability:
  consumes:
  - type: http
    namespace: hetzner-zone-actions
    baseUri: https://api.hetzner.cloud/v1
    description: Hetzner Cloud API — Zone Actions business capability. Self-contained, no shared references.
    resources:
    - name: zones-actions
      path: /zones/actions
      operations:
      - name: listzonesactions
        method: GET
        description: List Actions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: query
          type: array
          description: Filter the actions by ID. May be used multiple times.
        - name: sort
          in: query
          type: array
          description: Sort actions by field and direction. May be used multiple times.
        - name: status
          in: query
          type: array
          description: Filter the actions by status. May be used multiple times.
        - name: page
          in: query
          type: integer
          description: Page number to return. For more information, see "[Pagination](#description/pagination)".
        - name: per_page
          in: query
          type: integer
          description: Maximum number of entries returned per page. For more information, see "[Pagination](#description/pagination)".
    - name: zones-actions-id
      path: /zones/actions/{id}
      operations:
      - name: getzonesaction
        method: GET
        description: Get an Action
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: integer
          description: ID of the Action.
          required: true
    - name: zones-id_or_name-actions
      path: /zones/{id_or_name}/actions
      operations:
      - name: listzoneactions
        method: GET
        description: List Actions for a Zone
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id_or_name
          in: path
          type: string
          description: ID or Name of the Zone.
          required: true
        - name: sort
          in: query
          type: array
          description: Sort actions by field and direction. May be used multiple times.
        - name: status
          in: query
          type: array
          description: Filter the actions by status. May be used multiple times.
        - name: page
          in: query
          type: integer
          description: Page number to return. For more information, see "[Pagination](#description/pagination)".
        - name: per_page
          in: query
          type: integer
          description: Maximum number of entries returned per page. For more information, see "[Pagination](#description/pagination)".
    - name: zones-id_or_name-actions-change_primary_nameservers
      path: /zones/{id_or_name}/actions/change_primary_nameservers
      operations:
      - name: changezoneprimarynameservers
        method: POST
        description: Change a Zone's Primary Nameservers
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id_or_name
          in: path
          type: string
          description: ID or Name of the Zone.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: zones-id_or_name-actions-change_protection
      path: /zones/{id_or_name}/actions/change_protection
      operations:
      - name: changezoneprotection
        method: POST
        description: Change a Zone's Protection
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id_or_name
          in: path
          type: string
          description: ID or Name of the Zone.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: zones-id_or_name-actions-change_ttl
      path: /zones/{id_or_name}/actions/change_ttl
      operations:
      - name: changezonettl
        method: POST
        description: Change a Zone's Default TTL
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id_or_name
          in: path
          type: string
          description: ID or Name of the Zone.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: zones-id_or_name-actions-import_zonefile
      path: /zones/{id_or_name}/actions/import_zonefile
      operations:
      - name: importzonezonefile
        method: POST
        description: Import a Zone file
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id_or_name
          in: path
          type: string
          description: ID or Name of the Zone.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: zones-id_or_name-actions-action_id
      path: /zones/{id_or_name}/actions/{action_id}
      operations:
      - name: getzoneaction
        method: GET
        description: Get an Action for a Zone
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id_or_name
          in: path
          type: string
          description: ID or Name of the Zone.
          required: true
        - name: action_id
          in: path
          type: integer
          description: ID of the Action.
          required: true
    authentication:
      type: bearer
      token: '{{env.HETZNER_API_KEY}}'
  exposes:
  - type: rest
    namespace: hetzner-zone-actions-rest
    port: 8080
    description: REST adapter for Hetzner Cloud API — Zone Actions. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/zones/actions
      name: zones-actions
      description: REST surface for zones-actions.
      operations:
      - method: GET
        name: listzonesactions
        description: List Actions
        call: hetzner-zone-actions.listzonesactions
        with:
          id: rest.id
          sort: rest.sort
          status: rest.status
          page: rest.page
          per_page: rest.per_page
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/zones/actions/{id}
      name: zones-actions-id
      description: REST surface for zones-actions-id.
      operations:
      - method: GET
        name: getzonesaction
        description: Get an Action
        call: hetzner-zone-actions.getzonesaction
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/zones/{id-or-name}/actions
      name: zones-id-or-name-actions
      description: REST surface for zones-id_or_name-actions.
      operations:
      - method: GET
        name: listzoneactions
        description: List Actions for a Zone
        call: hetzner-zone-actions.listzoneactions
        with:
          id_or_name: rest.id_or_name
          sort: rest.sort
          status: rest.status
          page: rest.page
          per_page: rest.per_page
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/zones/{id-or-name}/actions/change-primary-nameservers
      name: zones-id-or-name-actions-change-primary-nameservers
      description: REST surface for zones-id_or_name-actions-change_primary_nameservers.
      operations:
      - method: POST
        name: changezoneprimarynameservers
        description: Change a Zone's Primary Nameservers
        call: hetzner-zone-actions.changezoneprimarynameservers
        with:
          id_or_name: rest.id_or_name
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/zones/{id-or-name}/actions/change-protection
      name: zones-id-or-name-actions-change-protection
      description: REST surface for zones-id_or_name-actions-change_protection.
      operations:
      - method: POST
        name: changezoneprotection
        description: Change a Zone's Protection
        call: hetzner-zone-actions.changezoneprotection
        with:
          id_or_name: rest.id_or_name
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/zones/{id-or-name}/actions/change-ttl
      name: zones-id-or-name-actions-change-ttl
      description: REST surface for zones-id_or_name-actions-change_ttl.
      operations:
      - method: POST
        name: changezonettl
        description: Change a Zone's Default TTL
        call: hetzner-zone-actions.changezonettl
        with:
          id_or_name: rest.id_or_name
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/zones/{id-or-name}/actions/import-zonefile
      name: zones-id-or-name-actions-import-zonefile
      description: REST surface for zones-id_or_name-actions-import_zonefile.
      operations:
      - method: POST
        name: importzonezonefile
        description: Import a Zone file
        call: hetzner-zone-actions.importzonezonefile
        with:
          id_or_name: rest.id_or_name
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/zones/{id-or-name}/actions/{action-id}
      name: zones-id-or-name-actions-action-id
      description: REST surface for zones-id_or_name-actions-action_id.
      operations:
      - method: GET
        name: getzoneaction
        description: Get an Action for a Zone
        call: hetzner-zone-actions.getzoneaction
        with:
          id_or_name: rest.id_or_name
          action_id: rest.action_id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: hetzner-zone-actions-mcp
    port: 9090
    transport: http
    description: MCP adapter for Hetzner Cloud API — Zone Actions. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: list-actions
      description: List Actions
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: hetzner-zone-actions.listzonesactions
      with:
        id: tools.id
        sort: tools.sort
        status: tools.status
        page: tools.page
        per_page: tools.per_page
      outputParameters:
      - type: object
        mapping: $.
    - name: get-action
      description: Get an Action
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: hetzner-zone-actions.getzonesaction
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.
    - name: list-actions-zone
      description: List Actions for a Zone
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: hetzner-zone-actions.listzoneactions
      with:
        id_or_name: tools.id_or_name
        sort: tools.sort
        status: tools.status
        page: tools.page
        per_page: tools.per_page
      outputParameters:
      - type: object
        mapping: $.
    - name: change-zone-s-primary-nameservers
      description: Change a Zone's Primary Nameservers
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: hetzner-zone-actions.changezoneprimarynameservers
      with:
        id_or_name: tools.id_or_name
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: change-zone-s-protection
      description: Change a Zone's Protection
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: hetzner-zone-actions.changezoneprotection
      with:
        id_or_name: tools.id_or_name
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: change-zone-s-default-ttl
      description: Change a Zone's Default TTL
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: hetzner-zone-actions.changezonettl
      with:
        id_or_name: tools.id_or_name
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: import-zone-file
      description: Import a Zone file
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: hetzner-zone-actions.importzonezonefile
      with:
        id_or_name: tools.id_or_name
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-action-zone
      description: Get an Action for a Zone
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: hetzner-zone-actions.getzoneaction
      with:
        id_or_name: tools.id_or_name
        action_id: tools.action_id
      outputParameters:
      - type: object
        mapping: $.