naftiko: 1.0.0-alpha2 info: label: Togai Apis — Jobs description: 'Togai Apis — Jobs. 5 operations. Lead operation: List Jobs. Self-contained Naftiko capability covering one Togai business surface.' tags: - Togai - Jobs created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: TOGAI_API_KEY: TOGAI_API_KEY capability: consumes: - type: http namespace: togai-jobs baseUri: https://api.togai.com description: Togai Apis — Jobs business capability. Self-contained, no shared references. resources: - name: jobs path: /jobs operations: - name: getjobs method: GET description: List Jobs outputRawFormat: json outputParameters: - name: result type: object value: $. - name: jobs-job_id path: /jobs/{job_id} operations: - name: getjobstatus method: GET description: Get the Status of a Job outputRawFormat: json outputParameters: - name: result type: object value: $. - name: jobs-job_id-confirm path: /jobs/{job_id}/confirm operations: - name: confirmjob method: POST description: Confirm a Job outputRawFormat: json outputParameters: - name: result type: object value: $. - name: jobs-job_id-entries path: /jobs/{job_id}/entries operations: - name: getjobentries method: GET description: List Job Entries outputRawFormat: json outputParameters: - name: result type: object value: $. - name: jobs-job_id-reject path: /jobs/{job_id}/reject operations: - name: rejectjob method: POST description: Reject a Job outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.TOGAI_API_KEY}}' exposes: - type: rest namespace: togai-jobs-rest port: 8080 description: REST adapter for Togai Apis — Jobs. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/jobs name: jobs description: REST surface for jobs. operations: - method: GET name: getjobs description: List Jobs call: togai-jobs.getjobs outputParameters: - type: object mapping: $. - path: /v1/jobs/{job-id} name: jobs-job-id description: REST surface for jobs-job_id. operations: - method: GET name: getjobstatus description: Get the Status of a Job call: togai-jobs.getjobstatus outputParameters: - type: object mapping: $. - path: /v1/jobs/{job-id}/confirm name: jobs-job-id-confirm description: REST surface for jobs-job_id-confirm. operations: - method: POST name: confirmjob description: Confirm a Job call: togai-jobs.confirmjob outputParameters: - type: object mapping: $. - path: /v1/jobs/{job-id}/entries name: jobs-job-id-entries description: REST surface for jobs-job_id-entries. operations: - method: GET name: getjobentries description: List Job Entries call: togai-jobs.getjobentries outputParameters: - type: object mapping: $. - path: /v1/jobs/{job-id}/reject name: jobs-job-id-reject description: REST surface for jobs-job_id-reject. operations: - method: POST name: rejectjob description: Reject a Job call: togai-jobs.rejectjob outputParameters: - type: object mapping: $. - type: mcp namespace: togai-jobs-mcp port: 9090 transport: http description: MCP adapter for Togai Apis — Jobs. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-jobs description: List Jobs hints: readOnly: true destructive: false idempotent: true call: togai-jobs.getjobs outputParameters: - type: object mapping: $. - name: get-status-job description: Get the Status of a Job hints: readOnly: true destructive: false idempotent: true call: togai-jobs.getjobstatus outputParameters: - type: object mapping: $. - name: confirm-job description: Confirm a Job hints: readOnly: false destructive: false idempotent: false call: togai-jobs.confirmjob outputParameters: - type: object mapping: $. - name: list-job-entries description: List Job Entries hints: readOnly: true destructive: false idempotent: true call: togai-jobs.getjobentries outputParameters: - type: object mapping: $. - name: reject-job description: Reject a Job hints: readOnly: false destructive: false idempotent: false call: togai-jobs.rejectjob outputParameters: - type: object mapping: $.