HashiCorp Nomad · Capability

HashiCorp Nomad HTTP API — Allocations

HashiCorp Nomad HTTP API — Allocations. 4 operations. Lead operation: Read allocation. Self-contained Naftiko capability covering one Hashicorp Nomad business surface.

Run with Naftiko Hashicorp NomadAllocations

What You Can Do

GET
Get — Read allocation
/v1/allocation/{alloc-id}
GET
Get — List allocations
/v1/allocations
GET
Get — List job allocations
/v1/job/{job-id}/allocations
GET
Get — List node allocations
/v1/node/{node-id}/allocations

MCP Tools

read-allocation

Read allocation

read-only idempotent
list-allocations

List allocations

read-only idempotent
list-job-allocations

List job allocations

read-only idempotent
list-node-allocations

List node allocations

read-only idempotent

Capability Spec

hashicorp-nomad-allocations.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: HashiCorp Nomad HTTP API — Allocations
  description: 'HashiCorp Nomad HTTP API — Allocations. 4 operations. Lead operation: Read allocation. Self-contained Naftiko
    capability covering one Hashicorp Nomad business surface.'
  tags:
  - Hashicorp Nomad
  - Allocations
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    HASHICORP_NOMAD_API_KEY: HASHICORP_NOMAD_API_KEY
capability:
  consumes:
  - type: http
    namespace: hashicorp-nomad-allocations
    baseUri: http://127.0.0.1:4646/v1
    description: HashiCorp Nomad HTTP API — Allocations business capability. Self-contained, no shared references.
    resources:
    - name: allocation-alloc_id
      path: /allocation/{alloc_id}
      operations:
      - name: get
        method: GET
        description: Read allocation
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: allocations
      path: /allocations
      operations:
      - name: get
        method: GET
        description: List allocations
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: job-job_id-allocations
      path: /job/{job_id}/allocations
      operations:
      - name: get
        method: GET
        description: List job allocations
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: node-node_id-allocations
      path: /node/{node_id}/allocations
      operations:
      - name: get
        method: GET
        description: List node allocations
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.HASHICORP_NOMAD_API_KEY}}'
  exposes:
  - type: rest
    namespace: hashicorp-nomad-allocations-rest
    port: 8080
    description: REST adapter for HashiCorp Nomad HTTP API — Allocations. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/allocation/{alloc-id}
      name: allocation-alloc-id
      description: REST surface for allocation-alloc_id.
      operations:
      - method: GET
        name: get
        description: Read allocation
        call: hashicorp-nomad-allocations.get
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/allocations
      name: allocations
      description: REST surface for allocations.
      operations:
      - method: GET
        name: get
        description: List allocations
        call: hashicorp-nomad-allocations.get
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/job/{job-id}/allocations
      name: job-job-id-allocations
      description: REST surface for job-job_id-allocations.
      operations:
      - method: GET
        name: get
        description: List job allocations
        call: hashicorp-nomad-allocations.get
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/node/{node-id}/allocations
      name: node-node-id-allocations
      description: REST surface for node-node_id-allocations.
      operations:
      - method: GET
        name: get
        description: List node allocations
        call: hashicorp-nomad-allocations.get
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: hashicorp-nomad-allocations-mcp
    port: 9090
    transport: http
    description: MCP adapter for HashiCorp Nomad HTTP API — Allocations. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: read-allocation
      description: Read allocation
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: hashicorp-nomad-allocations.get
      outputParameters:
      - type: object
        mapping: $.
    - name: list-allocations
      description: List allocations
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: hashicorp-nomad-allocations.get
      outputParameters:
      - type: object
        mapping: $.
    - name: list-job-allocations
      description: List job allocations
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: hashicorp-nomad-allocations.get
      outputParameters:
      - type: object
        mapping: $.
    - name: list-node-allocations
      description: List node allocations
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: hashicorp-nomad-allocations.get
      outputParameters:
      - type: object
        mapping: $.