naftiko: 1.0.0-alpha2 info: label: Squillo Platform API — Workflows description: 'Squillo Platform API — Workflows. 8 operations. Lead operation: List Workflows. Self-contained Naftiko capability covering one Squillo business surface.' tags: - Squillo - Workflows created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: SQUILLO_API_KEY: SQUILLO_API_KEY capability: consumes: - type: http namespace: platform-workflows baseUri: https://api.squillo.io/v1 description: Squillo Platform API — Workflows business capability. Self-contained, no shared references. resources: - name: workflows path: /workflows operations: - name: listworkflows method: GET description: List Workflows outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: status in: query type: string description: Filter by workflow status - name: page in: query type: integer - name: limit in: query type: integer - name: createworkflow method: POST description: Create Workflow outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: workflows-workflowId path: /workflows/{workflowId} operations: - name: getworkflow method: GET description: Get Workflow outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updateworkflow method: PUT description: Update Workflow outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: deleteworkflow method: DELETE description: Delete Workflow outputRawFormat: json outputParameters: - name: result type: object value: $. - name: workflows-workflowId-activate path: /workflows/{workflowId}/activate operations: - name: activateworkflow method: POST description: Activate Workflow outputRawFormat: json outputParameters: - name: result type: object value: $. - name: workflows-workflowId-deactivate path: /workflows/{workflowId}/deactivate operations: - name: deactivateworkflow method: POST description: Deactivate Workflow outputRawFormat: json outputParameters: - name: result type: object value: $. - name: workflows-workflowId-execute path: /workflows/{workflowId}/execute operations: - name: executeworkflow method: POST description: Execute Workflow 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.SQUILLO_API_KEY}}' exposes: - type: rest namespace: platform-workflows-rest port: 8080 description: REST adapter for Squillo Platform API — Workflows. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/workflows name: workflows description: REST surface for workflows. operations: - method: GET name: listworkflows description: List Workflows call: platform-workflows.listworkflows with: status: rest.status page: rest.page limit: rest.limit outputParameters: - type: object mapping: $. - method: POST name: createworkflow description: Create Workflow call: platform-workflows.createworkflow with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/workflows/{workflowid} name: workflows-workflowid description: REST surface for workflows-workflowId. operations: - method: GET name: getworkflow description: Get Workflow call: platform-workflows.getworkflow outputParameters: - type: object mapping: $. - method: PUT name: updateworkflow description: Update Workflow call: platform-workflows.updateworkflow with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deleteworkflow description: Delete Workflow call: platform-workflows.deleteworkflow outputParameters: - type: object mapping: $. - path: /v1/workflows/{workflowid}/activate name: workflows-workflowid-activate description: REST surface for workflows-workflowId-activate. operations: - method: POST name: activateworkflow description: Activate Workflow call: platform-workflows.activateworkflow outputParameters: - type: object mapping: $. - path: /v1/workflows/{workflowid}/deactivate name: workflows-workflowid-deactivate description: REST surface for workflows-workflowId-deactivate. operations: - method: POST name: deactivateworkflow description: Deactivate Workflow call: platform-workflows.deactivateworkflow outputParameters: - type: object mapping: $. - path: /v1/workflows/{workflowid}/execute name: workflows-workflowid-execute description: REST surface for workflows-workflowId-execute. operations: - method: POST name: executeworkflow description: Execute Workflow call: platform-workflows.executeworkflow with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: platform-workflows-mcp port: 9090 transport: http description: MCP adapter for Squillo Platform API — Workflows. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-workflows description: List Workflows hints: readOnly: true destructive: false idempotent: true call: platform-workflows.listworkflows with: status: tools.status page: tools.page limit: tools.limit outputParameters: - type: object mapping: $. - name: create-workflow description: Create Workflow hints: readOnly: false destructive: false idempotent: false call: platform-workflows.createworkflow with: body: tools.body outputParameters: - type: object mapping: $. - name: get-workflow description: Get Workflow hints: readOnly: true destructive: false idempotent: true call: platform-workflows.getworkflow outputParameters: - type: object mapping: $. - name: update-workflow description: Update Workflow hints: readOnly: false destructive: false idempotent: true call: platform-workflows.updateworkflow with: body: tools.body outputParameters: - type: object mapping: $. - name: delete-workflow description: Delete Workflow hints: readOnly: false destructive: true idempotent: true call: platform-workflows.deleteworkflow outputParameters: - type: object mapping: $. - name: activate-workflow description: Activate Workflow hints: readOnly: false destructive: false idempotent: false call: platform-workflows.activateworkflow outputParameters: - type: object mapping: $. - name: deactivate-workflow description: Deactivate Workflow hints: readOnly: false destructive: false idempotent: false call: platform-workflows.deactivateworkflow outputParameters: - type: object mapping: $. - name: execute-workflow description: Execute Workflow hints: readOnly: false destructive: false idempotent: false call: platform-workflows.executeworkflow with: body: tools.body outputParameters: - type: object mapping: $.