naftiko: 1.0.0-alpha2 info: label: Qubrid AI Compute API — Instances description: 'Qubrid AI Compute API — Instances. 6 operations. Lead operation: List compute instances. Self-contained Naftiko capability covering one Qubrid Ai business surface.' tags: - Qubrid Ai - Instances created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: QUBRID_AI_API_KEY: QUBRID_AI_API_KEY capability: consumes: - type: http namespace: compute-instances baseUri: https://platform.qubrid.com/api/v1 description: Qubrid AI Compute API — Instances business capability. Self-contained, no shared references. resources: - name: instances path: /instances operations: - name: listinstances method: GET description: List compute instances outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createinstance method: POST description: Create a compute instance outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: instances-instance_id path: /instances/{instance_id} operations: - name: getinstance method: GET description: Retrieve a compute instance outputRawFormat: json outputParameters: - name: result type: object value: $. - name: deleteinstance method: DELETE description: Terminate a compute instance outputRawFormat: json outputParameters: - name: result type: object value: $. - name: instances-instance_id-start path: /instances/{instance_id}/start operations: - name: startinstance method: POST description: Start a compute instance outputRawFormat: json outputParameters: - name: result type: object value: $. - name: instances-instance_id-stop path: /instances/{instance_id}/stop operations: - name: stopinstance method: POST description: Stop a compute instance outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.QUBRID_AI_API_KEY}}' exposes: - type: rest namespace: compute-instances-rest port: 8080 description: REST adapter for Qubrid AI Compute API — Instances. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/instances name: instances description: REST surface for instances. operations: - method: GET name: listinstances description: List compute instances call: compute-instances.listinstances outputParameters: - type: object mapping: $. - method: POST name: createinstance description: Create a compute instance call: compute-instances.createinstance with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/instances/{instance-id} name: instances-instance-id description: REST surface for instances-instance_id. operations: - method: GET name: getinstance description: Retrieve a compute instance call: compute-instances.getinstance outputParameters: - type: object mapping: $. - method: DELETE name: deleteinstance description: Terminate a compute instance call: compute-instances.deleteinstance outputParameters: - type: object mapping: $. - path: /v1/instances/{instance-id}/start name: instances-instance-id-start description: REST surface for instances-instance_id-start. operations: - method: POST name: startinstance description: Start a compute instance call: compute-instances.startinstance outputParameters: - type: object mapping: $. - path: /v1/instances/{instance-id}/stop name: instances-instance-id-stop description: REST surface for instances-instance_id-stop. operations: - method: POST name: stopinstance description: Stop a compute instance call: compute-instances.stopinstance outputParameters: - type: object mapping: $. - type: mcp namespace: compute-instances-mcp port: 9090 transport: http description: MCP adapter for Qubrid AI Compute API — Instances. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-compute-instances description: List compute instances hints: readOnly: true destructive: false idempotent: true call: compute-instances.listinstances outputParameters: - type: object mapping: $. - name: create-compute-instance description: Create a compute instance hints: readOnly: false destructive: false idempotent: false call: compute-instances.createinstance with: body: tools.body outputParameters: - type: object mapping: $. - name: retrieve-compute-instance description: Retrieve a compute instance hints: readOnly: true destructive: false idempotent: true call: compute-instances.getinstance outputParameters: - type: object mapping: $. - name: terminate-compute-instance description: Terminate a compute instance hints: readOnly: false destructive: true idempotent: true call: compute-instances.deleteinstance outputParameters: - type: object mapping: $. - name: start-compute-instance description: Start a compute instance hints: readOnly: false destructive: false idempotent: false call: compute-instances.startinstance outputParameters: - type: object mapping: $. - name: stop-compute-instance description: Stop a compute instance hints: readOnly: false destructive: false idempotent: false call: compute-instances.stopinstance outputParameters: - type: object mapping: $.