naftiko: 1.0.0-alpha2 info: label: Humanitec API — AutomationRule description: 'Humanitec API — AutomationRule. 5 operations. Lead operation: List all Automation Rules in an Environment.. Self-contained Naftiko capability covering one Humanitec business surface.' tags: - Humanitec - AutomationRule created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: HUMANITEC_API_KEY: HUMANITEC_API_KEY capability: consumes: - type: http namespace: humanitec-automationrule baseUri: https://api.humanitec.io description: Humanitec API — AutomationRule business capability. Self-contained, no shared references. resources: - name: orgs-orgId-apps-appId-envs-envId-rules path: /orgs/{orgId}/apps/{appId}/envs/{envId}/rules operations: - name: listautomationrules method: GET description: List all Automation Rules in an Environment. outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createautomationrule method: POST description: Create a new Automation Rule for an Environment. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: orgs-orgId-apps-appId-envs-envId-rules-ruleId path: /orgs/{orgId}/apps/{appId}/envs/{envId}/rules/{ruleId} operations: - name: getautomationrule method: GET description: Get a specific Automation Rule for an Environment. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: ruleId in: path type: string description: The Automation Rule ID. required: true - name: updateautomationrule method: PUT description: Update an existing Automation Rule for an Environment. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: ruleId in: path type: string description: The Automation Rule ID. required: true - name: body in: body type: object description: Request body (JSON). required: true - name: deleteautomationrule method: DELETE description: Delete Automation Rule from an Environment. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: ruleId in: path type: string description: The Automation Rule ID. required: true exposes: - type: rest namespace: humanitec-automationrule-rest port: 8080 description: REST adapter for Humanitec API — AutomationRule. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/orgs/{orgid}/apps/{appid}/envs/{envid}/rules name: orgs-orgid-apps-appid-envs-envid-rules description: REST surface for orgs-orgId-apps-appId-envs-envId-rules. operations: - method: GET name: listautomationrules description: List all Automation Rules in an Environment. call: humanitec-automationrule.listautomationrules outputParameters: - type: object mapping: $. - method: POST name: createautomationrule description: Create a new Automation Rule for an Environment. call: humanitec-automationrule.createautomationrule with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/orgs/{orgid}/apps/{appid}/envs/{envid}/rules/{ruleid} name: orgs-orgid-apps-appid-envs-envid-rules-ruleid description: REST surface for orgs-orgId-apps-appId-envs-envId-rules-ruleId. operations: - method: GET name: getautomationrule description: Get a specific Automation Rule for an Environment. call: humanitec-automationrule.getautomationrule with: ruleId: rest.ruleId outputParameters: - type: object mapping: $. - method: PUT name: updateautomationrule description: Update an existing Automation Rule for an Environment. call: humanitec-automationrule.updateautomationrule with: ruleId: rest.ruleId body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deleteautomationrule description: Delete Automation Rule from an Environment. call: humanitec-automationrule.deleteautomationrule with: ruleId: rest.ruleId outputParameters: - type: object mapping: $. - type: mcp namespace: humanitec-automationrule-mcp port: 9090 transport: http description: MCP adapter for Humanitec API — AutomationRule. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-all-automation-rules-environment description: List all Automation Rules in an Environment. hints: readOnly: true destructive: false idempotent: true call: humanitec-automationrule.listautomationrules outputParameters: - type: object mapping: $. - name: create-new-automation-rule-environment description: Create a new Automation Rule for an Environment. hints: readOnly: false destructive: false idempotent: false call: humanitec-automationrule.createautomationrule with: body: tools.body outputParameters: - type: object mapping: $. - name: get-specific-automation-rule-environment description: Get a specific Automation Rule for an Environment. hints: readOnly: true destructive: false idempotent: true call: humanitec-automationrule.getautomationrule with: ruleId: tools.ruleId outputParameters: - type: object mapping: $. - name: update-existing-automation-rule-environment description: Update an existing Automation Rule for an Environment. hints: readOnly: false destructive: false idempotent: true call: humanitec-automationrule.updateautomationrule with: ruleId: tools.ruleId body: tools.body outputParameters: - type: object mapping: $. - name: delete-automation-rule-environment description: Delete Automation Rule from an Environment. hints: readOnly: false destructive: true idempotent: true call: humanitec-automationrule.deleteautomationrule with: ruleId: tools.ruleId outputParameters: - type: object mapping: $.