naftiko: 1.0.0-alpha2 info: label: Red Hat Ansible Automation Platform API — Jobs description: 'Red Hat Ansible Automation Platform API — Jobs. 3 operations. Lead operation: Red Hat List Jobs. Self-contained Naftiko capability covering one Red Hat business surface.' tags: - Red Hat - Jobs created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: RED_HAT_API_KEY: RED_HAT_API_KEY capability: consumes: - type: http namespace: ansible-automation-platform-jobs baseUri: https://ansible-platform.example.com description: Red Hat Ansible Automation Platform API — Jobs business capability. Self-contained, no shared references. resources: - name: api-v2-jobs path: /api/v2/jobs/ operations: - name: listjobs method: GET description: Red Hat List Jobs outputRawFormat: json outputParameters: - name: result type: object value: $. - name: api-v2-jobs-id path: /api/v2/jobs/{id}/ operations: - name: getjob method: GET description: Red Hat Get a Job outputRawFormat: json outputParameters: - name: result type: object value: $. - name: api-v2-jobs-id-cancel path: /api/v2/jobs/{id}/cancel/ operations: - name: canceljob method: POST description: Red Hat Cancel a Job outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.RED_HAT_API_KEY}}' exposes: - type: rest namespace: ansible-automation-platform-jobs-rest port: 8080 description: REST adapter for Red Hat Ansible Automation Platform API — Jobs. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/api/v2/jobs name: api-v2-jobs description: REST surface for api-v2-jobs. operations: - method: GET name: listjobs description: Red Hat List Jobs call: ansible-automation-platform-jobs.listjobs outputParameters: - type: object mapping: $. - path: /v1/api/v2/jobs/{id} name: api-v2-jobs-id description: REST surface for api-v2-jobs-id. operations: - method: GET name: getjob description: Red Hat Get a Job call: ansible-automation-platform-jobs.getjob outputParameters: - type: object mapping: $. - path: /v1/api/v2/jobs/{id}/cancel name: api-v2-jobs-id-cancel description: REST surface for api-v2-jobs-id-cancel. operations: - method: POST name: canceljob description: Red Hat Cancel a Job call: ansible-automation-platform-jobs.canceljob outputParameters: - type: object mapping: $. - type: mcp namespace: ansible-automation-platform-jobs-mcp port: 9090 transport: http description: MCP adapter for Red Hat Ansible Automation Platform API — Jobs. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: red-hat-list-jobs description: Red Hat List Jobs hints: readOnly: true destructive: false idempotent: true call: ansible-automation-platform-jobs.listjobs outputParameters: - type: object mapping: $. - name: red-hat-get-job description: Red Hat Get a Job hints: readOnly: true destructive: false idempotent: true call: ansible-automation-platform-jobs.getjob outputParameters: - type: object mapping: $. - name: red-hat-cancel-job description: Red Hat Cancel a Job hints: readOnly: false destructive: false idempotent: false call: ansible-automation-platform-jobs.canceljob outputParameters: - type: object mapping: $.