naftiko: 1.0.0-alpha2 info: label: Segment Public API — Destinations description: 'Segment Public API — Destinations. 5 operations. Lead operation: List destinations. Self-contained Naftiko capability covering one Segment business surface.' tags: - Segment - Destinations created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: SEGMENT_API_KEY: SEGMENT_API_KEY capability: consumes: - type: http namespace: public-destinations baseUri: https://api.segmentapis.com description: Segment Public API — Destinations business capability. Self-contained, no shared references. resources: - name: destinations path: /destinations operations: - name: listdestinations method: GET description: List destinations outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createdestination method: POST description: Create destination outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: destinations-destinationId path: /destinations/{destinationId} operations: - name: getdestination method: GET description: Get destination outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updatedestination method: PATCH description: Update destination outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: deletedestination method: DELETE description: Delete destination outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.SEGMENT_API_KEY}}' exposes: - type: rest namespace: public-destinations-rest port: 8080 description: REST adapter for Segment Public API — Destinations. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/destinations name: destinations description: REST surface for destinations. operations: - method: GET name: listdestinations description: List destinations call: public-destinations.listdestinations outputParameters: - type: object mapping: $. - method: POST name: createdestination description: Create destination call: public-destinations.createdestination with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/destinations/{destinationid} name: destinations-destinationid description: REST surface for destinations-destinationId. operations: - method: GET name: getdestination description: Get destination call: public-destinations.getdestination outputParameters: - type: object mapping: $. - method: PATCH name: updatedestination description: Update destination call: public-destinations.updatedestination with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletedestination description: Delete destination call: public-destinations.deletedestination outputParameters: - type: object mapping: $. - type: mcp namespace: public-destinations-mcp port: 9090 transport: http description: MCP adapter for Segment Public API — Destinations. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-destinations description: List destinations hints: readOnly: true destructive: false idempotent: true call: public-destinations.listdestinations outputParameters: - type: object mapping: $. - name: create-destination description: Create destination hints: readOnly: false destructive: false idempotent: false call: public-destinations.createdestination with: body: tools.body outputParameters: - type: object mapping: $. - name: get-destination description: Get destination hints: readOnly: true destructive: false idempotent: true call: public-destinations.getdestination outputParameters: - type: object mapping: $. - name: update-destination description: Update destination hints: readOnly: false destructive: false idempotent: true call: public-destinations.updatedestination with: body: tools.body outputParameters: - type: object mapping: $. - name: delete-destination description: Delete destination hints: readOnly: false destructive: true idempotent: true call: public-destinations.deletedestination outputParameters: - type: object mapping: $.