naftiko: 1.0.0-alpha2 info: label: TrueLayer Payments API — Merchant Accounts description: 'TrueLayer Payments API — Merchant Accounts. 3 operations. Lead operation: List Merchant Accounts. Self-contained Naftiko capability covering one Truelayer business surface.' tags: - Truelayer - Merchant Accounts created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: TRUELAYER_API_KEY: TRUELAYER_API_KEY capability: consumes: - type: http namespace: payments-merchant-accounts baseUri: https://api.truelayer.com description: TrueLayer Payments API — Merchant Accounts business capability. Self-contained, no shared references. resources: - name: v3-merchant-accounts path: /v3/merchant-accounts operations: - name: listmerchantaccounts method: GET description: List Merchant Accounts outputRawFormat: json outputParameters: - name: result type: object value: $. - name: v3-merchant-accounts-id path: /v3/merchant-accounts/{id} operations: - name: getmerchantaccount method: GET description: Get Merchant Account outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string required: true - name: v3-merchant-accounts-id-transactions path: /v3/merchant-accounts/{id}/transactions operations: - name: listmerchantaccounttransactions method: GET description: List Merchant Account Transactions outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string required: true - name: from in: query type: string description: Start date-time filter (ISO 8601) - name: to in: query type: string description: End date-time filter (ISO 8601) - name: cursor in: query type: string description: Pagination cursor authentication: type: bearer token: '{{env.TRUELAYER_API_KEY}}' exposes: - type: rest namespace: payments-merchant-accounts-rest port: 8080 description: REST adapter for TrueLayer Payments API — Merchant Accounts. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/v3/merchant-accounts name: v3-merchant-accounts description: REST surface for v3-merchant-accounts. operations: - method: GET name: listmerchantaccounts description: List Merchant Accounts call: payments-merchant-accounts.listmerchantaccounts outputParameters: - type: object mapping: $. - path: /v1/v3/merchant-accounts/{id} name: v3-merchant-accounts-id description: REST surface for v3-merchant-accounts-id. operations: - method: GET name: getmerchantaccount description: Get Merchant Account call: payments-merchant-accounts.getmerchantaccount with: id: rest.id outputParameters: - type: object mapping: $. - path: /v1/v3/merchant-accounts/{id}/transactions name: v3-merchant-accounts-id-transactions description: REST surface for v3-merchant-accounts-id-transactions. operations: - method: GET name: listmerchantaccounttransactions description: List Merchant Account Transactions call: payments-merchant-accounts.listmerchantaccounttransactions with: id: rest.id from: rest.from to: rest.to cursor: rest.cursor outputParameters: - type: object mapping: $. - type: mcp namespace: payments-merchant-accounts-mcp port: 9090 transport: http description: MCP adapter for TrueLayer Payments API — Merchant Accounts. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-merchant-accounts description: List Merchant Accounts hints: readOnly: true destructive: false idempotent: true call: payments-merchant-accounts.listmerchantaccounts outputParameters: - type: object mapping: $. - name: get-merchant-account description: Get Merchant Account hints: readOnly: true destructive: false idempotent: true call: payments-merchant-accounts.getmerchantaccount with: id: tools.id outputParameters: - type: object mapping: $. - name: list-merchant-account-transactions description: List Merchant Account Transactions hints: readOnly: true destructive: false idempotent: true call: payments-merchant-accounts.listmerchantaccounttransactions with: id: tools.id from: tools.from to: tools.to cursor: tools.cursor outputParameters: - type: object mapping: $.