naftiko: 1.0.0-alpha2 info: label: Waste Management Customer API — Preferences description: 'Waste Management Customer API — Preferences. 2 operations. Lead operation: List Preferences. Self-contained Naftiko capability covering one Waste Management business surface.' tags: - Waste Management - Preferences created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: WASTE_MANAGEMENT_API_KEY: WASTE_MANAGEMENT_API_KEY capability: consumes: - type: http namespace: customer-preferences baseUri: https://api.wm.com/v1 description: Waste Management Customer API — Preferences business capability. Self-contained, no shared references. resources: - name: customers-customerId-preferences path: /customers/{customerId}/preferences operations: - name: listpreferences method: GET description: List Preferences outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updatepreferences method: PATCH description: Update Preferences outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true authentication: type: bearer token: '{{env.WASTE_MANAGEMENT_API_KEY}}' exposes: - type: rest namespace: customer-preferences-rest port: 8080 description: REST adapter for Waste Management Customer API — Preferences. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/customers/{customerid}/preferences name: customers-customerid-preferences description: REST surface for customers-customerId-preferences. operations: - method: GET name: listpreferences description: List Preferences call: customer-preferences.listpreferences outputParameters: - type: object mapping: $. - method: PATCH name: updatepreferences description: Update Preferences call: customer-preferences.updatepreferences with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: customer-preferences-mcp port: 9090 transport: http description: MCP adapter for Waste Management Customer API — Preferences. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-preferences description: List Preferences hints: readOnly: true destructive: false idempotent: true call: customer-preferences.listpreferences outputParameters: - type: object mapping: $. - name: update-preferences description: Update Preferences hints: readOnly: false destructive: false idempotent: true call: customer-preferences.updatepreferences with: body: tools.body outputParameters: - type: object mapping: $.