naftiko: 1.0.0-alpha2 info: label: Contentstack Automate Management API — Automations description: 'Contentstack Automate Management API — Automations. 4 operations. Lead operation: Get all automations. Self-contained Naftiko capability covering one Contentstack business surface.' tags: - Contentstack - Automations created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: CONTENTSTACK_API_KEY: CONTENTSTACK_API_KEY capability: consumes: - type: http namespace: automate-management-automations baseUri: https://automations-api.contentstack.com description: Contentstack Automate Management API — Automations business capability. Self-contained, no shared references. resources: - name: v1-organizations-organization_uid-projects-project_uid-automations path: /v1/organizations/{organization_uid}/projects/{project_uid}/automations operations: - name: getallautomations method: GET description: Get all automations outputRawFormat: json outputParameters: - name: result type: object value: $. - name: v1-organizations-organization_uid-projects-project_uid-automations-automation_ui path: /v1/organizations/{organization_uid}/projects/{project_uid}/automations/{automation_uid} operations: - name: getautomation method: GET description: Get an automation outputRawFormat: json outputParameters: - name: result type: object value: $. - name: v1-organizations-organization_uid-projects-project_uid-automations-automation_ui path: /v1/organizations/{organization_uid}/projects/{project_uid}/automations/{automation_uid}/activate operations: - name: activateautomation method: PUT description: Activate an automation outputRawFormat: json outputParameters: - name: result type: object value: $. - name: v1-organizations-organization_uid-projects-project_uid-automations-automation_ui path: /v1/organizations/{organization_uid}/projects/{project_uid}/automations/{automation_uid}/deactivate operations: - name: deactivateautomation method: PUT description: Deactivate an automation outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.CONTENTSTACK_API_KEY}}' exposes: - type: rest namespace: automate-management-automations-rest port: 8080 description: REST adapter for Contentstack Automate Management API — Automations. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/v1/organizations/{organization-uid}/projects/{project-uid}/automations name: v1-organizations-organization-uid-projects-project-uid-automations description: REST surface for v1-organizations-organization_uid-projects-project_uid-automations. operations: - method: GET name: getallautomations description: Get all automations call: automate-management-automations.getallautomations outputParameters: - type: object mapping: $. - path: /v1/v1/organizations/{organization-uid}/projects/{project-uid}/automations/{automation-uid} name: v1-organizations-organization-uid-projects-project-uid-automations-automation-ui description: REST surface for v1-organizations-organization_uid-projects-project_uid-automations-automation_ui. operations: - method: GET name: getautomation description: Get an automation call: automate-management-automations.getautomation outputParameters: - type: object mapping: $. - path: /v1/v1/organizations/{organization-uid}/projects/{project-uid}/automations/{automation-uid}/activate name: v1-organizations-organization-uid-projects-project-uid-automations-automation-ui description: REST surface for v1-organizations-organization_uid-projects-project_uid-automations-automation_ui. operations: - method: PUT name: activateautomation description: Activate an automation call: automate-management-automations.activateautomation outputParameters: - type: object mapping: $. - path: /v1/v1/organizations/{organization-uid}/projects/{project-uid}/automations/{automation-uid}/deactivate name: v1-organizations-organization-uid-projects-project-uid-automations-automation-ui description: REST surface for v1-organizations-organization_uid-projects-project_uid-automations-automation_ui. operations: - method: PUT name: deactivateautomation description: Deactivate an automation call: automate-management-automations.deactivateautomation outputParameters: - type: object mapping: $. - type: mcp namespace: automate-management-automations-mcp port: 9090 transport: http description: MCP adapter for Contentstack Automate Management API — Automations. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-all-automations description: Get all automations hints: readOnly: true destructive: false idempotent: true call: automate-management-automations.getallautomations outputParameters: - type: object mapping: $. - name: get-automation description: Get an automation hints: readOnly: true destructive: false idempotent: true call: automate-management-automations.getautomation outputParameters: - type: object mapping: $. - name: activate-automation description: Activate an automation hints: readOnly: false destructive: false idempotent: true call: automate-management-automations.activateautomation outputParameters: - type: object mapping: $. - name: deactivate-automation description: Deactivate an automation hints: readOnly: false destructive: false idempotent: true call: automate-management-automations.deactivateautomation outputParameters: - type: object mapping: $.