naftiko: 1.0.0-alpha2 info: label: Unified CRM API — Associations description: 'Unified CRM API — Associations. 2 operations. Lead operation: List associations for a record and target object. Self-contained Naftiko capability covering one Supaglue business surface.' tags: - Supaglue - Associations created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: SUPAGLUE_API_KEY: SUPAGLUE_API_KEY capability: consumes: - type: http namespace: crm-associations baseUri: https://api.supaglue.io/crm/v2 description: Unified CRM API — Associations business capability. Self-contained, no shared references. resources: - name: associations path: /associations operations: - name: listassociations method: GET description: List associations for a record and target object outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: source_record_id in: query type: string required: true - name: source_object in: query type: string required: true - name: target_object in: query type: string required: true - name: upsertassociation method: PUT description: Upsert association 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: crm-associations-rest port: 8080 description: REST adapter for Unified CRM API — Associations. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/associations name: associations description: REST surface for associations. operations: - method: GET name: listassociations description: List associations for a record and target object call: crm-associations.listassociations with: source_record_id: rest.source_record_id source_object: rest.source_object target_object: rest.target_object outputParameters: - type: object mapping: $. - method: PUT name: upsertassociation description: Upsert association call: crm-associations.upsertassociation with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: crm-associations-mcp port: 9090 transport: http description: MCP adapter for Unified CRM API — Associations. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-associations-record-and-target description: List associations for a record and target object hints: readOnly: true destructive: false idempotent: true call: crm-associations.listassociations with: source_record_id: tools.source_record_id source_object: tools.source_object target_object: tools.target_object outputParameters: - type: object mapping: $. - name: upsert-association description: Upsert association hints: readOnly: false destructive: false idempotent: true call: crm-associations.upsertassociation with: body: tools.body outputParameters: - type: object mapping: $.