naftiko: 1.0.0-alpha2 info: label: Couchbase Analytics Service REST API — Analytics Library description: 'Couchbase Analytics Service REST API — Analytics Library. 2 operations. Lead operation: Create or update a library. Self-contained Naftiko capability covering one Couchbase business surface.' tags: - Couchbase - Analytics Library created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: COUCHBASE_API_KEY: COUCHBASE_API_KEY capability: consumes: - type: http namespace: analytics-service-rest-analytics-library baseUri: https://localhost:8095 description: Couchbase Analytics Service REST API — Analytics Library business capability. Self-contained, no shared references. resources: - name: analytics-library-scope-name path: /analytics/library/{scope}/{name} operations: - name: createorupdatelibrary method: PUT description: Create or update a library outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: scope in: path type: string description: The scope of the library required: true - name: name in: path type: string description: The name of the library required: true - name: body in: body type: object description: Request body (JSON). required: true - name: deletelibrary method: DELETE description: Delete a library outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: scope in: path type: string description: The scope of the library required: true - name: name in: path type: string description: The name of the library required: true authentication: type: basic username: '{{env.COUCHBASE_USER}}' password: '{{env.COUCHBASE_PASS}}' exposes: - type: rest namespace: analytics-service-rest-analytics-library-rest port: 8080 description: REST adapter for Couchbase Analytics Service REST API — Analytics Library. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/analytics/library/{scope}/{name} name: analytics-library-scope-name description: REST surface for analytics-library-scope-name. operations: - method: PUT name: createorupdatelibrary description: Create or update a library call: analytics-service-rest-analytics-library.createorupdatelibrary with: scope: rest.scope name: rest.name body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletelibrary description: Delete a library call: analytics-service-rest-analytics-library.deletelibrary with: scope: rest.scope name: rest.name outputParameters: - type: object mapping: $. - type: mcp namespace: analytics-service-rest-analytics-library-mcp port: 9090 transport: http description: MCP adapter for Couchbase Analytics Service REST API — Analytics Library. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: create-update-library description: Create or update a library hints: readOnly: false destructive: false idempotent: true call: analytics-service-rest-analytics-library.createorupdatelibrary with: scope: tools.scope name: tools.name body: tools.body outputParameters: - type: object mapping: $. - name: delete-library description: Delete a library hints: readOnly: false destructive: true idempotent: true call: analytics-service-rest-analytics-library.deletelibrary with: scope: tools.scope name: tools.name outputParameters: - type: object mapping: $.