naftiko: 1.0.0-alpha2 info: label: Marqeta DiVA API — Transactions description: 'Marqeta DiVA API — Transactions. 2 operations. Lead operation: Retrieve authorization transaction data. Self-contained Naftiko capability covering one Marqeta business surface.' tags: - Marqeta - Transactions created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: MARQETA_API_KEY: MARQETA_API_KEY capability: consumes: - type: http namespace: diva-transactions baseUri: https://diva-api.marqeta.com/data/v2 description: Marqeta DiVA API — Transactions business capability. Self-contained, no shared references. resources: - name: views-authorizations-time_agg path: /views/authorizations/{time_agg} operations: - name: getauthorizations method: GET description: Retrieve authorization transaction data outputRawFormat: json outputParameters: - name: result type: object value: $. - name: views-settlements-time_agg path: /views/settlements/{time_agg} operations: - name: getsettlements method: GET description: Retrieve settlement transaction data outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: basic username: '{{env.MARQETA_USER}}' password: '{{env.MARQETA_PASS}}' exposes: - type: rest namespace: diva-transactions-rest port: 8080 description: REST adapter for Marqeta DiVA API — Transactions. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/views/authorizations/{time-agg} name: views-authorizations-time-agg description: REST surface for views-authorizations-time_agg. operations: - method: GET name: getauthorizations description: Retrieve authorization transaction data call: diva-transactions.getauthorizations outputParameters: - type: object mapping: $. - path: /v1/views/settlements/{time-agg} name: views-settlements-time-agg description: REST surface for views-settlements-time_agg. operations: - method: GET name: getsettlements description: Retrieve settlement transaction data call: diva-transactions.getsettlements outputParameters: - type: object mapping: $. - type: mcp namespace: diva-transactions-mcp port: 9090 transport: http description: MCP adapter for Marqeta DiVA API — Transactions. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: retrieve-authorization-transaction-data description: Retrieve authorization transaction data hints: readOnly: true destructive: false idempotent: true call: diva-transactions.getauthorizations outputParameters: - type: object mapping: $. - name: retrieve-settlement-transaction-data description: Retrieve settlement transaction data hints: readOnly: true destructive: false idempotent: true call: diva-transactions.getsettlements outputParameters: - type: object mapping: $.