Hetzner · Capability

Hetzner Cloud API — Floating IPs

Hetzner Cloud API — Floating IPs. 5 operations. Lead operation: List Floating IPs. Self-contained Naftiko capability covering one Hetzner business surface.

Run with Naftiko HetznerFloating IPs

What You Can Do

GET
Listfloatingips — List Floating IPs
/v1/floating-ips
POST
Createfloatingip — Create a Floating IP
/v1/floating-ips
GET
Getfloatingip — Get a Floating IP
/v1/floating-ips/{id}
PUT
Updatefloatingip — Update a Floating IP
/v1/floating-ips/{id}
DELETE
Deletefloatingip — Delete a Floating IP
/v1/floating-ips/{id}

MCP Tools

list-floating-ips

List Floating IPs

read-only idempotent
create-floating-ip

Create a Floating IP

get-floating-ip

Get a Floating IP

read-only idempotent
update-floating-ip

Update a Floating IP

idempotent
delete-floating-ip

Delete a Floating IP

idempotent

Capability Spec

hetzner-floating-ips.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Hetzner Cloud API — Floating IPs
  description: 'Hetzner Cloud API — Floating IPs. 5 operations. Lead operation: List Floating IPs. Self-contained Naftiko
    capability covering one Hetzner business surface.'
  tags:
  - Hetzner
  - Floating IPs
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    HETZNER_API_KEY: HETZNER_API_KEY
capability:
  consumes:
  - type: http
    namespace: hetzner-floating-ips
    baseUri: https://api.hetzner.cloud/v1
    description: Hetzner Cloud API — Floating IPs business capability. Self-contained, no shared references.
    resources:
    - name: floating_ips
      path: /floating_ips
      operations:
      - name: listfloatingips
        method: GET
        description: List Floating IPs
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: name
          in: query
          type: string
          description: Filter resources by their name.
        - name: label_selector
          in: query
          type: string
          description: Filter resources by labels.
        - name: sort
          in: query
          type: array
          description: Sort resources by field and direction. 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: createfloatingip
        method: POST
        description: Create a Floating IP
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: floating_ips-id
      path: /floating_ips/{id}
      operations:
      - name: getfloatingip
        method: GET
        description: Get a Floating IP
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: integer
          description: ID of the Floating IP.
          required: true
      - name: updatefloatingip
        method: PUT
        description: Update a Floating IP
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: integer
          description: ID of the Floating IP.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deletefloatingip
        method: DELETE
        description: Delete a Floating IP
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: integer
          description: ID of the Floating IP.
          required: true
    authentication:
      type: bearer
      token: '{{env.HETZNER_API_KEY}}'
  exposes:
  - type: rest
    namespace: hetzner-floating-ips-rest
    port: 8080
    description: REST adapter for Hetzner Cloud API — Floating IPs. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/floating-ips
      name: floating-ips
      description: REST surface for floating_ips.
      operations:
      - method: GET
        name: listfloatingips
        description: List Floating IPs
        call: hetzner-floating-ips.listfloatingips
        with:
          name: rest.name
          label_selector: rest.label_selector
          sort: rest.sort
          page: rest.page
          per_page: rest.per_page
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createfloatingip
        description: Create a Floating IP
        call: hetzner-floating-ips.createfloatingip
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/floating-ips/{id}
      name: floating-ips-id
      description: REST surface for floating_ips-id.
      operations:
      - method: GET
        name: getfloatingip
        description: Get a Floating IP
        call: hetzner-floating-ips.getfloatingip
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatefloatingip
        description: Update a Floating IP
        call: hetzner-floating-ips.updatefloatingip
        with:
          id: rest.id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletefloatingip
        description: Delete a Floating IP
        call: hetzner-floating-ips.deletefloatingip
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: hetzner-floating-ips-mcp
    port: 9090
    transport: http
    description: MCP adapter for Hetzner Cloud API — Floating IPs. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: list-floating-ips
      description: List Floating IPs
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: hetzner-floating-ips.listfloatingips
      with:
        name: tools.name
        label_selector: tools.label_selector
        sort: tools.sort
        page: tools.page
        per_page: tools.per_page
      outputParameters:
      - type: object
        mapping: $.
    - name: create-floating-ip
      description: Create a Floating IP
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: hetzner-floating-ips.createfloatingip
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-floating-ip
      description: Get a Floating IP
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: hetzner-floating-ips.getfloatingip
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.
    - name: update-floating-ip
      description: Update a Floating IP
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: hetzner-floating-ips.updatefloatingip
      with:
        id: tools.id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-floating-ip
      description: Delete a Floating IP
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: hetzner-floating-ips.deletefloatingip
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.