naftiko: 1.0.0-alpha2 info: label: Rainbow Contacts API — Contacts description: 'Rainbow Contacts API — Contacts. 2 operations. Lead operation: Search Contacts. Self-contained Naftiko capability covering one Rainbow business surface.' tags: - Rainbow - Contacts created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: RAINBOW_API_KEY: RAINBOW_API_KEY capability: consumes: - type: http namespace: contacts-contacts baseUri: https://openrainbow.com/api/rainbow description: Rainbow Contacts API — Contacts business capability. Self-contained, no shared references. resources: - name: enduser-v1.0-contacts path: /enduser/v1.0/contacts operations: - name: searchcontacts method: GET description: Search Contacts outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: search in: query type: string description: Search keyword (name, email, or phone number) - name: limit in: query type: integer description: Maximum number of results to return - name: offset in: query type: integer description: Pagination offset - name: enduser-v1.0-contacts-contactId path: /enduser/v1.0/contacts/{contactId} operations: - name: getcontact method: GET description: Get Contact outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: contactId in: path type: string description: Unique identifier of the contact required: true authentication: type: bearer token: '{{env.RAINBOW_API_KEY}}' exposes: - type: rest namespace: contacts-contacts-rest port: 8080 description: REST adapter for Rainbow Contacts API — Contacts. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/enduser/v1-0/contacts name: enduser-v1-0-contacts description: REST surface for enduser-v1.0-contacts. operations: - method: GET name: searchcontacts description: Search Contacts call: contacts-contacts.searchcontacts with: search: rest.search limit: rest.limit offset: rest.offset outputParameters: - type: object mapping: $. - path: /v1/enduser/v1-0/contacts/{contactid} name: enduser-v1-0-contacts-contactid description: REST surface for enduser-v1.0-contacts-contactId. operations: - method: GET name: getcontact description: Get Contact call: contacts-contacts.getcontact with: contactId: rest.contactId outputParameters: - type: object mapping: $. - type: mcp namespace: contacts-contacts-mcp port: 9090 transport: http description: MCP adapter for Rainbow Contacts API — Contacts. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: search-contacts description: Search Contacts hints: readOnly: true destructive: false idempotent: true call: contacts-contacts.searchcontacts with: search: tools.search limit: tools.limit offset: tools.offset outputParameters: - type: object mapping: $. - name: get-contact description: Get Contact hints: readOnly: true destructive: false idempotent: true call: contacts-contacts.getcontact with: contactId: tools.contactId outputParameters: - type: object mapping: $.