naftiko: 1.0.0-alpha2 info: label: Red Hat Ansible Automation Platform API — Job Templates description: 'Red Hat Ansible Automation Platform API — Job Templates. 6 operations. Lead operation: Red Hat List Job Templates. Self-contained Naftiko capability covering one Red Hat business surface.' tags: - Red Hat - Job Templates 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-job-templates baseUri: https://ansible-platform.example.com description: Red Hat Ansible Automation Platform API — Job Templates business capability. Self-contained, no shared references. resources: - name: api-v2-job_templates path: /api/v2/job_templates/ operations: - name: listjobtemplates method: GET description: Red Hat List Job Templates outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createjobtemplate method: POST description: Red Hat Create a Job Template outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: api-v2-job_templates-id path: /api/v2/job_templates/{id}/ operations: - name: getjobtemplate method: GET description: Red Hat Get a Job Template outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updatejobtemplate method: PATCH description: Red Hat Update a Job Template outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: deletejobtemplate method: DELETE description: Red Hat Delete a Job Template outputRawFormat: json outputParameters: - name: result type: object value: $. - name: api-v2-job_templates-id-launch path: /api/v2/job_templates/{id}/launch/ operations: - name: launchjobtemplate method: POST description: Red Hat Launch a Job Template outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false authentication: type: bearer token: '{{env.RED_HAT_API_KEY}}' exposes: - type: rest namespace: ansible-automation-platform-job-templates-rest port: 8080 description: REST adapter for Red Hat Ansible Automation Platform API — Job Templates. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/api/v2/job-templates name: api-v2-job-templates description: REST surface for api-v2-job_templates. operations: - method: GET name: listjobtemplates description: Red Hat List Job Templates call: ansible-automation-platform-job-templates.listjobtemplates outputParameters: - type: object mapping: $. - method: POST name: createjobtemplate description: Red Hat Create a Job Template call: ansible-automation-platform-job-templates.createjobtemplate with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/v2/job-templates/{id} name: api-v2-job-templates-id description: REST surface for api-v2-job_templates-id. operations: - method: GET name: getjobtemplate description: Red Hat Get a Job Template call: ansible-automation-platform-job-templates.getjobtemplate outputParameters: - type: object mapping: $. - method: PATCH name: updatejobtemplate description: Red Hat Update a Job Template call: ansible-automation-platform-job-templates.updatejobtemplate with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletejobtemplate description: Red Hat Delete a Job Template call: ansible-automation-platform-job-templates.deletejobtemplate outputParameters: - type: object mapping: $. - path: /v1/api/v2/job-templates/{id}/launch name: api-v2-job-templates-id-launch description: REST surface for api-v2-job_templates-id-launch. operations: - method: POST name: launchjobtemplate description: Red Hat Launch a Job Template call: ansible-automation-platform-job-templates.launchjobtemplate with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: ansible-automation-platform-job-templates-mcp port: 9090 transport: http description: MCP adapter for Red Hat Ansible Automation Platform API — Job Templates. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: red-hat-list-job-templates description: Red Hat List Job Templates hints: readOnly: true destructive: false idempotent: true call: ansible-automation-platform-job-templates.listjobtemplates outputParameters: - type: object mapping: $. - name: red-hat-create-job-template description: Red Hat Create a Job Template hints: readOnly: false destructive: false idempotent: false call: ansible-automation-platform-job-templates.createjobtemplate with: body: tools.body outputParameters: - type: object mapping: $. - name: red-hat-get-job-template description: Red Hat Get a Job Template hints: readOnly: true destructive: false idempotent: true call: ansible-automation-platform-job-templates.getjobtemplate outputParameters: - type: object mapping: $. - name: red-hat-update-job-template description: Red Hat Update a Job Template hints: readOnly: false destructive: false idempotent: true call: ansible-automation-platform-job-templates.updatejobtemplate with: body: tools.body outputParameters: - type: object mapping: $. - name: red-hat-delete-job-template description: Red Hat Delete a Job Template hints: readOnly: false destructive: true idempotent: true call: ansible-automation-platform-job-templates.deletejobtemplate outputParameters: - type: object mapping: $. - name: red-hat-launch-job-template description: Red Hat Launch a Job Template hints: readOnly: false destructive: false idempotent: false call: ansible-automation-platform-job-templates.launchjobtemplate with: body: tools.body outputParameters: - type: object mapping: $.