Hetzner · Capability

Hetzner Cloud API — Server Types

Hetzner Cloud API — Server Types. 2 operations. Lead operation: List Server Types. Self-contained Naftiko capability covering one Hetzner business surface.

Run with Naftiko HetznerServer Types

What You Can Do

GET
Listservertypes — List Server Types
/v1/server-types
GET
Getservertype — Get a Server Type
/v1/server-types/{id}

MCP Tools

list-server-types

List Server Types

read-only idempotent
get-server-type

Get a Server Type

read-only idempotent

Capability Spec

hetzner-server-types.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Hetzner Cloud API — Server Types
  description: 'Hetzner Cloud API — Server Types. 2 operations. Lead operation: List Server Types. Self-contained Naftiko
    capability covering one Hetzner business surface.'
  tags:
  - Hetzner
  - Server Types
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    HETZNER_API_KEY: HETZNER_API_KEY
capability:
  consumes:
  - type: http
    namespace: hetzner-server-types
    baseUri: https://api.hetzner.cloud/v1
    description: Hetzner Cloud API — Server Types business capability. Self-contained, no shared references.
    resources:
    - name: server_types
      path: /server_types
      operations:
      - name: listservertypes
        method: GET
        description: List Server Types
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: name
          in: query
          type: string
          description: Filter resources by their name.
        - 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: server_types-id
      path: /server_types/{id}
      operations:
      - name: getservertype
        method: GET
        description: Get a Server Type
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: integer
          description: ID of the Server Type.
          required: true
    authentication:
      type: bearer
      token: '{{env.HETZNER_API_KEY}}'
  exposes:
  - type: rest
    namespace: hetzner-server-types-rest
    port: 8080
    description: REST adapter for Hetzner Cloud API — Server Types. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/server-types
      name: server-types
      description: REST surface for server_types.
      operations:
      - method: GET
        name: listservertypes
        description: List Server Types
        call: hetzner-server-types.listservertypes
        with:
          name: rest.name
          page: rest.page
          per_page: rest.per_page
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/server-types/{id}
      name: server-types-id
      description: REST surface for server_types-id.
      operations:
      - method: GET
        name: getservertype
        description: Get a Server Type
        call: hetzner-server-types.getservertype
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: hetzner-server-types-mcp
    port: 9090
    transport: http
    description: MCP adapter for Hetzner Cloud API — Server Types. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: list-server-types
      description: List Server Types
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: hetzner-server-types.listservertypes
      with:
        name: tools.name
        page: tools.page
        per_page: tools.per_page
      outputParameters:
      - type: object
        mapping: $.
    - name: get-server-type
      description: Get a Server Type
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: hetzner-server-types.getservertype
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.