naftiko: 1.0.0-alpha2 info: label: UserGems API — Contacts description: 'UserGems API — Contacts. 2 operations. Lead operation: UserGems Add Contact. Self-contained Naftiko capability covering one UserGems business surface.' tags: - UserGems - Contacts created: '2026-05-25' modified: '2026-05-25' binds: - namespace: env keys: USERGEMS_API_KEY: USERGEMS_API_KEY capability: consumes: - type: http namespace: contacts-contacts baseUri: https://api.usergems.com/v1 description: UserGems API — Contacts business capability. Self-contained, no shared references. resources: - name: contact path: /contact operations: - name: addcontact method: POST description: UserGems Add Contact outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: deletecontact method: DELETE description: UserGems Delete Contact outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: email in: query type: string required: true - name: relationshipType in: query type: string - name: signal in: query type: string authentication: type: apikey key: X-Api-Key value: '{{env.USERGEMS_API_KEY}}' placement: header exposes: - type: rest namespace: contacts-contacts-rest port: 8080 description: REST adapter for UserGems API — Contacts. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/contact name: contact description: REST surface for contact. operations: - method: POST name: addcontact description: UserGems Add Contact call: contacts-contacts.addcontact with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletecontact description: UserGems Delete Contact call: contacts-contacts.deletecontact with: email: rest.query.email relationshipType: rest.query.relationshipType signal: rest.query.signal outputParameters: - type: object mapping: $. - type: mcp namespace: contacts-contacts-mcp port: 9090 transport: http description: MCP adapter for UserGems API — Contacts. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: usergems-add-contact description: UserGems Add Contact hints: readOnly: false destructive: false idempotent: false call: contacts-contacts.addcontact with: body: tools.body outputParameters: - type: object mapping: $. - name: usergems-delete-contact description: UserGems Delete Contact hints: readOnly: false destructive: true idempotent: true call: contacts-contacts.deletecontact with: email: tools.email relationshipType: tools.relationshipType signal: tools.signal outputParameters: - type: object mapping: $.