naftiko: 1.0.0-alpha2 info: label: Unified Engagement API — Accounts description: 'Unified Engagement API — Accounts. 6 operations. Lead operation: Create account. Self-contained Naftiko capability covering one Supaglue business surface.' tags: - Supaglue - Accounts created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: SUPAGLUE_API_KEY: SUPAGLUE_API_KEY capability: consumes: - type: http namespace: engagement-accounts baseUri: https://api.supaglue.io/engagement/v2 description: Unified Engagement API — Accounts business capability. Self-contained, no shared references. resources: - name: accounts path: /accounts operations: - name: createaccount method: POST description: Create account outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: listaccounts method: GET description: List accounts outputRawFormat: json outputParameters: - name: result type: object value: $. - name: accounts-_search path: /accounts/_search operations: - name: searchaccounts method: POST description: Search accounts outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: accounts-_upsert path: /accounts/_upsert operations: - name: upsertaccount method: POST description: Upsert account outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: accounts-account_id path: /accounts/{account_id} operations: - name: getaccount method: GET description: Get account outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updateaccount method: PATCH description: Update account outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true authentication: type: apikey key: x-api-key value: '{{env.SUPAGLUE_API_KEY}}' placement: header exposes: - type: rest namespace: engagement-accounts-rest port: 8080 description: REST adapter for Unified Engagement API — Accounts. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/accounts name: accounts description: REST surface for accounts. operations: - method: POST name: createaccount description: Create account call: engagement-accounts.createaccount with: body: rest.body outputParameters: - type: object mapping: $. - method: GET name: listaccounts description: List accounts call: engagement-accounts.listaccounts outputParameters: - type: object mapping: $. - path: /v1/accounts/search name: accounts-search description: REST surface for accounts-_search. operations: - method: POST name: searchaccounts description: Search accounts call: engagement-accounts.searchaccounts with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/accounts/upsert name: accounts-upsert description: REST surface for accounts-_upsert. operations: - method: POST name: upsertaccount description: Upsert account call: engagement-accounts.upsertaccount with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/accounts/{account-id} name: accounts-account-id description: REST surface for accounts-account_id. operations: - method: GET name: getaccount description: Get account call: engagement-accounts.getaccount outputParameters: - type: object mapping: $. - method: PATCH name: updateaccount description: Update account call: engagement-accounts.updateaccount with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: engagement-accounts-mcp port: 9090 transport: http description: MCP adapter for Unified Engagement API — Accounts. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: create-account description: Create account hints: readOnly: false destructive: false idempotent: false call: engagement-accounts.createaccount with: body: tools.body outputParameters: - type: object mapping: $. - name: list-accounts description: List accounts hints: readOnly: true destructive: false idempotent: true call: engagement-accounts.listaccounts outputParameters: - type: object mapping: $. - name: search-accounts description: Search accounts hints: readOnly: true destructive: false idempotent: false call: engagement-accounts.searchaccounts with: body: tools.body outputParameters: - type: object mapping: $. - name: upsert-account description: Upsert account hints: readOnly: false destructive: false idempotent: false call: engagement-accounts.upsertaccount with: body: tools.body outputParameters: - type: object mapping: $. - name: get-account description: Get account hints: readOnly: true destructive: false idempotent: true call: engagement-accounts.getaccount outputParameters: - type: object mapping: $. - name: update-account description: Update account hints: readOnly: false destructive: false idempotent: true call: engagement-accounts.updateaccount with: body: tools.body outputParameters: - type: object mapping: $.