naftiko: 1.0.0-alpha2 info: label: HashiCorp Nomad HTTP API — Evaluations description: 'HashiCorp Nomad HTTP API — Evaluations. 4 operations. Lead operation: Read an evaluation. Self-contained Naftiko capability covering one Nomad business surface.' tags: - Nomad - Evaluations created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: NOMAD_API_KEY: NOMAD_API_KEY capability: consumes: - type: http namespace: http-evaluations baseUri: http://localhost:4646/v1 description: HashiCorp Nomad HTTP API — Evaluations business capability. Self-contained, no shared references. resources: - name: evaluation-evalID path: /evaluation/{evalID} operations: - name: readevaluation method: GET description: Read an evaluation outputRawFormat: json outputParameters: - name: result type: object value: $. - name: evaluation-evalID-allocations path: /evaluation/{evalID}/allocations operations: - name: listevaluationallocations method: GET description: List allocations for an evaluation outputRawFormat: json outputParameters: - name: result type: object value: $. - name: evaluations path: /evaluations operations: - name: listevaluations method: GET description: List evaluations outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: status in: query type: string description: Filter evaluations by status. - name: job in: query type: string description: Filter evaluations by job ID. - name: evaluations-count path: /evaluations/count operations: - name: countevaluations method: GET description: Count evaluations outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: status in: query type: string description: Filter the count by evaluation status. authentication: type: bearer token: '{{env.NOMAD_API_KEY}}' exposes: - type: rest namespace: http-evaluations-rest port: 8080 description: REST adapter for HashiCorp Nomad HTTP API — Evaluations. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/evaluation/{evalid} name: evaluation-evalid description: REST surface for evaluation-evalID. operations: - method: GET name: readevaluation description: Read an evaluation call: http-evaluations.readevaluation outputParameters: - type: object mapping: $. - path: /v1/evaluation/{evalid}/allocations name: evaluation-evalid-allocations description: REST surface for evaluation-evalID-allocations. operations: - method: GET name: listevaluationallocations description: List allocations for an evaluation call: http-evaluations.listevaluationallocations outputParameters: - type: object mapping: $. - path: /v1/evaluations name: evaluations description: REST surface for evaluations. operations: - method: GET name: listevaluations description: List evaluations call: http-evaluations.listevaluations with: status: rest.status job: rest.job outputParameters: - type: object mapping: $. - path: /v1/evaluations/count name: evaluations-count description: REST surface for evaluations-count. operations: - method: GET name: countevaluations description: Count evaluations call: http-evaluations.countevaluations with: status: rest.status outputParameters: - type: object mapping: $. - type: mcp namespace: http-evaluations-mcp port: 9090 transport: http description: MCP adapter for HashiCorp Nomad HTTP API — Evaluations. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: read-evaluation description: Read an evaluation hints: readOnly: true destructive: false idempotent: true call: http-evaluations.readevaluation outputParameters: - type: object mapping: $. - name: list-allocations-evaluation description: List allocations for an evaluation hints: readOnly: true destructive: false idempotent: true call: http-evaluations.listevaluationallocations outputParameters: - type: object mapping: $. - name: list-evaluations description: List evaluations hints: readOnly: true destructive: false idempotent: true call: http-evaluations.listevaluations with: status: tools.status job: tools.job outputParameters: - type: object mapping: $. - name: count-evaluations description: Count evaluations hints: readOnly: true destructive: false idempotent: true call: http-evaluations.countevaluations with: status: tools.status outputParameters: - type: object mapping: $.