HashiCorp Nomad · Capability

HashiCorp Nomad HTTP API — Volumes

HashiCorp Nomad HTTP API — Volumes. 1 operations. Lead operation: List volumes. Self-contained Naftiko capability covering one Nomad business surface.

Run with Naftiko NomadVolumes

What You Can Do

GET
Listvolumes — List volumes
/v1/volumes

MCP Tools

list-volumes

List volumes

read-only idempotent

Capability Spec

http-volumes.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: HashiCorp Nomad HTTP API — Volumes
  description: 'HashiCorp Nomad HTTP API — Volumes. 1 operations. Lead operation: List volumes. Self-contained Naftiko capability
    covering one Nomad business surface.'
  tags:
  - Nomad
  - Volumes
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    NOMAD_API_KEY: NOMAD_API_KEY
capability:
  consumes:
  - type: http
    namespace: http-volumes
    baseUri: http://localhost:4646/v1
    description: HashiCorp Nomad HTTP API — Volumes business capability. Self-contained, no shared references.
    resources:
    - name: volumes
      path: /volumes
      operations:
      - name: listvolumes
        method: GET
        description: List volumes
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: type
          in: query
          type: string
          description: Filter volumes by type (csi or host).
    authentication:
      type: bearer
      token: '{{env.NOMAD_API_KEY}}'
  exposes:
  - type: rest
    namespace: http-volumes-rest
    port: 8080
    description: REST adapter for HashiCorp Nomad HTTP API — Volumes. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/volumes
      name: volumes
      description: REST surface for volumes.
      operations:
      - method: GET
        name: listvolumes
        description: List volumes
        call: http-volumes.listvolumes
        with:
          type: rest.type
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: http-volumes-mcp
    port: 9090
    transport: http
    description: MCP adapter for HashiCorp Nomad HTTP API — Volumes. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: list-volumes
      description: List volumes
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: http-volumes.listvolumes
      with:
        type: tools.type
      outputParameters:
      - type: object
        mapping: $.