naftiko: 1.0.0-alpha2 info: label: RapidAPI Hub API — Collections description: 'RapidAPI Hub API — Collections. 2 operations. Lead operation: List curated collections. Self-contained Naftiko capability covering one Rapidapi business surface.' tags: - Rapidapi - Collections created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: RAPIDAPI_API_KEY: RAPIDAPI_API_KEY capability: consumes: - type: http namespace: hub-collections baseUri: https://rapidapi.com description: RapidAPI Hub API — Collections business capability. Self-contained, no shared references. resources: - name: collections path: /collections operations: - name: listhubcollections method: GET description: List curated collections outputRawFormat: json outputParameters: - name: result type: object value: $. - name: collections-collectionId-apis path: /collections/{collectionId}/apis operations: - name: listapisincollection method: GET description: List APIs in a collection outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: collectionId in: path type: string description: The unique identifier of the collection required: true authentication: type: apikey key: X-RapidAPI-Key value: '{{env.RAPIDAPI_API_KEY}}' placement: header exposes: - type: rest namespace: hub-collections-rest port: 8080 description: REST adapter for RapidAPI Hub API — Collections. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/collections name: collections description: REST surface for collections. operations: - method: GET name: listhubcollections description: List curated collections call: hub-collections.listhubcollections outputParameters: - type: object mapping: $. - path: /v1/collections/{collectionid}/apis name: collections-collectionid-apis description: REST surface for collections-collectionId-apis. operations: - method: GET name: listapisincollection description: List APIs in a collection call: hub-collections.listapisincollection with: collectionId: rest.collectionId outputParameters: - type: object mapping: $. - type: mcp namespace: hub-collections-mcp port: 9090 transport: http description: MCP adapter for RapidAPI Hub API — Collections. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-curated-collections description: List curated collections hints: readOnly: true destructive: false idempotent: true call: hub-collections.listhubcollections outputParameters: - type: object mapping: $. - name: list-apis-collection description: List APIs in a collection hints: readOnly: true destructive: false idempotent: true call: hub-collections.listapisincollection with: collectionId: tools.collectionId outputParameters: - type: object mapping: $.