naftiko: 1.0.0-alpha2 info: label: Advance Auto Parts Commerce API — Loyalty description: 'Advance Auto Parts Commerce API — Loyalty. 2 operations. Lead operation: Advance Auto Parts Get Loyalty Account. Self-contained Naftiko capability covering one Advance Auto Parts business surface.' tags: - Advance Auto Parts - Loyalty created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: ADVANCE_AUTO_PARTS_API_KEY: ADVANCE_AUTO_PARTS_API_KEY capability: consumes: - type: http namespace: commerce-loyalty baseUri: https://api.advanceautoparts.com/commerce/v1 description: Advance Auto Parts Commerce API — Loyalty business capability. Self-contained, no shared references. resources: - name: loyalty-account path: /loyalty/account operations: - name: getloyaltyaccount method: GET description: Advance Auto Parts Get Loyalty Account outputRawFormat: json outputParameters: - name: result type: object value: $. - name: loyalty-transactions path: /loyalty/transactions operations: - name: getloyaltytransactions method: GET description: Advance Auto Parts Get Loyalty Transactions outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: limit in: query type: integer description: Maximum number of transactions to return. - name: offset in: query type: integer description: Pagination offset. authentication: type: bearer token: '{{env.ADVANCE_AUTO_PARTS_API_KEY}}' exposes: - type: rest namespace: commerce-loyalty-rest port: 8080 description: REST adapter for Advance Auto Parts Commerce API — Loyalty. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/loyalty/account name: loyalty-account description: REST surface for loyalty-account. operations: - method: GET name: getloyaltyaccount description: Advance Auto Parts Get Loyalty Account call: commerce-loyalty.getloyaltyaccount outputParameters: - type: object mapping: $. - path: /v1/loyalty/transactions name: loyalty-transactions description: REST surface for loyalty-transactions. operations: - method: GET name: getloyaltytransactions description: Advance Auto Parts Get Loyalty Transactions call: commerce-loyalty.getloyaltytransactions with: limit: rest.limit offset: rest.offset outputParameters: - type: object mapping: $. - type: mcp namespace: commerce-loyalty-mcp port: 9090 transport: http description: MCP adapter for Advance Auto Parts Commerce API — Loyalty. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: advance-auto-parts-get-loyalty description: Advance Auto Parts Get Loyalty Account hints: readOnly: true destructive: false idempotent: true call: commerce-loyalty.getloyaltyaccount outputParameters: - type: object mapping: $. - name: advance-auto-parts-get-loyalty-2 description: Advance Auto Parts Get Loyalty Transactions hints: readOnly: true destructive: false idempotent: true call: commerce-loyalty.getloyaltytransactions with: limit: tools.limit offset: tools.offset outputParameters: - type: object mapping: $.