naftiko: 1.0.0-alpha2 info: label: HashiCorp Nomad HTTP API — Nodes description: 'HashiCorp Nomad HTTP API — Nodes. 7 operations. Lead operation: Read node. Self-contained Naftiko capability covering one Hashicorp Nomad business surface.' tags: - Hashicorp Nomad - Nodes 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-nodes baseUri: http://127.0.0.1:4646/v1 description: HashiCorp Nomad HTTP API — Nodes business capability. Self-contained, no shared references. resources: - name: node-node_id path: /node/{node_id} operations: - name: get method: GET description: Read node 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: $. - name: node-node_id-drain path: /node/{node_id}/drain operations: - name: post method: POST description: Toggle node drain outputRawFormat: json outputParameters: - name: result type: object value: $. - name: node-node_id-eligibility path: /node/{node_id}/eligibility operations: - name: post method: POST description: Toggle node eligibility outputRawFormat: json outputParameters: - name: result type: object value: $. - name: node-node_id-evaluate path: /node/{node_id}/evaluate operations: - name: post method: POST description: Create node evaluation outputRawFormat: json outputParameters: - name: result type: object value: $. - name: node-node_id-purge path: /node/{node_id}/purge operations: - name: post method: POST description: Purge node outputRawFormat: json outputParameters: - name: result type: object value: $. - name: nodes path: /nodes operations: - name: get method: GET description: List nodes outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.HASHICORP_NOMAD_API_KEY}}' exposes: - type: rest namespace: hashicorp-nomad-nodes-rest port: 8080 description: REST adapter for HashiCorp Nomad HTTP API — Nodes. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/node/{node-id} name: node-node-id description: REST surface for node-node_id. operations: - method: GET name: get description: Read node call: hashicorp-nomad-nodes.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-nodes.get outputParameters: - type: object mapping: $. - path: /v1/node/{node-id}/drain name: node-node-id-drain description: REST surface for node-node_id-drain. operations: - method: POST name: post description: Toggle node drain call: hashicorp-nomad-nodes.post outputParameters: - type: object mapping: $. - path: /v1/node/{node-id}/eligibility name: node-node-id-eligibility description: REST surface for node-node_id-eligibility. operations: - method: POST name: post description: Toggle node eligibility call: hashicorp-nomad-nodes.post outputParameters: - type: object mapping: $. - path: /v1/node/{node-id}/evaluate name: node-node-id-evaluate description: REST surface for node-node_id-evaluate. operations: - method: POST name: post description: Create node evaluation call: hashicorp-nomad-nodes.post outputParameters: - type: object mapping: $. - path: /v1/node/{node-id}/purge name: node-node-id-purge description: REST surface for node-node_id-purge. operations: - method: POST name: post description: Purge node call: hashicorp-nomad-nodes.post outputParameters: - type: object mapping: $. - path: /v1/nodes name: nodes description: REST surface for nodes. operations: - method: GET name: get description: List nodes call: hashicorp-nomad-nodes.get outputParameters: - type: object mapping: $. - type: mcp namespace: hashicorp-nomad-nodes-mcp port: 9090 transport: http description: MCP adapter for HashiCorp Nomad HTTP API — Nodes. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: read-node description: Read node hints: readOnly: true destructive: false idempotent: true call: hashicorp-nomad-nodes.get outputParameters: - type: object mapping: $. - name: list-node-allocations description: List node allocations hints: readOnly: true destructive: false idempotent: true call: hashicorp-nomad-nodes.get outputParameters: - type: object mapping: $. - name: toggle-node-drain description: Toggle node drain hints: readOnly: false destructive: false idempotent: false call: hashicorp-nomad-nodes.post outputParameters: - type: object mapping: $. - name: toggle-node-eligibility description: Toggle node eligibility hints: readOnly: false destructive: false idempotent: false call: hashicorp-nomad-nodes.post outputParameters: - type: object mapping: $. - name: create-node-evaluation description: Create node evaluation hints: readOnly: false destructive: false idempotent: false call: hashicorp-nomad-nodes.post outputParameters: - type: object mapping: $. - name: purge-node description: Purge node hints: readOnly: false destructive: false idempotent: false call: hashicorp-nomad-nodes.post outputParameters: - type: object mapping: $. - name: list-nodes description: List nodes hints: readOnly: true destructive: false idempotent: true call: hashicorp-nomad-nodes.get outputParameters: - type: object mapping: $.